:root {
    /* Brand Colors */
    --primary-color: #2c3e50;
    /* Deep Blue/Charcoal - Trust & Professionalism */
    --secondary-color: #e67e22;
    /* Warm Orange - Accent/Call to Action */
    --accent-color: #ecf0f1;
    /* Light Gray - Backgrounds */
    --text-dark: #2d3436;
    --text-light: #636e72;
    --white: #ffffff;
    --glass-border: rgba(255, 255, 255, 0.2);
    --glass-bg: rgba(255, 255, 255, 0.85);

    /* Spacing */
    --sidebar-width: 260px;
    --header-height: 70px;
    --bottom-nav-height: 65px;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: #f8f9fa;
    color: var(--text-dark);
    overflow-x: hidden;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 700;
    color: var(--primary-color);
}

/* Glassmorphism Utilities */
.glass-panel {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.07);
}

/* Layout - Desktop Sidebar */
.sidebar {
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    width: var(--sidebar-width);
    background: var(--primary-color);
    color: var(--white);
    transition: all 0.3s ease;
    z-index: 1000;
    display: flex;
    flex-direction: column;
}

.sidebar.collapsed {
    width: 80px;
}

.sidebar .brand-section {
    height: var(--header-height);
    display: flex;
    align-items: center;
    padding: 0 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.sidebar .nav-links {
    flex: 1;
    overflow-y: auto;
    padding: 20px 0;
}

.sidebar .nav-item {
    padding: 12px 20px;
    display: flex;
    align-items: center;
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: 0.2s;
    cursor: pointer;
}

.sidebar .nav-item:hover,
.sidebar .nav-item.active {
    background: rgba(255, 255, 255, 0.1);
    color: var(--white);
    border-left: 4px solid var(--secondary-color);
}

.sidebar .nav-item i {
    width: 30px;
    font-size: 1.2rem;
    text-align: center;
}

.sidebar .nav-text {
    margin-left: 10px;
    white-space: nowrap;
    opacity: 1;
    transition: opacity 0.2s;
}

.sidebar.collapsed .nav-text,
.sidebar.collapsed .brand-text {
    display: none;
    opacity: 0;
}

/* Main Content Area */
.main-content {
    margin-left: var(--sidebar-width);
    padding: 20px;
    padding-top: calc(var(--header-height) + 20px);
    transition: all 0.3s ease;
    padding-top: calc(var(--header-height) + 20px);
    transition: all 0.3s ease;
    min-height: 100vh;
}

.public-page .main-content {
    margin-left: 0;
    padding-top: 90px;
}

.public-page .top-header {
    left: 0;
}

.sidebar.collapsed~.main-content {
    margin-left: 80px;
}

/* Top Header */
.top-header {
    position: fixed;
    top: 0;
    right: 0;
    left: var(--sidebar-width);
    height: var(--header-height);
    background: var(--white);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 30px;
    transition: left 0.3s ease;
}

.sidebar.collapsed~.top-header {
    left: 80px;
}

/* Bottom Navigation (Mobile Only) */
.bottom-nav {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: var(--bottom-nav-height);
    background: var(--white);
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.05);
    z-index: 1000;
    justify-content: space-around;
    align-items: center;
}

.bottom-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
    text-decoration: none;
    font-size: 0.75rem;
    transition: 0.2s;
    flex: 1;
    height: 100%;
}

.bottom-nav-item i {
    font-size: 1.4rem;
    margin-bottom: 4px;
    transition: transform 0.2s;
}

.bottom-nav-item.active {
    color: var(--secondary-color);
}

.bottom-nav-item:active i {
    transform: scale(0.9);
}

/* Responsive Overrides */
@media (max-width: 991.98px) {
    .sidebar {
        display: none;
        /* Hide sidebar on tablet/mobile */
    }

    .main-content {
        margin-left: 0;
        padding-bottom: calc(var(--bottom-nav-height) + 20px);
    }

    .top-header {
        left: 0;
        padding: 0 15px;
    }

    .bottom-nav {
        display: flex;
        /* Show bottom nav on mobile/tablet */
    }

    .desktop-only {
        display: none !important;
    }
}

@media (min-width: 992px) {
    .mobile-only {
        display: none !important;
    }

    .d-lg-none {
        display: none !important;
    }
}