/* ===========================================
   NAVBAR MOBILE CSS - Mobile/Tablet devices only (≤ 992px)
   =========================================== */

/* ====== MOBILE NAVBAR OVERRIDES ====== */
@media (max-width: 991.98px) {
    .navbar {
        padding: 0.5rem 1rem;
        min-height: 70px;
        height: 70px;
        display: flex !important;
        background: #b678f3 !important;
        align-items: center !important;
        justify-content: space-between !important;
        flex-wrap: nowrap !important;
    }

    /* Right section container */
    .navbar > .container-fluid {
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
        flex: 1 1 auto !important;
        flex-wrap: nowrap !important;
        min-width: 0 !important;
        padding: 0 !important;
    }
    
    body .navbar-brand {
        font-size: 1.25rem;
        margin-right: 1rem;
        flex: 0 0 auto !important;
        white-space: nowrap !important;
    }
    
    body .navbar-brand i {
        font-size: 1.5rem;
    }
    
    /* Controls container */
    .navbar .navbar-nav,
    .navbar .user-profile-container,
    .navbar .notification-bell-container {
        display: flex !important;
        align-items: center !important;
        margin: 0 !important;
        padding: 0 !important;
        flex: 0 0 auto !important;
    }
    
    .navbar-toggler {
        position: relative;
        border: 1px solid #e9ecef;
        /* extra right padding to make room for arrow */
        padding: 0.375rem 2rem 0.375rem 0.75rem;
        border-radius: 0.375rem;
    }
    
    .navbar-toggler:hover {
        background-color: rgba(0, 0, 0, 0.05);
    }

    /* Profile picture as mobile toggler */
    .navbar-toggler.user-profile-toggle {
        padding: 0;
        border: none;
        background: transparent;
        border-radius: 50%;
        width: 65px;
        height: 65px;
        display: flex;
        align-items: center;
        justify-content: center;
        overflow: visible;
        /* Rounded curvy shadow like navbar */
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15), 
                    0 2px 10px rgba(0, 0, 0, 0.1),
                    0 0 30px rgba(255, 255, 255, 0.3);
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    }
    
    .navbar-toggler.user-profile-toggle:hover {
        background-color: rgba(255, 255, 255, 0.2);
        transform: scale(1.08);
        box-shadow: 0 6px 30px rgba(0, 0, 0, 0.2), 
                    0 4px 15px rgba(0, 0, 0, 0.15),
                    0 0 40px rgba(255, 255, 255, 0.4);
    }

    .navbar-toggler-avatar {
        width: 60px;
        height: 60px;
        border-radius: 50%;
        object-fit: cover;
        border: 3px solid rgba(255, 255, 255, 0.8);
        display: flex;
        align-items: center;
        justify-content: center;
        font-weight: 600;
        font-size: 1.1rem;
        /* Glassmorphism effect */
        background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.9) 0%, rgba(255, 255, 255, 0.6) 40%, transparent 70%),
                    linear-gradient(135deg, rgba(255, 255, 255, 0.8) 0%, rgba(255, 255, 255, 0.5) 100%);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        color: #212529;
        flex-shrink: 0;
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        box-shadow: inset 0 0 20px rgba(255, 255, 255, 0.3),
                    0 2px 10px rgba(0, 0, 0, 0.1);
    }

    /* Arrow indicator for collapse (CSS only, no JS) - hidden for profile toggle */
    .navbar-toggler.user-profile-toggle::after {
        display: none;
    }
    
    /* Show arrow for regular hamburger menu */
    .navbar-toggler:not(.user-profile-toggle)::after {
        content: '';
        position: absolute;
        right: 0.5rem;
        top: 50%;
        width: 0.5rem;
        height: 0.5rem;
        border-right: 2px solid currentColor;
        border-bottom: 2px solid currentColor;
        transform: translateY(-50%) rotate(45deg);
        transition: transform 0.2s ease;
        opacity: 0.85;
        pointer-events: none;
    }

    /* Rotate arrow up when expanded */
    .navbar-toggler:not(.user-profile-toggle)[aria-expanded="true"]::after {
        transform: translateY(-50%) rotate(-135deg);
    }
    
    /* Expand animation for profile picture */
    .navbar-toggler.user-profile-toggle[aria-expanded="true"] {
        background-color: rgba(255, 255, 255, 0.3);
        box-shadow: 0 8px 40px rgba(0, 0, 0, 0.25), 
                    0 4px 20px rgba(0, 0, 0, 0.2),
                    0 0 50px rgba(255, 255, 255, 0.5);
    }
    
    .navbar-toggler.user-profile-toggle[aria-expanded="true"] .navbar-toggler-avatar {
        transform: scale(1.12);
        border-color: rgba(255, 255, 255, 1);
        box-shadow: inset 0 0 30px rgba(255, 255, 255, 0.4),
                    0 4px 15px rgba(0, 0, 0, 0.2),
                    0 0 40px rgba(255, 255, 255, 0.6);
    }
    
    .navbar-collapse {
        background-color: #ba82f3;
        position: fixed !important;
        top: 70px !important;
        /* Align to right when profile picture is on right */
        right: 1rem !important;
        left: auto !important;
        width: calc(75% - 2rem) !important;
        max-width: 400px !important;
        border-top: 1px solid #e9ecef;
        margin-top: 0.75rem;
        padding-top: 0.75rem;
        padding-bottom: 2rem;
        padding-left: 1rem !important;
        padding-right: 1rem !important;
        text-align: left !important;
        /* Rounded curved box with enhanced shadows */
        box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15),
                    0 4px 15px rgba(0, 0, 0, 0.1),
                    0 0 50px rgba(182, 130, 243, 0.3);
        border-radius: 1.5rem;
        border: 1px solid rgba(255, 255, 255, 0.2);
        max-height: calc(100vh - 200px);
        overflow-y: auto;
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
    }
    
    .navbar-collapse .navbar-nav {
        text-align: left !important;
        align-items: flex-start !important;
        justify-content: flex-start !important;
        width: 100% !important;
    }
    
    .navbar-nav .nav-link {
        padding: 0.875rem 1rem !important;
        padding-left: 1rem !important;
        margin: 0.125rem 0 !important;
        margin-left: 0 !important;
        border-left: 3px solid transparent;
        transition: all 0.15s ease-in-out;
        border-radius: 0.75rem;
        text-align: left !important;
        justify-content: flex-start !important;
        display: flex !important;
        align-items: center !important;
        width: 100% !important;
    }
    
    .navbar-nav .nav-link:hover {
        border-left-color: #6c757d;
        transform: translateX(4px);
        background-color: rgba(255, 255, 255, 0.15);
    }
    
    .navbar-nav .nav-link.active-link {
        border-left-color: #0d6efd;
        background-color: rgba(255, 255, 255, 0.2);
        border-radius: 0.75rem;
    }
    

    
    .navbar-nav.me-auto {
        margin-right: 0;
        text-align: left !important;
        justify-content: flex-start !important;
    }
    
    .navbar-nav.ms-auto {
        margin-left: 0;
    }
    
    .navbar-nav {
        text-align: left !important;
        align-items: flex-start !important;
        justify-content: flex-start !important;
    }
    
    .navbar-collapse .navbar-nav .nav-item {
        text-align: left !important;
        width: 100% !important;
    }
    
    /* Right side items positioning */
    .navbar .ms-auto {
        display: flex !important;
        align-items: center !important;
        gap: 0.5rem !important;
        margin-left: auto !important;
    }

    /* Menu button positioning */
    .navbar-toggler {
        margin-left: 0.5rem !important;
    }
    
    /* Position profile picture toggle on the right side */
    .navbar-toggler.user-profile-toggle {
        margin-left: auto !important;
        margin-right: 0 !important;
        order: 10; /* Push to the end */
    }
    
    /* Make sure items stay on the same line */
    .navbar > .container-fluid > :not(.navbar-collapse) {
        flex-shrink: 0 !important;
    }

    /* ====== MOBILE NAVBAR NOTIFICATION BELL ====== */
    .navbar .notification-bell-container {
        display: flex !important;
        align-items: center;
        margin: 0;
    }
    
    .navbar .notification-bell {
        padding: 0.5rem;
        font-size: 1.25rem;
        color: #212529;
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        display: flex;
        align-items: center;
        justify-content: center;
        min-height: 44px;
        min-width: 44px;
        text-decoration: none;
        background: rgba(255, 255, 255, 0.1);
        border-radius: 50%;
        position: relative;
        /* Modern shadow */
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1),
                    0 0 20px rgba(255, 255, 255, 0.2);
    }
    
    .navbar .notification-bell:hover {
        color: #000000;
        background: rgba(255, 255, 255, 0.25);
        transform: translateY(-2px) scale(1.05);
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15),
                    0 0 30px rgba(255, 255, 255, 0.3);
    }
    
    .navbar .notification-bell:active {
        transform: translateY(0) scale(0.95);
    }
    
    .navbar .notification-badge {
        position: absolute;
        top: -0.125rem;
        right: -0.125rem;
        /* Modern gradient background */
        background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
        color: white;
        border-radius: 50%;
        padding: 0.125rem 0.375rem;
        font-size: 0.7rem;
        font-weight: 700;
        min-width: 1.5rem;
        height: 1.5rem;
        display: flex;
        align-items: center;
        justify-content: center;
        /* Modern glow effect */
        box-shadow: 0 0 15px rgba(231, 76, 60, 0.6),
                    0 4px 10px rgba(0, 0, 0, 0.2),
                    inset 0 1px 0 rgba(255, 255, 255, 0.3);
        border: 2px solid rgba(255, 255, 255, 0.9);
        /* Pulse animation */
        animation: modern-pulse 2s ease-in-out infinite;
        z-index: 10;
    }
    
    @keyframes modern-pulse {
        0%, 100% { 
            transform: scale(1); 
            box-shadow: 0 0 15px rgba(231, 76, 60, 0.6),
                        0 4px 10px rgba(0, 0, 0, 0.2),
                        inset 0 1px 0 rgba(255, 255, 255, 0.3);
        }
        50% { 
            transform: scale(1.1); 
            box-shadow: 0 0 25px rgba(231, 76, 60, 0.8),
                        0 6px 15px rgba(0, 0, 0, 0.3),
                        inset 0 1px 0 rgba(255, 255, 255, 0.4);
        }
    }
    
    /* ====== BASIC MOBILE DROPDOWN FIX ====== */
    .navbar-collapse .dropdown-menu {
        position: static !important;
        width: 100% !important;
        margin-top: 0.5rem !important;
        border: none !important;
        border-radius: 0 !important;
        background-color: transparent !important;
        box-shadow: none !important;
        padding: 0 !important;
        max-height: 200px !important;
        overflow-y: auto !important;
        overflow-x: hidden !important;
        scrollbar-width: thin !important;
        scrollbar-color: rgba(0, 0, 0, 0.3) transparent !important;
    }
    
    .navbar-collapse .dropdown-menu::-webkit-scrollbar {
        width: 6px !important;
    }
    
    .navbar-collapse .dropdown-menu::-webkit-scrollbar-track {
        background: transparent !important;
    }
    
    .navbar-collapse .dropdown-menu::-webkit-scrollbar-thumb {
        background-color: rgba(0, 0, 0, 0.3) !important;
        border-radius: 3px !important;
    }
    
    .navbar-collapse .dropdown-item {
        padding: 0.75rem 1rem !important;
        padding-left: 1rem !important;
        margin: 0.25rem 0 !important;
        color: #212529 !important;
        text-decoration: none !important;
        display: block !important;
        white-space: nowrap !important;
        text-align: left !important;
    }
    
    .navbar-collapse .dropdown-item:hover {
        background-color: rgba(0, 0, 0, 0.05) !important;
        color: #000000 !important;
    }
    
    .navbar-collapse .dropdown-divider {
        margin: 0.5rem 0 !important;
        border-top: 1px solid rgba(0, 0, 0, 0.1) !important;
        opacity: 0.5 !important;
    }
    
    /* ====== SCROLLBAR STYLING ====== */
    .navbar-collapse::-webkit-scrollbar {
        width: 6px;
    }
    
    .navbar-collapse::-webkit-scrollbar-track {
        background: transparent;
    }
    
    .navbar-collapse::-webkit-scrollbar-thumb {
        background-color: rgba(0, 0, 0, 0.3);
        border-radius: 3px;
    }
    
    /* ====== MOBILE USER INFO STYLING ====== */
    .navbar .user-info-mobile {
        display: flex !important;
        flex-direction: column;
        align-items: flex-start;
        margin-left: 0.75rem;
        flex: 1;
        min-width: 0;
    }
    
    .navbar .user-name-mobile {
        font-weight: 600;
        font-size: 0.9rem;
        color: #212529 !important;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        max-width: 120px;
        line-height: 1.2;
    }
    
    .navbar .user-role-mobile {
        font-size: 0.75rem;
        color: #212529 !important;
        margin-top: 0.125rem;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        max-width: 120px;
        line-height: 1.2;
    }
    
    /* ====== ENSURE USER INFO IS VISIBLE ON MOBILE ====== */
    .navbar .user-profile-container {
        width: 100% !important;
        display: flex !important;
        justify-content: center !important;
        margin-top: 1rem !important;
    }
    
    .navbar .user-dropdown-toggle {
        display: flex !important;
        align-items: center;
        gap: 0.5rem;
        padding: 0.5rem 0.75rem;
        background-color: transparent !important;
        border: none !important;
        border-radius: 0.5rem;
        color: #212529 !important;
        font-weight: 500;
        text-align: center !important;
        width: 100%;
        min-height: 48px;
        justify-content: center !important;
        margin: 0 auto;
        max-width: 300px;
    }
    
    .navbar .user-avatar {
        width: 36px;
        height: 36px;
        border-radius: 50%;
        border: 2px solid rgba(0, 0, 0, 0.1);
        background-color: rgba(255, 255, 255, 0.9);
        color: #212529 !important;
        display: flex;
        align-items: center;
        justify-content: center;
        font-weight: 600;
        font-size: 0.9rem;
        flex-shrink: 0;
    }
}

