@import url('mobile-spacing-standards.css');

/* Premium Dashboard Styles */
:root {
            /* Colors */
            --primary: #4F46E5; /* Indigo */
            --primary-light: #EEF2FF;
            --accent: #10b981; /* Premium Gold/Orange */
            --accent-light: #FEF3C7;
            
            --sidebar-bg: #111827;
            --sidebar-hover: rgba(255, 255, 255, 0.05);
            --sidebar-text: #9CA3AF;
            --sidebar-active: #F3F4F6;
            
            --bg-body: #F8FAFC;
            --bg-card: #FFFFFF;
            
            --text-dark: #0F172A;
            --text-muted: #64748B;
            --border-color: #E2E8F0;
            
            --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
            --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
            --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
            --shadow-glow: 0 10px 25px -5px rgba(79, 70, 229, 0.3);
            
            --radius-lg: 16px;
            --radius-xl: 24px;
            --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        }

        body {
            font-family: 'Inter', sans-serif;
            background-color: var(--bg-body);
            color: var(--text-dark);
            margin: 0;
            padding: 0;
            display: flex;
            height: 100vh;
            overflow: hidden;
        }

        /* ----- LEFT SIDEBAR ----- */
        .sidebar {
            width: 280px;
            background-color: var(--sidebar-bg);
            height: 100vh;
            display: flex;
            flex-direction: column;
            border-right: 1px solid rgba(255,255,255,0.05);
            position: relative;
            z-index: 100;
        }

        .sidebar-header {
            padding: 24px 20px;
            display: flex;
            align-items: center;
            gap: 12px;
            border-bottom: 1px solid rgba(255,255,255,0.05);
        }

        .inst-logo {
            width: 40px;
            height: 40px;
            background: linear-gradient(135deg, var(--primary), #818CF8);
            border-radius: 12px;
            display: flex;
            align-items: center;
            justify-content: center;
            color: white;
            font-size: 1.2rem;
            box-shadow: var(--shadow-glow);
        }

        .inst-name {
            font-family: 'Outfit', sans-serif;
            font-weight: 700;
            color: white;
            font-size: 1.05rem;
            line-height: 1.2;
        }

        .sidebar-menu {
            flex-grow: 1;
            overflow-y: auto;
            padding: 20px 0;
        }
        
        .sidebar-menu::-webkit-scrollbar { width: 4px; }
        .sidebar-menu::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.1); border-radius: 4px; }

        .menu-section {
            font-size: 0.75rem;
            font-weight: 700;
            color: rgba(255,255,255,0.3);
            text-transform: uppercase;
            letter-spacing: 1px;
            padding: 0 24px;
            margin-bottom: 12px;
            margin-top: 20px;
        }

        .menu-item {
            display: flex;
            align-items: center;
            padding: 12px 24px;
            color: var(--sidebar-text);
            text-decoration: none;
            transition: var(--transition);
            position: relative;
            border-left: 3px solid transparent;
        }

        .menu-item:hover {
            background: linear-gradient(90deg, rgba(16, 185, 129, 0.08) 0%, transparent 100%);
            color: white;
            border-left: 3px solid rgba(16, 185, 129, 0.5);
            transform: translateX(4px);
        }

        .menu-item.active {
            background: linear-gradient(90deg, rgba(16, 185, 129, 0.15) 0%, transparent 100%);
            color: white;
            border-left: 3px solid var(--accent);
            font-weight: 600;
        }

        .menu-icon {
            width: 24px;
            margin-right: 12px;
            font-size: 1.2rem;
            display: flex;
            justify-content: center;
        }

        .menu-text {
            flex-grow: 1;
        }
        
        .menu-text-main {
            font-weight: 600;
            font-size: 0.9rem;
            display: block;
        }

        .menu-text-sub {
            font-size: 0.7rem;
            color: rgba(255,255,255,0.4);
            display: block;
            margin-top: 2px;
        }

        .menu-arrow {
            font-size: 0.8rem;
            color: rgba(255,255,255,0.2);
            transition: var(--transition);
        }
        
        .menu-item:hover .menu-arrow {
            transform: translateX(3px);
            color: white;
        }

        /* Colorful icons for specific programs */
        .ic-it { color: #3B82F6; }
        .ic-cse { color: #8B5CF6; }
        .ic-ce { color: #10b981; }
        .ic-me { color: #10B981; }
        .ic-eee { color: #EAB308; }
        .ic-mte { color: #64748B; }
        .ic-ece { color: #EF4444; }

        /* ----- MAIN CONTENT WRAPPER ----- */
        .main-wrapper {
            flex-grow: 1;
            display: flex;
            flex-direction: column;
            overflow: hidden;
            background-color: var(--bg-body);
        }

        /* ----- TOP NAVBAR ----- */
        .top-navbar {
            height: 72px;
            background: rgba(255, 255, 255, 0.9);
            backdrop-filter: blur(10px);
            border-bottom: 1px solid var(--border-color);
            display: flex;
            align-items: center;
            justify-content: space-between;
            padding: 0 30px;
            z-index: 50;
        }

        .nav-brand {
            display: flex;
            align-items: center;
            gap: 16px;
        }

        .brand-text {
            font-family: 'Outfit', sans-serif;
            font-weight: 900;
            font-size: 1.5rem;
            color: #1E3A8A; /* Deep blue */
            text-decoration: none;
            letter-spacing: -0.5px;
        }

        .badge-smart {
            background: linear-gradient(135deg, rgba(16, 185, 129, 0.1), rgba(16, 185, 129, 0.05));
            border: 1px solid rgba(16, 185, 129, 0.2);
            color: #059669;
            font-size: 0.75rem;
            font-weight: 700;
            padding: 6px 12px;
            border-radius: 50px;
            display: flex;
            align-items: center;
            gap: 6px;
        }

        .search-bar {
            position: relative;
            width: 100%;
            max-width: 350px;
        }

        .search-bar input {
            width: 100%;
            height: 42px;
            background: #F1F5F9;
            border: 1px solid transparent;
            border-radius: 50px;
            padding: 0 20px 0 45px;
            font-size: 0.9rem;
            color: var(--text-dark);
            transition: var(--transition);
        }

        .search-bar input:focus {
            outline: none;
            background: white;
            border-color: var(--primary);
            box-shadow: 0 0 0 4px var(--primary-light);
        }

        .search-bar .bi-search {
            position: absolute;
            left: 18px;
            top: 50%;
            transform: translateY(-50%);
            color: var(--text-muted);
        }

        .search-bar .shortcut {
            position: absolute;
            right: 12px;
            top: 50%;
            transform: translateY(-50%);
            background: white;
            border: 1px solid var(--border-color);
            border-radius: 4px;
            font-size: 0.7rem;
            padding: 2px 6px;
            color: var(--text-muted);
            font-weight: 600;
        }

        .nav-tools {
            display: flex;
            align-items: center;
            gap: 16px;
        }

        .icon-btn {
            width: 40px;
            height: 40px;
            border-radius: 50%;
            background: #F1F5F9;
            border: none;
            color: var(--text-dark);
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 1.1rem;
            transition: var(--transition);
            cursor: pointer;
            position: relative;
            text-decoration: none;
        }

        .icon-btn:hover {
            background: #E2E8F0;
            color: var(--primary);
        }

        .icon-btn .badge-count {
            position: absolute;
            top: -2px;
            right: -2px;
            background: #EF4444;
            color: white;
            font-size: 0.65rem;
            font-weight: 700;
            width: 18px;
            height: 18px;
            display: flex;
            align-items: center;
            justify-content: center;
            border-radius: 50%;
            border: 2px solid white;
        }

        .btn-logout {
            background: #EF4444;
            color: white;
            border: none;
            border-radius: 10px;
            padding: 8px 16px;
            font-weight: 600;
            font-size: 0.9rem;
            display: flex;
            align-items: center;
            gap: 8px;
            transition: var(--transition);
            text-decoration: none;
        }

        .btn-logout:hover {
            background: #DC2626;
            box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
            color: white;
        }

        .user-profile {
            display: flex;
            align-items: center;
            gap: 12px;
            padding-left: 16px;
            border-left: 1px solid var(--border-color);
        }

        .user-avatar {
            width: 40px;
            height: 40px;
            border-radius: 50%;
            background: var(--primary);
            color: white;
            display: flex;
            align-items: center;
            justify-content: center;
            font-weight: 700;
            font-family: 'Outfit', sans-serif;
            font-size: 1.1rem;
        }

        .user-info {
            display: flex;
            flex-direction: column;
        }

        .user-name {
            font-weight: 700;
            font-size: 0.9rem;
            color: var(--text-dark);
        }

        .user-role {
            font-size: 0.7rem;
            color: var(--text-muted);
            text-transform: uppercase;
            font-weight: 600;
            letter-spacing: 0.5px;
        }

        /* ----- DASHBOARD CONTENT AREA ----- */
        .content-area {
            display: flex;
            flex-grow: 1;
            overflow: hidden;
            padding: 24px 30px;
            gap: 24px;
        }

        /* CENTER COLUMN (MODULES) */
        .center-col {
            flex: 1;
            overflow-y: auto;
            padding-right: 10px;
        }
        
        .center-col::-webkit-scrollbar { width: 6px; }
        .center-col::-webkit-scrollbar-thumb { background: #CBD5E1; border-radius: 10px; }

        .module-header-container {
            display: flex;
            align-items: center;
            gap: 16px;
            margin-bottom: 30px;
        }

        .module-title-badge {
            background: #E0F2FE;
            color: #0284C7;
            padding: 10px 20px;
            border-radius: 50px;
            font-family: 'Outfit', sans-serif;
            font-weight: 800;
            font-size: 1.1rem;
            display: flex;
            align-items: center;
            gap: 10px;
            border: 1px solid rgba(2, 132, 199, 0.2);
        }
        
        .module-title-badge i {
            background: #0284C7;
            color: white;
            width: 28px; height: 28px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 0.9rem;
        }

        .level-badge {
            background: var(--text-dark);
            color: white;
            padding: 6px 14px;
            border-radius: 50px;
            font-weight: 700;
            font-size: 0.8rem;
            display: flex;
            align-items: center;
            gap: 6px;
        }

        .semester-text {
            color: var(--text-muted);
            font-weight: 600;
            font-size: 0.95rem;
        }

        .semester-toggles {
            margin-left: auto;
            display: flex;
            gap: 8px;
            background: white;
            padding: 4px;
            border-radius: 50px;
            border: 1px solid var(--border-color);
            box-shadow: var(--shadow-sm);
        }

        .sem-toggle {
            padding: 6px 16px;
            border-radius: 50px;
            font-weight: 600;
            font-size: 0.85rem;
            color: var(--text-muted);
            text-decoration: none;
            transition: var(--transition);
        }

        .sem-toggle.active {
            background: var(--accent-light);
            color: #047857;
            box-shadow: 0 2px 4px rgba(16, 185, 129, 0.1);
        }

        /* Module Text List Items */
        .module-list-container {
            background: var(--bg-card);
            border-radius: var(--radius-lg);
            border: 1px solid var(--border-color);
            padding: 12px 24px;
            box-shadow: var(--shadow-sm);
        }

        .module-text-item {
            display: flex;
            align-items: center;
            padding: 16px 8px;
            border-bottom: 1px solid var(--border-color);
            text-decoration: none;
            transition: var(--transition);
            position: relative;
            overflow: hidden;
            border-radius: 8px;
            margin-bottom: 2px;
        }

        .module-text-item:last-child {
            border-bottom: none;
            margin-bottom: 0;
        }

        .module-text-item:hover {
            background-color: var(--primary-light);
            transform: translateX(6px);
        }

        .module-text-item::before {
            content: '';
            position: absolute;
            left: 0;
            top: 0;
            height: 100%;
            width: 3px;
            background: var(--primary);
            transform: scaleY(0);
            transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
            transform-origin: center;
        }

        .module-text-item:hover::before {
            transform: scaleY(1);
        }

        .module-text-number {
            font-family: 'Outfit', sans-serif;
            font-weight: 800;
            font-size: 1rem;
            color: var(--text-muted);
            margin-right: 20px;
            opacity: 0.6;
            transition: var(--transition);
        }

        .module-text-item:hover .module-text-number {
            color: var(--primary);
            opacity: 1;
        }

        .module-text-title {
            font-family: 'Outfit', sans-serif;
            font-weight: 700;
            font-size: 1.05rem;
            color: var(--text-dark);
            flex-grow: 1;
            text-transform: uppercase;
            transition: color 0.3s ease;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }

        .module-text-item:hover .module-text-title {
            color: var(--primary);
        }

        .module-text-icon {
            color: var(--text-muted);
            font-size: 1.2rem;
            opacity: 0;
            transform: translateX(-15px);
            transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        }

        .module-text-item:hover .module-text-icon {
            opacity: 1;
            transform: translateX(0);
            color: var(--primary);
        }

        /* RIGHT COLUMN (NAVIGATOR) */
        .right-col {
            width: 320px;
            flex-shrink: 0;
            overflow-y: auto;
        }
        
        .right-col::-webkit-scrollbar { display: none; }

        .navigator-card {
            background: var(--bg-card);
            border-radius: var(--radius-xl);
            border: 1px solid var(--border-color);
            padding: 24px;
            box-shadow: var(--shadow-sm);
            margin-bottom: 24px;
        }

        .nav-header {
            margin-bottom: 20px;
        }

        .nav-header h3 {
            font-family: 'Outfit', sans-serif;
            font-weight: 800;
            font-size: 1.2rem;
            color: var(--text-dark);
            margin-bottom: 4px;
            display: flex;
            align-items: center;
            gap: 8px;
        }

        .nav-header h3 i {
            color: var(--primary);
        }

        .nav-header p {
            color: var(--text-muted);
            font-size: 0.85rem;
            margin: 0;
        }

        .section-divider {
            display: flex;
            align-items: center;
            margin: 20px 0 15px;
        }

        .section-badge {
            background: var(--text-dark);
            color: white;
            padding: 4px 12px;
            border-radius: 50px;
            font-size: 0.75rem;
            font-weight: 700;
            letter-spacing: 0.5px;
        }

        .section-line {
            flex-grow: 1;
            height: 1px;
            background: var(--border-color);
            margin-left: 12px;
        }
        
        .section-line-degree {
            background: var(--primary-light);
            border: 1px solid var(--primary-light);
        }
        
        .section-badge-degree {
            background: var(--primary-light);
            color: var(--primary);
            border: 1px solid rgba(79, 70, 229, 0.2);
        }

        .grid-buttons {
            display: flex;
            flex-wrap: wrap;
            gap: 10px;
        }

        .grid-btn {
            background: white;
            border: 1px solid var(--border-color);
            border-radius: 10px;
            padding: 8px 16px;
            font-size: 0.85rem;
            font-weight: 600;
            color: var(--text-muted);
            display: flex;
            align-items: center;
            gap: 8px;
            transition: var(--transition);
            text-decoration: none;
            box-shadow: 0 1px 2px rgba(0,0,0,0.02);
        }

        .grid-btn:hover, .grid-btn.active {
            border-color: var(--primary);
            color: var(--primary);
            box-shadow: 0 4px 10px rgba(79, 70, 229, 0.1);
            transform: translateY(-1px);
        }

        .premium-features-header {
            font-family: 'Outfit', sans-serif;
            font-weight: 800;
            color: #059669;
            text-transform: uppercase;
            letter-spacing: 1px;
            border-bottom: 2px solid #FDE68A;
            padding-bottom: 8px;
            display: inline-block;
            margin-bottom: 8px;
            font-size: 1.1rem;
        }
        
        .premium-sub {
            color: var(--text-muted);
            font-size: 0.85rem;
            margin-bottom: 20px;
        }

        .feature-card {
            background: white;
            border: 1px solid var(--border-color);
            border-radius: 16px;
            padding: 20px;
            display: flex;
            align-items: center;
            justify-content: space-between;
            box-shadow: 0 4px 15px rgba(0,0,0,0.03);
            transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
            text-decoration: none;
            color: var(--text-dark);
            font-weight: 700;
            font-family: 'Outfit', sans-serif;
            font-size: 1.05rem;
            position: relative;
            overflow: hidden;
        }

        .feature-card::before {
            content: '';
            position: absolute;
            top: 0;
            left: -100%;
            width: 100%;
            height: 100%;
            background: linear-gradient(90deg, transparent, rgba(16, 185, 129, 0.05), transparent);
            transition: all 0.6s ease;
        }

        .feature-card:hover::before {
            left: 100%;
        }

        .feature-card:hover {
            border-color: #059669;
            box-shadow: 0 15px 30px rgba(16, 185, 129, 0.15);
            color: #059669;
            transform: translateY(-5px) scale(1.02);
        }

        .feature-card i.lock-icon {
            color: #CBD5E1;
            font-size: 1.2rem;
        }

        /* Premium Mobile Bottom Navigation */
        .mobile-bottom-nav {
            position: fixed;
            bottom: 0;
            left: 0;
            width: 100%;
            background: rgba(255, 255, 255, 0.95);
            backdrop-filter: blur(15px);
            -webkit-backdrop-filter: blur(15px);
            border-top: 1px solid rgba(0,0,0,0.05);
            box-shadow: 0 -4px 30px rgba(0,0,0,0.08);
            z-index: 9999;
            padding-bottom: env(safe-area-inset-bottom);
        }
        .mobile-bottom-nav-container {
            display: flex;
            justify-content: space-between;
            align-items: center;
            height: 55px;
            width: 100%;
        }
        .nav-item-bottom {
            position: relative;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            color: #10b981;
            text-decoration: none;
            font-size: 0.75rem;
            font-weight: 700;
            font-family: 'Outfit', sans-serif;
            flex: 1;
            min-height: 55px;
            transition: all 0.3s ease;
            -webkit-tap-highlight-color: transparent;
        }
        .nav-item-bottom::before {
            content: '';
            position: absolute;
            top: 40%;
            left: 50%;
            transform: translate(-50%, -50%) scale(0);
            width: 48px;
            height: 48px;
            background: radial-gradient(circle, rgba(16,185,129,0.2) 0%, rgba(16,185,129,0.05) 100%);
            border-radius: 50%;
            transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.3s ease;
            opacity: 0;
            z-index: -1;
        }
        .nav-item-bottom i {
            font-size: 1.35rem;
            margin-bottom: 2px;
            transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1), color 0.3s;
        }
        .nav-item-bottom span {
            transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
        }
        .nav-item-bottom:hover::before, .nav-item-bottom.active::before {
            transform: translate(-50%, -50%) scale(1);
            opacity: 1;
        }
        .nav-item-bottom:hover {
            color: #059669;
        }
        .nav-item-bottom:hover i {
            transform: translateY(-4px) scale(1.15);
            color: #059669;
            filter: drop-shadow(0 4px 6px rgba(16, 185, 129, 0.3));
        }
        .nav-item-bottom:active i {
            transform: scale(0.9) translateY(2px);
        }
        .nav-item-bottom.active {
            color: #047857;
            font-weight: 900;
        }
        .nav-item-bottom.active i {
            color: #047857;
            transform: translateY(-3px) scale(1.1);
            filter: drop-shadow(0 4px 8px rgba(16, 185, 129, 0.4));
        }
        @media (max-width: 1250px) {
            .content-area {
                flex-direction: column;
                overflow-y: auto;
            }
            .center-col {
                overflow-y: visible;
                padding-right: 0;
            }
            .right-col {
                width: 100%;
                overflow-y: visible;
                order: 2;
                margin-top: 20px;
            }
        }
        
        @media (max-width: 991px) {
            body.has-bottom-nav {
                padding-bottom: 70px !important;
            }
            body {
                height: auto;
                overflow: auto;
                display: block;
            }
            .main-wrapper {
                overflow: visible;
                overflow-x: hidden;
            }
            }
            .sidebar {
                display: none; /* Ficha sidebar kwenye simu sababu kuna menu ya chini */
            }
            .top-navbar {
                height: auto;
                padding: 15px 20px;
                flex-wrap: wrap;
                gap: 15px;
            }
            .nav-brand {
                flex-grow: 1;
            }
            .search-bar {
                width: 100%;
                order: 3;
            }
            .content-area {
                flex-direction: column;
                padding: 15px 20px;
                overflow: visible;
            }
            .center-col {
                overflow-y: visible;
                padding-right: 0;
            }
            .right-col {
                width: 100%;
                overflow-y: visible;
                order: -1;
                margin-bottom: 25px;
            }
            .module-header-container {
                flex-wrap: wrap;
                gap: 10px;
            }
            .semester-toggles {
                margin-left: 0;
                width: 100%;
                justify-content: space-between;
            }
            .sem-toggle {
                flex: 1;
                text-align: center;
            }
        }
/* Additional Extracted Inline Styles */
@keyframes popupAnim {
                            0% { opacity: 0; transform: scale(0.95) translateY(-15px); filter: blur(5px); }
                            100% { opacity: 1; transform: scale(1) translateY(0); filter: blur(0); }
                        }
                        @keyframes pulse-orange {
                            0% { box-shadow: 0 0 0 0 rgba(230, 126, 34, 0.7); }
                            70% { box-shadow: 0 0 0 8px rgba(230, 126, 34, 0); }
                            100% { box-shadow: 0 0 0 0 rgba(230, 126, 34, 0); }
                        }
.dash-premium-level-btn {
                                background: linear-gradient(135deg, rgba(16, 185, 129, 0.1) 0%, rgba(16, 185, 129, 0.15) 100%);
                                border: 1px solid rgba(16, 185, 129, 0.3);
                                color: #059669;
                                font-weight: 800;
                                font-family: 'Outfit', sans-serif;
                                font-size: 0.8rem;
                                letter-spacing: 0.5px;
                                border-radius: 50px;
                                padding: 5px 16px;
                                transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
                                box-shadow: 0 4px 10px rgba(16, 185, 129, 0.05);
                                text-decoration: none;
                            }
                            .dash-premium-level-btn:hover, .dash-premium-level-btn:focus, .dropdown.show .dash-premium-level-btn {
                                background: linear-gradient(135deg, #059669 0%, #047857 100%) !important;
                                color: #ffffff !important;
                                border-color: #059669 !important;
                                box-shadow: 0 8px 20px rgba(5, 150, 105, 0.4) !important;
                                transform: translateY(-2px);
                            }
                            .dash-premium-level-btn::after {
                                display: none;
                            }
                            .dropdown.show .dash-premium-level-btn .dash-dropdown-icon {
                                transform: rotate(180deg);
                            }
                            .dash-premium-level-menu {
                                min-width: 140px;
                                border-radius: 16px;
                                padding: 8px;
                                background: rgba(255, 255, 255, 0.95);
                                backdrop-filter: blur(15px);
                                border: 1px solid rgba(16, 185, 129, 0.15);
                                box-shadow: 0 15px 35px rgba(0,0,0,0.1), 0 5px 15px rgba(5, 150, 105, 0.1);
                                animation: premiumDropIn 0.3s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
                                transform-origin: top center;
                                margin-top: 8px !important;
                            }
                            .dash-premium-level-item {
                                font-size: 0.8rem;
                                font-weight: 700;
                                color: #475569;
                                padding: 8px 12px;
                                border-radius: 10px;
                                transition: all 0.3s ease;
                                margin-bottom: 4px;
                                display: flex;
                                align-items: center;
                                justify-content: space-between;
                                text-decoration: none;
                            }
                            .dash-premium-level-item:last-child {
                                margin-bottom: 0;
                            }
                            .dash-premium-level-item:hover {
                                background: rgba(16, 185, 129, 0.1);
                                color: #059669;
                                transform: translateX(4px);
                            }
                            .dash-premium-level-item i {
                                opacity: 0;
                                transform: scale(0.5);
                                transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
                                color: #059669;
                                font-size: 1rem;
                            }
                            .dash-premium-level-item:hover i {
                                opacity: 1;
                                transform: scale(1);
                            }
                            .dash-dropdown-icon {
                                font-size: 0.7rem;
                                transition: transform 0.3s ease;
                                margin-left: 6px;
                            }
.dash-sem-link {
                            position: relative;
                            display: inline-block;
                            padding: 6px 12px;
                            font-family: 'Outfit', sans-serif;
                            font-size: 0.95rem;
                            font-weight: 600;
                            color: #64748b;
                            text-decoration: none;
                            transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
                        }
                        .dash-sem-link::after {
                            content: '';
                            position: absolute;
                            bottom: 0;
                            left: 50%;
                            transform: translateX(-50%);
                            width: 0;
                            height: 2px;
                            background: linear-gradient(90deg, transparent, #0ea5e9, transparent);
                            transition: width 0.3s ease, background 0.3s ease;
                            opacity: 0;
                        }
                        .dash-sem-link:hover {
                            color: #0ea5e9 !important;
                            text-shadow: 0 0 15px rgba(14, 165, 233, 0.4);
                            transform: translateY(-2px);
                        }
                        .dash-sem-link:hover::after {
                            width: 80%;
                            opacity: 1;
                        }
                        .dash-sem-link.active {
                            color: #0ea5e9 !important;
                            font-weight: 800;
                        }
                        .dash-sem-link.active::after {
                            width: 100%;
                            opacity: 1;
                            background: linear-gradient(90deg, #38bdf8, #0ea5e9);
                            box-shadow: 0 2px 8px rgba(14, 165, 233, 0.5);
                        }

/* Mobile Typography & Layout Scaling */
@media (max-width: 768px) {
    .nav-header h3 {
        font-size: 1.05rem !important;
    }
    .module-text-title {
        font-size: 0.95rem !important;
    }
    .module-text-number {
        font-size: 0.85rem !important;
    }
    .navigator-card {
        padding: 16px !important;
    }
    
    /* PREMIUM MOBILE OPTIMIZATION - TOUCH TARGETS */
    .menu-item, 
    .nav-item-bottom, 
    .dash-sem-link,
    .btn {
        min-height: 48px !important;
        padding-top: 12px !important;
        padding-bottom: 12px !important;
        margin-bottom: 8px !important;
        display: flex;
        align-items: center;
    }

    .nav-item-bottom {
        padding-left: 20px !important;
        padding-right: 20px !important;
    }

    .menu-text-main, 
    .btn {
        font-size: 1rem !important;
        letter-spacing: 0.3px;
    }
}
/* --- LOADING ANIMATIONS --- */
@keyframes pulse-glow {
    0% {
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
        transform: scale(1);
    }
    50% {
        box-shadow: 0 0 20px 10px rgba(16, 185, 129, 0.3);
        transform: scale(1.02);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
        transform: scale(1);
    }
}

.btn-loading {
    animation: pulse-glow 1.5s infinite;
    pointer-events: none;
    opacity: 0.9;
}

@keyframes spin-custom {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
.spin-icon {
    animation: spin-custom 1s linear infinite;
    display: inline-block;
}

/* Staggered Fade In Up for Results */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.stagger-item {
    opacity: 0;
    animation: fadeInUp 0.5s ease forwards;
}

/* Delay for nth items */
.stagger-item:nth-child(1) { animation-delay: 0.1s; }
.stagger-item:nth-child(2) { animation-delay: 0.2s; }
.stagger-item:nth-child(3) { animation-delay: 0.3s; }
.stagger-item:nth-child(4) { animation-delay: 0.4s; }
.stagger-item:nth-child(5) { animation-delay: 0.5s; }
.stagger-item:nth-child(n+6) { animation-delay: 0.6s; }
/* --- PREMIUM EMPTY STATE --- */
.empty-state-glass {
    background: rgba(16, 185, 129, 0.05);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(16, 185, 129, 0.2);
    border-radius: 16px;
    padding: 2rem 1.5rem;
    margin: 1.5rem auto 0 auto;
    max-width: 300px;
    box-shadow: 0 10px 30px rgba(16, 185, 129, 0.08);
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    animation: fadeInUp 0.5s ease forwards;
}

.empty-state-glass:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(16, 185, 129, 0.15);
    background: rgba(16, 185, 129, 0.08);
    border-color: rgba(16, 185, 129, 0.3);
}

.empty-state-icon {
    font-size: 3rem;
    background: linear-gradient(135deg, #10b981, #059669);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 4px 10px rgba(16, 185, 129, 0.3));
    display: inline-block;
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.empty-state-glass:hover .empty-state-icon {
    transform: scale(1.1) translateY(-5px);
}

