/* ============================================================
   ATSK TRANSPORT - SIDEBAR NAVIGATION
   Premium Enterprise Design System 2026

   Surface palette: deep navy with blue-tinted warmth
   Accent: #1A7CCA blue with luminous active states
   Typography: system font stack, refined weights
   ============================================================ */

/* ------------------------------------------------------------
   1. DESIGN TOKENS
   ------------------------------------------------------------ */
:root {
    /* Surface colors — Deep ATSK blue sidebar */
    --sb-bg:               #0A1E38;
    --sb-bg-elevated:      #0F2A4D;
    --sb-bg-hover:         rgba(255, 255, 255, 0.06);
    --sb-bg-active:        rgba(26, 124, 202, 0.18);
    --sb-bg-active-border: #4DABF0;
    --sb-bg-flyout:        #0F2A4D;

    /* Text colors — Light text on dark blue bg */
    --sb-text:             rgba(255, 255, 255, 0.70);
    --sb-text-strong:      #FFFFFF;
    --sb-text-active:      #FFFFFF;
    --sb-text-muted:       rgba(255, 255, 255, 0.40);
    --sb-text-section:     rgba(255, 255, 255, 0.40);

    /* Accent */
    --sb-accent:           #4DABF0;
    --sb-accent-light:     #4DABF0;
    --sb-accent-glow:      rgba(77, 171, 240, 0.20);

    /* Borders */
    --sb-border:           rgba(255, 255, 255, 0.08);
    --sb-border-subtle:    rgba(255, 255, 255, 0.04);

    /* Dimensions */
    --sb-width:            272px;
    --sb-width-collapsed:  72px;
    --sb-item-h:           38px;
    --sb-item-radius:      7px;
    --sb-icon-size:        18px;
    --sb-pad-x:            14px;

    /* Typography */
    --sb-font: -apple-system, 'SF Pro Display', 'SF Pro Text', 'Inter',
               'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;

    /* Motion */
    --sb-ease:             cubic-bezier(0.25, 0.1, 0.25, 1);
    --sb-duration:         0.2s;
    --sb-duration-slow:    0.28s;
}

/* ------------------------------------------------------------
   2. EXPANDED SIDEBAR - MAIN CONTAINER
   ------------------------------------------------------------ */
.sidebar-nav-container {
    position: relative;
    z-index: 1040;
    width: var(--sb-width);
    height: 100%;
    background: linear-gradient(180deg, #1A4270 0%, #0E2847 100%);
    border-right: 1px solid var(--sb-border);
    display: flex;
    flex-direction: column;
    font-family: var(--sb-font);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    transition: transform var(--sb-duration-slow) var(--sb-ease),
                width var(--sb-duration-slow) var(--sb-ease);
    will-change: transform;
    overflow: hidden;
}

/* Inner wrapper - expanded */
.sidebarContainer {
    display: flex;
    flex-direction: column;
    height: 100%;
    width: 100%;
    overflow: hidden;
}

/* ------------------------------------------------------------
   3. HEADER AREA (Logo + User)
   ------------------------------------------------------------ */
.navbarHeader {
    flex-shrink: 0;
    padding: 0;
    height: 6px;
}

/* Logo row */
.navbarLogo {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding: 10px var(--sb-pad-x) 6px;
    min-height: 36px;
}

.logoImage {
    height: 28px;
    width: auto;
    object-fit: contain;
    opacity: 0.92;
    transition: opacity var(--sb-duration) var(--sb-ease);
}

.logoImage:hover {
    opacity: 1;
}

/* Collapse toggle button (arrow left) */
.imageButton {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    padding: 0;
    border: none;
    border-radius: 6px;
    background: transparent;
    cursor: pointer;
    opacity: 0.4;
    transition: opacity var(--sb-duration) var(--sb-ease),
                background var(--sb-duration) var(--sb-ease);
}

.imageButton img {
    width: 16px;
    height: 16px;
}

.imageButton svg {
    color: rgba(255, 255, 255, 0.5);
}

.imageButton:hover {
    opacity: 0.8;
    background: var(--sb-bg-hover);
}

/* Expand toggle button (arrow right) */
.toggledImageButton {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    padding: 0;
    border: none;
    border-radius: 6px;
    background: transparent;
    cursor: pointer;
    opacity: 0.4;
    transition: opacity var(--sb-duration) var(--sb-ease),
                background var(--sb-duration) var(--sb-ease);
}

.toggledImageButton img {
    width: 16px;
    height: 16px;
}

.toggledImageButton svg {
    color: rgba(255, 255, 255, 0.5);
}

.toggledImageButton:hover {
    opacity: 0.8;
    background: var(--sb-bg-hover);
}

/* ------------------------------------------------------------
   4. USER INFO AREA
   ------------------------------------------------------------ */
.logedUserDetails {
    padding: 14px var(--sb-pad-x) 16px;
}

.headerLogedUserContainer {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Avatar circle */
.user-avatar-circle {
    position: relative;
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--sb-accent) 0%, var(--sb-accent-light) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 600;
    color: #FFFFFF;
    letter-spacing: 0.02em;
    box-shadow: 0 0 0 2px rgba(77, 171, 240, 0.25);
}

/* Online status dot */
.user-avatar-status {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #34C759;
    border: 2px solid var(--sb-bg);
    box-shadow: 0 0 6px rgba(52, 199, 89, 0.35);
}

/* Name and role wrapper */
.user-info-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
    flex: 1;
}

