:root {
            --primary-color: #0066cc;
            --primary-hover: #0052a3;
            --secondary-color: #00a65a;
            --accent-gold: #d4af37;
            --accent-red: #dc3545;
            --dark-bg: #1a1d29;
            --dark-card: #2a2d3a;
            --light-bg: #f8f9fa;
            --light-card: #ffffff;
            --text-dark: #e2e8f0;
            --text-light: #2d3748;
            --text-high-contrast: #ffffff;
            --icon-ai: #66b3ff; /* Light blue for AI icon */
            --icon-insights: #33cc99; /* Green for Insights icon */
            --icon-learning: #ffcc66; /* Gold for Learning icon */
            --border-radius: 12px;
            --shadow-light: 0 2px 10px rgba(0,0,0,0.1);
            --shadow-hover: 0 8px 25px rgba(0,0,0,0.15);
            --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        }

        * {
            box-sizing: border-box;
        }

        body {
            font-family: 'Inter', sans-serif;
            background: linear-gradient(135deg, var(--dark-bg) 0%, #2c3e50 100%);
            color: var(--text-dark);
            margin: 0;
            padding: 0;
            transition: var(--transition);
            min-height: 100vh;
        }

        body.light-mode {
            background: linear-gradient(135deg, var(--light-bg) 0%, #e3f2fd 100%);
            color: var(--text-light);
        }

        .top-header {
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            z-index: 1050;
            background: rgba(26, 29, 41, 0.95);
            backdrop-filter: blur(10px);
            border-bottom: 1px solid rgba(255,255,255,0.1);
            padding: 0.75rem 0;
            transition: var(--transition);
        }

        .light-mode .top-header {
            background: rgba(248, 249, 250, 0.95);
            border-bottom: 1px solid rgba(0,0,0,0.1);
        }

        .header-content {
            display: flex;
            justify-content: space-between;
            align-items: center;
            max-width: 1400px;
            margin: 0 auto;
            padding: 0 1.5rem;
        }

        .logo {
            font-family: 'Montserrat', sans-serif;
            font-size: 1.5rem;
            font-weight: 700;
            color: var(--accent-gold);
            text-decoration: none;
        }
        .logo>img{
            width:60px;
            border-radius: 0.5em;
        }

        .header-controls {
            display: flex;
            align-items: center;
            gap: 0.5rem;
        }

        .control-btn {
            background: rgba(255,255,255,0.1);
            border: none;
            color: var(--text-dark);
            width: 40px;
            height: 40px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            transition: var(--transition);
        }

        .control-btn:hover {
            background: var(--primary-color);
            color: white;
            transform: scale(1.1);
        }

        .light-mode .control-btn {
            background: rgba(0,0,0,0.1);
            color: var(--text-light);
        }

        .sidebar {
            position: fixed;
            top: 70px;
            left: -280px;
            width: 280px;
            height: calc(100vh - 70px);
            background: var(--dark-card);
            box-shadow: 2px 0 15px rgba(0,0,0,0.1);
            transition: left 0.3s cubic-bezier(0.4, 0, 0.2, 1);
            z-index: 1040;
            overflow-y: auto;
            border-radius: 0 var(--border-radius) var(--border-radius) 0;
        }

        .sidebar.active {
            left: 0;
        }

        .light-mode .sidebar {
            background: var(--light-card);
            border-right: 1px solid rgba(0,0,0,0.1);
        }

        .sidebar-header {
            padding: 1.5rem;
            border-bottom: 1px solid rgba(255,255,255,0.1);
            text-align: center;
        }

        .light-mode .sidebar-header {
            border-bottom: 1px solid rgba(0,0,0,0.1);
        }

        .sidebar-header h5 {
            margin: 0;
            font-weight: 600;
            color: var(--accent-gold);
        }

        .sidebar-nav {
            padding: 1rem 0;
        }

        .nav-item {
            margin: 0.25rem 0;
        }

        .nav-link {
            display: flex;
            align-items: center;
            padding: 0.75rem 1.5rem;
            color: var(--text-dark);
            text-decoration: none;
            transition: var(--transition);
            border-radius: 0 25px 25px 0;
            margin-right: 1rem;
        }

        .nav-link:hover {
            background: rgba(0, 102, 204, 0.1);
            color: var(--primary-color);
            transform: translateX(5px);
        }

        .nav-link.active {
            background: var(--primary-color);
            color: white;
        }

        .light-mode .nav-link {
            color: var(--text-light);
        }

        .light-mode .nav-link:hover {
            background: rgba(0, 102, 204, 0.1);
        }

        .nav-link i {
            width: 20px;
            margin-right: 0.75rem;
        }

        .main-content {
            margin-top: 70px;
            margin-left: 0;
            transition: margin-left 0.3s cubic-bezier(0.4, 0, 0.2, 1);
            min-height: calc(100vh - 70px);
            padding: 2rem;
        }

        .main-content.sidebar-open {
            margin-left: 280px;
        }

        .container-fluid {
            max-width: 1400px;
            margin: 0 auto;
        }

        .hero {
            background: linear-gradient(135deg, rgba(0, 102, 204, 0.9), rgba(0, 166, 90, 0.9)), 
                        url('https://images.unsplash.com/photo-1449824913935-59a10b8d2000?auto=format&fit=crop&w=1920') center/cover;
            padding: 4rem 2rem;
            border-radius: var(--border-radius);
            text-align: center;
            color: white;
            margin-bottom: 2rem;
            position: relative;
            overflow: hidden;
        }

        .hero::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: radial-gradient(circle at 50% 50%, rgba(212, 175, 55, 0.1) 0%, transparent 70%);
        }

        .hero-content {
            position: relative;
            z-index: 1;
        }

        .hero h1 {
            font-family: 'Montserrat', sans-serif;
            font-size: 3rem;
            font-weight: 700;
            margin-bottom: 1rem;
            text-shadow: 0 2px 4px rgba(0,0,0,0.3);
        }

        .hero p {
            font-size: 1.25rem;
            opacity: 0.95;
            max-width: 600px;
            margin: 0 auto;
        }

        .card {
            background: var(--dark-card);
            border: none;
            border-radius: var(--border-radius);
            box-shadow: var(--shadow-light);
            margin-bottom: 2rem;
            transition: var(--transition);
            overflow: hidden;
        }

        .card:hover {
            box-shadow: var(--shadow-hover);
            transform: translateY(-2px);
        }

        .light-mode .card {
            background: var(--light-card);
            border: 1px solid rgba(0,0,0,0.1);
        }

        .card-header {
            background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
            color: white;
            border-bottom: none;
            padding: 1.5rem;
            position: relative;
        }

        .card-header::after {
            content: '';
            position: absolute;
            bottom: 0;
            left: 0;
            right: 0;
            height: 3px;
            background: var(--accent-gold);
        }

        .card-body {
            padding: 2rem;
        }

        .card-body p {
            color: var(--text-dark);
        }

        .light-mode .card-body p {
            color: var(--text-light);
        }

        .card-body h5 {
            color: var(--text-dark);
        }

        .light-mode .card-body h5 {
            color: var(--text-light);
        }

        .icon-ai {
            color: var(--icon-ai);
        }

        .icon-insights {
            color: var(--icon-insights);
        }

        .icon-learning {
            color: var(--icon-learning);
        }

        .form-label {
            font-weight: 500;
            margin-bottom: 0.5rem;
            color: var(--text-dark);
        }

        .light-mode .form-label {
            color: var(--text-light);
        }

        .form-control, .form-select {
            background: rgba(255,255,255,0.05);
            border: 1px solid rgba(255,255,255,0.2);
            color: var(--text-dark);
            border-radius: 8px;
            padding: 0.75rem;
            transition: var(--transition);
        }

        .form-control:focus, .form-select:focus {
            background: rgba(255,255,255,0.1);
            border-color: var(--primary-color);
            box-shadow: 0 0 0 0.2rem rgba(0, 102, 204, 0.25);
            color: var(--text-dark);
        }

        .light-mode .form-control, .light-mode .form-select {
            background: white;
            border: 1px solid #ced4da;
            color: var(--text-light);
        }

        .light-mode .form-control:focus, .light-mode .form-select:focus {
            background: white;
            color: var(--text-light);
        }

        .btn-primary {
            background: linear-gradient(135deg, var(--primary-color), var(--primary-hover));
            border: none;
            border-radius: 8px;
            padding: 0.75rem 2rem;
            font-weight: 500;
            transition: var(--transition);
            position: relative;
            overflow: hidden;
        }

        .btn-primary::before {
            content: '';
            position: absolute;
            top: 0;
            left: -100%;
            width: 100%;
            height: 100%;
            background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
            transition: left 0.5s;
        }

        .btn-primary:hover::before {
            left: 100%;
        }

        .btn-primary:hover {
            transform: translateY(-1px);
            box-shadow: 0 5px 15px rgba(0, 102, 204, 0.4);
        }

        .nav-tabs {
            border-bottom: 2px solid rgba(255,255,255,0.1);
            margin-bottom: 0;
        }

        .nav-tabs .nav-link {
            background: transparent;
            border: none;
            color: rgba(255,255,255,0.7);
            padding: 1rem 1.5rem;
            margin-right: 0.5rem;
            border-radius: var(--border-radius) var(--border-radius) 0 0;
            transition: var(--transition);
        }

        .nav-tabs .nav-link:hover {
            background: rgba(255,255,255,0.1);
            color: white;
        }

        .nav-tabs .nav-link.active {
            background: var(--primary-color);
            color: white;
            border-bottom: 3px solid var(--accent-gold);
        }

        .accordion-item {
            background: var(--dark-card);
            border: 1px solid rgba(255,255,255,0.1);
            margin-bottom: 0.5rem;
            border-radius: var(--border-radius);
            overflow: hidden;
        }

        .light-mode .accordion-item {
            background: var(--light-card);
            border: 1px solid rgba(0,0,0,0.1);
        }

        .accordion-button {
            background: transparent;
            color: var(--text-dark);
            border: none;
            padding: 1.25rem;
            font-weight: 500;
        }

        .accordion-button:focus {
            box-shadow: none;
            border: none;
        }

        .accordion-button:not(.collapsed) {
            background: var(--primary-color);
            color: white;
        }

        .light-mode .accordion-button {
            color: var(--text-light);
        }

        .accordion-body {
            background: rgba(0,0,0,0.2);
            padding: 1.25rem;
            color: var(--text-light);
        }

        .light-mode .accordion-body {
            background: rgba(0,0,0,0.02);
        }

        .progress {
            height: 8px;
            background: rgba(255,255,255,0.1);
            border-radius: 4px;
            overflow: hidden;
        }

        .progress-bar {
            background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
            transition: width 0.6s ease;
        }

        .alert {
            border-radius: var(--border-radius);
            border: none;
            padding: 1rem 1.5rem;
            margin-bottom: 1.5rem;
            position: relative;
            overflow: hidden;
        }

        .alert::before {
            content: '';
            position: absolute;
            left: 0;
            top: 0;
            bottom: 0;
            width: 4px;
            background: currentColor;
        }

        .loading-overlay {
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: rgba(0,0,0,0.8);
            display: none;
            align-items: center;
            justify-content: center;
            z-index: 2000;
            backdrop-filter: blur(4px);
        }

        .loading-overlay.active {
            display: flex;
        }

        .loading-spinner {
            text-align: center;
            color: white;
        }

        .spinner-border {
            width: 3rem;
            height: 3rem;
            border-width: 0.3em;
            border-color: var(--primary-color);
            border-right-color: transparent;
        }

        @media (max-width: 992px) {
            .main-content.sidebar-open {
                margin-left: 0;
            }
            
            .sidebar {
                width: 100%;
                left: -100%;
            }
            
            .hero h1 {
                font-size: 2.5rem;
            }
            
            .main-content {
                padding: 1rem;
            }
        }

        @media (max-width: 768px) {
            .hero {
                padding: 3rem 1.5rem;
            }
            
            .hero h1 {
                font-size: 2rem;
            }
            
            .hero p {
                font-size: 1.1rem;
            }
            
            .card-body {
                padding: 1.5rem;
            }
            
            .header-content {
                padding: 0 1rem;
            }
        }

        @keyframes fadeInUp {
            from {
                opacity: 0;
                transform: translateY(20px);
            }
            to {
                opacity: 1;
                transform: translateY(0);
            }
        }

        @keyframes slideInRight {
            from {
                opacity: 0;
                transform: translateX(20px);
            }
            to {
                opacity: 1;
                transform: translateX(0);
            }
        }

        .fade-in-up {
            animation: fadeInUp 0.6s ease-out;
        }

        .slide-in-right {
            animation: slideInRight 0.6s ease-out;
        }

        .sidebar::-webkit-scrollbar {
            width: 6px;
        }

        .sidebar::-webkit-scrollbar-track {
            background: transparent;
        }

        .sidebar::-webkit-scrollbar-thumb {
            background: rgba(255,255,255,0.2);
            border-radius: 3px;
        }

        .sidebar::-webkit-scrollbar-thumb:hover {
            background: rgba(255,255,255,0.4);
        }

        .sidebar-overlay {
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: rgba(0,0,0,0.5);
            z-index: 1030;
            opacity: 0;
            visibility: hidden;
            transition: var(--transition);
        }

        .sidebar-overlay.active {
            opacity: 1;
            visibility: visible;
        }