/* ====== SMALL MOBILE ADJUSTMENTS ====== */
@media (max-width: 576px) {
    .navbar {
        padding: 0.5rem 0.75rem;
    }
    
    .navbar-brand {
        font-size: 1.125rem;
    }
    
    .navbar-brand i {
        font-size: 1.375rem;
    }
}

/* ====== MOBILE BOTTOM NAVIGATION ====== */
@media (max-width: 991.98px) {
    /* Add toggle button for bottom nav */
    .mobile-nav-toggle {
        position: fixed;
        bottom: calc(65px + env(safe-area-inset-bottom, 0));
        left: 1rem;
        z-index: 1031;
        width: 40px;
        height: 40px;
        background: transparent;
        border-radius: 50%;
        border: 1px solid rgba(0, 0, 0, 0.1);
        box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        transition: all 0.3s ease;
    }

    .mobile-nav-toggle::after {
        content: '';
        width: 10px;
        height: 10px;
        border-right: 2px solid #6c757d;
        border-bottom: 2px solid #6c757d;
        transform: translateY(-2px) rotate(45deg);
        transition: transform 0.3s ease;
    }

    .mobile-nav-toggle.collapsed::after {
        transform: translateY(2px) rotate(-135deg);
    }

    .mobile-bottom-nav {
        background: transparent;
        box-shadow: 0 -4px 15px rgba(0, 0, 0, 0.1);
        position: fixed;
        bottom: env(safe-area-inset-bottom, 0);
        left: 0;
        right: 0;
        z-index: 1030;
        padding: 0 0.5rem;
        border-top-left-radius: 1.25rem;
        border-top-right-radius: 1.25rem;
        border-top: 1px solid rgba(0, 0, 0, 0.05);
        height: 65px;
        max-height: 65px;
        width: 100%;
        min-width: 100%;
        display: flex;
        align-items: center;
        justify-content: flex-start;
        transform: translateY(0);
        transition: all 0.3s ease-in-out;
        transform: translateY(0);
        transition: transform 0.3s ease-in-out;
        /* Force GPU acceleration */
        -webkit-transform: translateZ(0);
        transform: translateZ(0);
        -webkit-backface-visibility: hidden;
        backface-visibility: hidden;
        /* Better scroll handling */
        overflow-x: auto;
        overflow-y: hidden;
        /* Enable horizontal scrolling for long nav items */
        -webkit-overflow-scrolling: touch;
        /* Ensure visibility in emulator */
        visibility: visible !important;
        opacity: 1 !important;
        /* Prevent any unwanted margin/padding */
        margin: 0 !important;
        /* Prevent content from being cut off */
        contain: none;
    }
    
    .mobile-bottom-nav::-webkit-scrollbar {
        display: none;
    }
    
    body {
        padding-bottom: calc(80px + env(safe-area-inset-bottom, 0px)) !important;
        /* Prevent elastic scroll on iOS */
        position: relative;
        overflow-x: hidden;
        width: 100%;
        height: 100%;
        transition: padding-bottom 0.3s ease-in-out;
    }

    body.nav-collapsed {
        padding-bottom: 0 !important;
    }

    /* Add collapsed state for bottom nav */
    .mobile-bottom-nav.collapsed {
        transform: translateY(100%);
    }
    
    html, body {
        font-size: 1.15rem !important;
        /* Ensure proper height calculation on iOS */
        min-height: -webkit-fill-available;
    }
    
    .mobile-bottom-nav,
    .mobile-nav-item {
        font-size: inherit !important;
    }

    .mobile-bottom-nav {
        background-color: transparent !important;
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
    }

    .mobile-bottom-nav-content {
        display: -webkit-box;
        display: flex;
        align-items: center;
        justify-content: flex-start;
        width: max-content;
        min-width: 100%;
        overflow-x: scroll;
        overflow-y: hidden;
        -webkit-overflow-scrolling: touch;
        scroll-behavior: smooth;
        padding: 0.25rem 0.5rem;
        /* Prevent content wrap */
        white-space: nowrap;
        /* Hide scrollbar */
        scrollbar-width: none;
        -ms-overflow-style: none;
        /* Force items to stay in a row */
        flex-wrap: nowrap;
        /* Set height */
        height: 65px;
        /* Better space distribution */
        gap: 0.75rem;
        /* Ensure content is visible */
        visibility: visible !important;
        opacity: 1 !important;
        /* Force horizontal scroll */
        touch-action: pan-x !important;
        /* Better scroll snap */
        scroll-snap-type: x mandatory;
        /* Prevent flex shrinking */
        flex-shrink: 0;
    }
    
    .mobile-bottom-nav-content::-webkit-scrollbar {
        display: none;
    }

    .mobile-nav-item {
        color: #6c757d;
        text-decoration: none;
        display: inline-flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        flex: 0 0 auto;
        padding: 0.25rem 0.5rem;
        transition: all 0.2s ease;
        position: relative;
        text-align: center;
        height: 55px;
        min-width: 85px;
        width: auto;
        white-space: nowrap;
        /* Better spacing */
        margin: 0;
        /* Ensure content is visible */
        visibility: visible !important;
        opacity: 1 !important;
        /* Allow text to display fully */
        overflow: visible;
        /* Prevent shrinking */
        flex-shrink: 0;
        /* Better touch handling */
        touch-action: manipulation;
        /* Scroll snap */
        scroll-snap-align: center;
        /* Force GPU */
        transform: translateZ(0);
        -webkit-transform: translateZ(0);
        will-change: transform;
    }
    
    /* Floating Bubble Pop-Out Effect for Active Items */
    .mobile-nav-item.active {
        position: relative;
        z-index: 100;
        /* Reduced lift to prevent clipping in 65px bar */
        transform: translateY(-6px);
        transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    }
    
    /* Floating Circular Bubble Background */
    .mobile-nav-item.active::after {
        content: '';
        position: absolute;
        top: 50%;
        left: 50%;
        /* Shrink bubble to fit within bar height */
        width: 44px;
        height: 44px;
        background: 
            radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.8) 0%, rgba(255, 255, 255, 0.4) 40%, transparent 70%),
            linear-gradient(135deg, 
                rgba(255, 255, 255, 0.9) 0%,
                rgba(255, 255, 255, 0.6) 50%,
                rgba(255, 255, 255, 0.8) 100%);
        border-radius: 50%;
        transform: translate(-50%, -50%) scale(0);
        transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
        z-index: -1;
        box-shadow: 
            0 8px 25px rgba(0, 0, 0, 0.15),
            0 4px 12px rgba(0, 0, 0, 0.1),
            0 2px 6px rgba(0, 0, 0, 0.08),
            inset 0 2px 0 rgba(255, 255, 255, 0.9),
            inset 0 -2px 0 rgba(255, 255, 255, 0.3);
        backdrop-filter: blur(20px) brightness(1.1);
        -webkit-backdrop-filter: blur(20px) brightness(1.1);
        border: 2px solid rgba(255, 255, 255, 0.6);
        animation: bubble-glow 3s ease-in-out infinite;
    }
    
    .mobile-nav-item.active::after {
        transform: translate(-50%, -50%) scale(1);
    }
    
    @keyframes bubble-glow {
        0%, 100% { 
            box-shadow: 
                0 8px 25px rgba(0, 0, 0, 0.15),
                0 4px 12px rgba(0, 0, 0, 0.1),
                0 2px 6px rgba(0, 0, 0, 0.08),
                inset 0 2px 0 rgba(255, 255, 255, 0.9),
                inset 0 -2px 0 rgba(255, 255, 255, 0.3);
        }
        50% { 
            box-shadow: 
                0 12px 35px rgba(0, 0, 0, 0.2),
                0 6px 18px rgba(0, 0, 0, 0.15),
                0 3px 8px rgba(0, 0, 0, 0.1),
                inset 0 3px 0 rgba(255, 255, 255, 0.95),
                inset 0 -3px 0 rgba(255, 255, 255, 0.4);
        }
    }
    
    .mobile-nav-item.active i {
        color: inherit;
        transform: scale(1.1);
        filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.2));
        text-shadow: 0 1px 3px rgba(255, 255, 255, 0.8);
        transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    }
    
    .mobile-nav-item.active small {
        color: inherit;
        transform: scale(1.05);
        font-weight: 800;
        text-shadow: 0 1px 3px rgba(255, 255, 255, 0.9);
        transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    }
    
    .mobile-nav-item:not(.active) {
        transform: translateY(0);
        z-index: 1;
    }
    
    .mobile-nav-item:not(.active)::after {
        display: none;
    }
    
    .mobile-nav-item i {
        font-size: 1.25rem;
        margin-bottom: 0.25rem;
        display: block;
        line-height: 1;
        height: 20px;
    }
    
    .mobile-nav-item small {
        font-size: 0.75rem;
        font-weight: 600;
        display: block;
        line-height: 1;
        margin-top: 0.125rem;
    }
    
    .mobile-nav-item:active {
        transform: scale(0.92);
    }
    
    /* Department-specific colors for bottom nav */
    .mobile-nav-item[href*="main-hall"].active i,
    .mobile-nav-item[href*="main-hall"].active small {
        color: #6f42c1 !important;
    }
    
    .mobile-nav-item[href*="emergency"].active i,
    .mobile-nav-item[href*="emergency"].active small {
        color: #ef476f !important;
    }
    
    .mobile-nav-item[href*="wd"].active i,
    .mobile-nav-item[href*="wd"].active small {
        color: #4361ee !important;
    }
    
    .mobile-nav-item[href*="bu"].active i,
    .mobile-nav-item[href*="bu"].active small {
        color: #ff9e00 !important;
    }
    
    .mobile-nav-item[href*="checkin"].active i,
    .mobile-nav-item[href*="checkin"].active small {
        color: #4361ee;
    }
    
    .mobile-nav-item[href*="undergraduate"].active i,
    .mobile-nav-item[href*="undergraduate"].active small {
        color: #28a745 !important;
    }
    
    .mobile-nav-item[href*="postgraduate"].active i,
    .mobile-nav-item[href*="postgraduate"].active small {
        color: #17a2b8 !important;
    }
    
    .mobile-nav-item[href*="research"].active i,
    .mobile-nav-item[href*="research"].active small {
        color: #6610f2 !important;
    }
    
    .mobile-nav-item[href="/"].active i,
    .mobile-nav-item[href="/"].active small {
        color: #3f37c9;
    }
    
    @media (hover: none) {
        .mobile-nav-item:hover i {
            transform: none;
        }
    }
    
    @media (max-width: 320px) {
        .mobile-nav-item i {
            font-size: 1.4rem;
        }
        
        .mobile-nav-item small {
            font-size: 0.75rem;
        }
        
        .mobile-bottom-nav {
            padding: 0.6rem 0 0.3rem;
        }
    }
}

/* ====== ACCESSIBILITY ====== */
@media (prefers-reduced-motion: reduce) {
    .navbar,
    .navbar-nav .nav-link,
    .notification-bell,
    .user-dropdown .dropdown-toggle,
    .dropdown-item,
    .mobile-nav-item {
        transition: none;
    }
    
    .navbar-nav .nav-link:hover,
    .notification-bell:hover,
    .user-dropdown .dropdown-toggle:hover,
    .dropdown-item:hover,
    .mobile-nav-item:hover {
        transform: none;
    }
}

/* ====== PRINT STYLES ====== */
@media print {
    .navbar,
    .mobile-bottom-nav {
        display: none;
    }
}