.loggedUsedName {
    font-size: 13px;
    font-weight: 600;
    color: var(--sb-text-strong);
    line-height: 1.3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Role badge */
.user-role-chip {
    display: inline-flex;
    align-items: center;
    font-size: 10px;
    font-weight: 500;
    color: var(--sb-accent-light);
    background: var(--sb-accent-glow);
    padding: 2px 8px;
    border-radius: 4px;
    line-height: 1.4;
    letter-spacing: 0.02em;
    width: fit-content;
    text-transform: capitalize;
}

/* Facility info row */
.facility-container {
    margin-top: 10px;
    padding: 8px 10px;
    background: rgba(255, 255, 255, 0.04);
    border-radius: 6px;
    border: 1px solid var(--sb-border-subtle);
}

.facility-container .logoImage {
    height: 16px;
    opacity: 0.45;
}

.headerLogedUserContainerText {
    font-size: 11.5px;
    font-weight: 500;
    color: var(--sb-text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.3;
}

/* ------------------------------------------------------------
   5. SCROLLABLE MENU ITEMS
   ------------------------------------------------------------ */
.sidebarMenuItems {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 8px 8px 16px;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.sidebarMenuItems::-webkit-scrollbar {
    width: 0;
    background: transparent;
}

/* Show thin scrollbar on hover */
.sidebarMenuItems:hover {
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.12) transparent;
}

.sidebarMenuItems:hover::-webkit-scrollbar {
    width: 5px;
}

.sidebarMenuItems:hover::-webkit-scrollbar-track {
    background: transparent;
}

.sidebarMenuItems:hover::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.12);
    border-radius: 10px;
}

.sidebarMenuItems:hover::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.20);
}

/* ------------------------------------------------------------
   6. SECTION LABELS
   ------------------------------------------------------------ */
.sidebar-section-label {
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--sb-text-section);
    padding: 20px 8px 6px;
    line-height: 1;
    user-select: none;
}

/* First section label needs less top padding */
.sidebarMenuItems > .sidebar-section-label:first-child {
    padding-top: 6px;
}

/* ------------------------------------------------------------
   7. DIVIDERS
   ------------------------------------------------------------ */
.sidebar-divider {
    height: 1px;
    background: var(--sb-border);
    margin: 10px 8px;
}

.sidebar-divider-small {
    height: 1px;
    background: var(--sb-border);
    margin: 8px 10px;
}

/* ------------------------------------------------------------
   8. MENU ITEM WRAPPER
   ------------------------------------------------------------ */
