:root {
    --sidebar-width: 280px;
    --accent: #1a1a1a;
    --body-bg: #F2F2F2;
    --surface: #FFFFFF;
    --profile-bg: #F8F9FA;
    --text-main: #1A1A1A;
    --text-muted: #71717A;
}

body {
    background-color: var(--body-bg);
    margin: 0;
    height: 100vh;
    min-height: 100vh;
    font-family: -apple-system, system-ui, sans-serif;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
    overflow: visible;
    font-size: 0.90rem;
}

/* --- SIDEBAR & MOBILE DRAWER (LEFT) --- */
.expo-drawer {
    width: var(--sidebar-width) !important;
    background-color: var(--surface) !important;
    z-index: 2000 !important;
    height: 100vh !important;
    top: 0 !important;
    border: none !important;
}

@media (max-width: 991.98px) {
    .expo-drawer {
        border-radius: 0 24px 24px 0;
        box-shadow: 10px 0 30px rgba(0, 0, 0, 0.1) !important;
    }
}

@media (min-width: 992px) {
    .expo-drawer {
        left: 0 !important;
        right: auto !important;
        transform: none !important;
        visibility: visible !important;
        position: fixed !important;
        border-right: 1px solid rgba(0, 0, 0, 0.05) !important;
    }

    .main-content,
    .expo-header {
        margin-left: var(--sidebar-width);
    }

    #btn-menu-toggle {
        display: none;
    }
}

/* --- PROFILE SECTION --- */
.drawer-profile {
    padding: 24px 20px;
    background-color: var(--profile-bg);
    margin: 20px 16px;
    border-radius: 24px;
    display: flex;
    align-items: center;
    gap: 14px;
    border: 1px solid rgba(0, 0, 0, 0.03);
}

.avatar {
    width: 48px;
    height: 48px;
    background: var(--accent);
    color: white;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.2rem;
}

/* --- UNIFORM MENU BUTTONS --- */
.offcanvas-body {
    display: flex;
    flex-direction: column;
    width: 100%;
}

nav {
    display: flex;
    flex-direction: column;
    padding: 0 16px;
    width: 100%;
}

.nav-section-label {
    padding: 5px 0px 0px 10px;
    font-size: 11px;
    font-weight: 700;
    color: #a1a1aa;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
}

.nav-link-expo {
    display: flex;
    width: 100%;
    align-items: center;
    gap: 14px;
    padding: 8px 10px;
    margin-bottom: 1px;
    border-radius: 16px;
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 500;
    font-size: 15px;
    transition: all 0.2s ease;
    box-sizing: border-box;
}

.nav-link-expo.active {
    background-color: var(--accent) !important;
    color: #FFFFFF !important;
    font-weight: 600;
}

.nav-link-expo.active .material-symbols-rounded {
    font-variation-settings: 'FILL' 1;
}

.nav-link-expo:hover:not(.active) {
    background-color: #ededed;
    color: var(--text-main);
}

/* --- HEADER --- */
.expo-header {
    height: 50px;
    background: var(--surface);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 15px;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-title {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    font-weight: 700;
    margin: 0;
    font-size: 17px;
    color: var(--text-main);
}


/* Menu  */
.expo-drawer {
    width: var(--sidebar-width) !important;
    background-color: var(--surface) !important;
    z-index: 2000 !important;
    height: 100vh !important;
    display: flex !important;
    flex-direction: column !important;
    border: none !important;
    overflow-x: hidden !important;
}

/* WEB/DESKTOP VIEW */
@media (min-width: 992px) {
    .expo-drawer {
        position: fixed !important;
        left: 0 !important;
        top: 0 !important;
        visibility: visible !important;
        transform: none !important;
        border-right: 1px solid rgba(0, 0, 0, 0.05) !important;
    }

    /* Shift content to the right */
    .main-content,
    .expo-header {
        margin-left: var(--sidebar-width) !important;
        width: calc(100% - var(--sidebar-width)) !important;
    }

    #btn-menu-toggle {
        display: none !important;
    }
}

/* THE VERTICAL SCROLL AREA */
.offcanvas-body {
    flex: 1 1 auto !important;
    /* Take remaining space */
    overflow-y: auto !important;
    /* Only vertical scroll */
    overflow-x: hidden !important;
    /* No horizontal scroll */
    padding: 0 16px !important;
    display: flex !important;
    flex-direction: column !important;
}

/* Fix for the menu links to prevent them from stretching/breaking */
nav {
    display: flex !important;
    flex-direction: column !important;
    width: 100% !important;
}

.nav-link-expo {
    white-space: nowrap;
    /* Prevent text wrapping */
    overflow: hidden;
    text-overflow: ellipsis;
    /* Add dots if text is too long */
}

.flex-shrink-0 {
    flex-shrink: 0 !important;
}

/* Custom Scrollbar */
.offcanvas-body::-webkit-scrollbar {
    width: 4px;
}

.offcanvas-body::-webkit-scrollbar-thumb {
    background: #e0e0e0;
    border-radius: 10px;
}


.dropdown-menu {
    z-index: 9999;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}


.content-area {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    height: 80vh;
    overflow: hidden;
}