.menu-item {
    position: relative;
    margin-bottom: 1px;
}

.menu-item-disabled {
    pointer-events: none;
}

.menu-item-disabled a,
.menu-item-disabled button {
    opacity: 0.3;
}

/* ------------------------------------------------------------
   9. NAV BUTTONS - SHARED BASE
   ------------------------------------------------------------ */
.sidebarMainButton,
.sidebarLvl1SubButton {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    height: var(--sb-item-h);
    padding: 0 10px;
    border: none;
    border-radius: var(--sb-item-radius);
    background: transparent;
    color: var(--sb-text);
    font-family: var(--sb-font);
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    position: relative;
    transition: color var(--sb-duration) var(--sb-ease),
                background var(--sb-duration) var(--sb-ease);
    line-height: 1.3;
    letter-spacing: 0.005em;
    text-align: left;
}

.sidebarMainButton > div,
.sidebarLvl1SubButton > div {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
    flex: 1;
}

.sidebarMainButton span,
.sidebarLvl1SubButton span {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Main button (Dashboard, Verify, Profile) */
.sidebarMainButton {
    font-weight: 550;
}

/* Sub-level button (items under section labels) */
.sidebarLvl1SubButton {
    padding-left: 14px;
    font-size: 13px;
    font-weight: 450;
}

/* Keep both style classes functional for backward compat */
.sidebar-yellow-button,
.sidebar-black-button {
    /* Style is handled by parent .sidebarMainButton / .sidebarLvl1SubButton */
}

/* ------------------------------------------------------------
   10. NAV BUTTON STATES - HOVER
   ------------------------------------------------------------ */
.sidebarMainButton:hover,
.sidebarLvl1SubButton:hover {
    color: var(--sb-text-strong);
    background: var(--sb-bg-hover);
}

/* ------------------------------------------------------------
   11. NAV BUTTON STATES - ACTIVE
   ------------------------------------------------------------ */
.menu-item.active > .sidebarMainButton,
.menu-item.active > .sidebarLvl1SubButton,
.sidebarMainButton.active,
.sidebarLvl1SubButton.active {
    color: var(--sb-text-active);
    background: linear-gradient(90deg, var(--sb-bg-active) 0%, rgba(26, 124, 202, 0.04) 100%);
}

/* Active left accent bar */
.menu-item.active > .sidebarMainButton::before,
.menu-item.active > .sidebarLvl1SubButton::before,
.sidebarMainButton.active::before,
.sidebarLvl1SubButton.active::before {
    content: '';
    position: absolute;
    left: 0;
    top: 6px;
    bottom: 6px;
    width: 3px;
    border-radius: 0 3px 3px 0;
    background: var(--sb-accent);
    box-shadow: 0 0 8px var(--sb-accent-glow);
}

/* Active icon color */
.menu-item.active .sidebar-icon,
.sidebarMainButton.active .sidebar-icon,
.sidebarLvl1SubButton.active .sidebar-icon {
    color: var(--sb-accent-light);
}

/* ------------------------------------------------------------
   12. SIDEBAR ICON
   ------------------------------------------------------------ */
.sidebar-icon {
    font-size: var(--sb-icon-size);
    width: 20px;
    text-align: center;
    flex-shrink: 0;
    line-height: 1;
    color: var(--sb-text);
    transition: color var(--sb-duration) var(--sb-ease);
}

.sidebarMainButton:hover .sidebar-icon,
.sidebarLvl1SubButton:hover .sidebar-icon {
    color: var(--sb-text-strong);
}

/* ------------------------------------------------------------
   13. EXPAND/COLLAPSE ICONS
   ------------------------------------------------------------ */
.expand-icon-container {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    margin-left: auto;
}

.expand-icon-container i {
    font-size: 12px;
    color: var(--sb-text-muted);
    transition: transform var(--sb-duration) var(--sb-ease),
                color var(--sb-duration) var(--sb-ease);
}

/* Default: show inactive, hide active */
.active-icon,
.active-image {
    display: none;
}

.inactive-icon,
.inactive-image {
    display: inline-block;
}

/* When menu-item is open/active, swap visibility */
.menu-item.open .active-icon,
.menu-item.open .active-image,
.menu-item.active .active-icon,
.menu-item.active .active-image {
    display: inline-block;
}

.menu-item.open .inactive-icon,
.menu-item.open .inactive-image,
.menu-item.active .inactive-icon,
.menu-item.active .inactive-image {
    display: none;
}

/* Image-based icons */
.active-image,
.inactive-image {
    width: var(--sb-icon-size);
    height: var(--sb-icon-size);
    object-fit: contain;
    opacity: 0.65;
    transition: opacity var(--sb-duration) var(--sb-ease);
}

.sidebarMainButton:hover .active-image,
.sidebarMainButton:hover .inactive-image,
.sidebarLvl1SubButton:hover .active-image,
.sidebarLvl1SubButton:hover .inactive-image {
    opacity: 0.9;
}

.menu-item.active .active-image {
    opacity: 1;
}

/* ------------------------------------------------------------
   14. BOTTOM USER + LOGOUT AREA
   ------------------------------------------------------------ */
.sidebar-bottom-user {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    padding: 12px 8px 16px;
    border-top: 1px solid var(--sb-border);
    gap: 0;
}

.sidebar-bottom-user ::deep .logedUserDetails {
    flex: 1;
    min-width: 0;
    padding: 4px 6px;
}

.sidebar-bottom-user ::deep .facility-container {
    display: none;
}

.sidebar-bottom-logout {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    flex-shrink: 0;
    border: none;
    border-radius: 8px;
    background: transparent;
    color: var(--sb-text-muted);
    font-family: var(--sb-font);
    cursor: pointer;
    transition: color var(--sb-duration) var(--sb-ease),
                background var(--sb-duration) var(--sb-ease);
}

.sidebar-bottom-logout > div {
    display: flex;
    align-items: center;
    justify-content: center;
}

.sidebar-bottom-logout span {
    display: none;
}

.sidebar-bottom-logout:hover {
    color: #FF6B6B;
    background: rgba(255, 107, 107, 0.08);
}

.sidebar-bottom-logout .sidebar-icon {
    color: inherit;
    font-size: 18px;
}

/* ------------------------------------------------------------
   15. COLLAPSED SIDEBAR
   ------------------------------------------------------------ */
.sidebar-nav-container-small {
    width: var(--sb-width-collapsed);
}

.sidebar-nav-container-small .sidebarContainerSmall {
    display: flex;
    flex-direction: column;
    height: 100%;
    width: 100%;
    overflow: hidden;
}

/* Collapsed header */
.navbarHeaderSmall {
    flex-shrink: 0;
    padding: 0;
    border-bottom: 1px solid var(--sb-border);
}

.navbarLogoSmall {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px 0 10px;
}

.navbarLogoSmall .logoImage {
    height: 24px;
    width: auto;
}

/* Expand button in collapsed sidebar */
.sidebar-nav-container-small .navbarLogo {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 6px 0 14px;
}

/* Collapsed main buttons container */
.mainButtonsContainerSmall {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 8px 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.mainButtonsContainerSmall::-webkit-scrollbar {
    width: 0;
}

/* Collapsed nav buttons */
.sidebarMainButtonSmall {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    padding: 0;
    border: none;
    border-radius: 10px;
    background: transparent;
    color: var(--sb-text);
    font-family: var(--sb-font);
    cursor: pointer;
    transition: color var(--sb-duration) var(--sb-ease),
                background var(--sb-duration) var(--sb-ease);
    text-decoration: none;
}

.sidebarMainButtonSmall > div {
    display: flex;
    align-items: center;
    justify-content: center;
}

.sidebarMainButtonSmall span {
    display: none;
}

.sidebarMainButtonSmall .sidebar-icon {
    font-size: 20px;
    width: auto;
}

.sidebarMainButtonSmall:hover {
    color: var(--sb-text-strong);
    background: var(--sb-bg-hover);
}

/* Active collapsed button */
.menu-item.active > .sidebarMainButtonSmall,
.sidebarMainButtonSmall.active {
    color: var(--sb-accent-light);
    background: var(--sb-bg-active);
}

.sidebarMainButtonSmall img {
    width: 20px;
    height: 20px;
    opacity: 0.65;
    transition: opacity var(--sb-duration) var(--sb-ease);
}

.sidebarMainButtonSmall:hover img {
    opacity: 0.9;
}

/* Collapsed logout area */
.logoutButtonContainerSmall {
    flex-shrink: 0;
    display: flex;
    justify-content: center;
    padding: 12px 0 16px;
    border-top: 1px solid var(--sb-border);
}

.logoutButtonContainerSmall .sidebarMainButtonSmall:hover {
    color: #FF6B6B;
    background: rgba(255, 107, 107, 0.08);
}

.logoutButtonContainerSmall .sidebarMainButtonSmall:hover .sidebar-icon {
    color: #FF6B6B;
}

/* ------------------------------------------------------------
   16. FLYOUT DROPDOWN (collapsed sidebar hover menus)
   ------------------------------------------------------------ */
.dropdownMenuDiv {
    display: none;
    position: absolute;
    left: calc(var(--sb-width-collapsed) - 6px);
    top: 0;
    min-width: 220px;
    max-width: 280px;
    max-height: 70vh;
    overflow-y: auto;
    padding: 6px;
    background: var(--sb-bg-flyout);
    border: 1px solid var(--sb-border);
    border-radius: 10px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.40),
                0 2px 8px rgba(0, 0, 0, 0.20);
    z-index: 1060;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.10) transparent;
}

.dropdownMenuDiv::-webkit-scrollbar {
    width: 4px;
}

.dropdownMenuDiv::-webkit-scrollbar-track {
    background: transparent;
}

.dropdownMenuDiv::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.10);
    border-radius: 10px;
}

/* Show flyout on hover of parent collapsed button */
.menu-item:hover > .dropdownMenuDiv,
.sidebarMainButtonSmall:hover + .dropdownMenuDiv,
.dropdownMenuDiv:hover {
    display: block;
}

/* Keep parent visible while flyout is hovered */
.menu-item:has(.dropdownMenuDiv:hover) > .sidebarMainButtonSmall {
    color: var(--sb-text-strong);
    background: var(--sb-bg-hover);
}

.submenu-title {
    display: block;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--sb-text-muted);
    padding: 8px 10px 6px;
    user-select: none;
}

/* Flyout sub-buttons */
.dropdownMenuDiv .sidebarLvl1SubButton {
    height: 34px;
    font-size: 12.5px;
    padding-left: 10px;
    border-radius: 6px;
}

.dropdownMenuDiv .sidebarLvl1SubButton:hover {
    background: var(--sb-bg-hover);
}

/* Active item inside flyout */
.dropdownMenuDiv .menu-item.active > .sidebarLvl1SubButton {
    color: var(--sb-text-active);
    background: var(--sb-bg-active);
}

.dropdownMenuDiv .menu-item.active > .sidebarLvl1SubButton::before {
    top: 4px;
    bottom: 4px;
}

/* ------------------------------------------------------------
   17. MOBILE SCRIM OVERLAY
   ------------------------------------------------------------ */
.sidebar-mobile-scrim {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 1035;
    background: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    border: none;
    padding: 0;
    margin: 0;
    cursor: default;
    opacity: 0;
    transition: opacity var(--sb-duration-slow) var(--sb-ease);
}

.sidebar-mobile-scrim.is-visible {
    display: block;
    opacity: 1;
}

/* ------------------------------------------------------------
   18. COLLAPSE / BOOTSTRAP HIDDEN STATE
   ------------------------------------------------------------ */
.collapse {
    display: none !important;
}

/* Mobile nav visible - force expanded sidebar visible on mobile */
.mobile-nav-visible {
    transform: translateX(0) !important;
}

/* ------------------------------------------------------------
   19. RESPONSIVE - DESKTOP (>= 768px)
   ------------------------------------------------------------ */
@media (min-width: 768px) {
    .sidebar-mobile-scrim {
        display: none !important;
    }

    .mobile-logout-container {
        display: none !important;
    }
}

/* ------------------------------------------------------------
   20. RESPONSIVE - MOBILE (< 768px)
   ------------------------------------------------------------ */
@media (max-width: 767.98px) {
    /* Hide collapsed sidebar entirely on mobile */
    .sidebar-nav-container-small {
        display: none !important;
    }

    /* Expanded sidebar slides from left on mobile */
    .sidebar-nav-container {
        position: fixed;
        top: 0;
        left: 0;
        width: min(var(--sb-width), 85vw);
        height: 100vh;
        height: 100dvh;
        transform: translateX(-100%);
        box-shadow: none;
        transition: transform var(--sb-duration-slow) var(--sb-ease),
                    box-shadow var(--sb-duration-slow) var(--sb-ease);
    }

    .sidebar-nav-container.mobile-nav-visible {
        transform: translateX(0);
        box-shadow: 4px 0 32px rgba(0, 0, 0, 0.40);
    }

    /* Show mobile logout */
    .mobile-logout-container {
        display: block;
    }
}

/* ------------------------------------------------------------
   21. FOCUS STYLES (Accessibility)
   ------------------------------------------------------------ */
.sidebarMainButton:focus-visible,
.sidebarLvl1SubButton:focus-visible,
.sidebarMainButtonSmall:focus-visible,
.imageButton:focus-visible,
.toggledImageButton:focus-visible,
.mobile-logout-button:focus-visible {
    outline: 2px solid var(--sb-accent);
    outline-offset: -2px;
    border-radius: var(--sb-item-radius);
}

.sidebar-mobile-scrim:focus-visible {
    outline: none;
}

/* ------------------------------------------------------------
   22. REDUCED MOTION
   ------------------------------------------------------------ */
@media (prefers-reduced-motion: reduce) {
    .sidebar-nav-container,
    .sidebarMainButton,
    .sidebarLvl1SubButton,
    .sidebarMainButtonSmall,
    .sidebar-icon,
    .logoImage,
    .imageButton,
    .toggledImageButton,
    .mobile-logout-button,
    .sidebar-mobile-scrim,
    .dropdownMenuDiv,
    .expand-icon-container i,
    .active-image,
    .inactive-image {
        transition-duration: 0.01ms !important;
    }
}

/* ------------------------------------------------------------
   23. THEME OVERRIDES
   The sidebar uses a light blue theme by default.
   Dark mode adjustments are handled via [data-theme="dark"].
   ------------------------------------------------------------ */
/* Sidebar is already dark blue — minimal dark mode adjustments */
[data-theme="dark"] .sidebar-nav-container,
[data-theme="dark"] .sidebar-nav-container-small {
    --sb-bg:               #061528;
    --sb-bg-elevated:      #0A2038;
    --sb-bg-flyout:        #0A2038;
    background: linear-gradient(180deg, #0C2240 0%, #051220 100%);
}

/* ------------------------------------------------------------
   24. HIGH CONTRAST MODE
   ------------------------------------------------------------ */
@media (forced-colors: active) {
    .sidebar-nav-container,
    .sidebar-nav-container-small .sidebarContainerSmall {
        border-right: 1px solid CanvasText;
    }

    .sidebarMainButton.active::before,
    .sidebarLvl1SubButton.active::before,
    .menu-item.active > .sidebarMainButton::before,
    .menu-item.active > .sidebarLvl1SubButton::before {
        background: Highlight;
    }
}

/* ------------------------------------------------------------
   25. PRINT
   ------------------------------------------------------------ */
@media print {
    .sidebar-nav-container,
    .sidebar-nav-container-small,
    .sidebar-mobile-scrim {
        display: none !important;
    }
}
