
        :root {
            --primary: #4361ee;
            --secondary: #3f37c9;
            --success: #4cc9f0;
            --info: #4895ef;
            --warning: #f72585;
            --light: #f8f9fa;
            --dark: #212529;
            --gray: #6c757d;
            --light-gray: #e9ecef;
            --primary-color: #4361ee;
            --secondary-color: #3a0ca3;
            --accent-color: #4cc9f0;
            --light-color: #f8f9fa;
            --dark-color: #212529;
            --success-color: #4bb543;
            --warning-color: #ffc107;
            --light-gray: #e9ecef;
            --card-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
            --transition: all 0.3s ease;
        }

        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        body {
            background-color: #f5f7fb;
            font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
            color: #333;
            min-height: 100vh;
            overflow-x: hidden;
            line-height: 1.6;
        }
        h1{
            font-size: 2.5rem;
            font-weight: 900;
            padding-bottom: 10px;
            text-align: center;
            color: var(--secondary);
            margin: 0;
        }
        /* ==================================Navbar Styles ========================================================*/
        .navbar-custom {
            background: linear-gradient(135deg, var(--primary), var(--secondary));
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
            padding: 0.8rem 1rem;
            position: sticky;
            top: 0;
            z-index: 1000;
        }

        .navbar-brand {
            font-weight: 700;
            font-size: 1.5rem;
            color: white !important;
            display: flex;
            align-items: center;
            text-decoration: none;
        }

        .navbar-brand i {
            margin-right: 10px;
        }

        .navbar-nav .nav-link {
            color: rgba(255, 255, 255, 0.9) !important;
            font-weight: 500;
            padding: 0.5rem 1rem;
            border-radius: 8px;
            transition: all 0.3s ease;
            margin: 0 3px;
            text-decoration: none;
        }

        .navbar-nav .nav-link:hover {
            background: rgba(255, 255, 255, 0.15);
            color: white !important;
            transform: translateY(-2px);
        }

        .navbar-nav .nav-link.active {
            background: rgba(255, 255, 255, 0.2);
            color: white !important;
        }

        .dropdown-menu {
            border: none;
            border-radius: 12px;
            box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
            padding: 0.5rem 0;
            margin-top: 8px;
            background: white;
            backdrop-filter: blur(10px);
        }

        .dropdown-item {
            padding: 0.7rem 1.5rem;
            color: var(--dark);
            transition: all 0.3s ease;
            font-weight: 500;
            text-decoration: none;
            display: flex;
            align-items: center;
        }

        .dropdown-item:hover {
            background: rgba(67, 97, 238, 0.1);
            color: var(--primary);
            transform: translateX(5px);
        }

        .dropdown-item i {
            width: 20px;
            margin-right: 10px;
        }

        .dropdown-divider {
            margin: 0.5rem 0;
            border-color: var(--light-gray);
        }

        .navbar-toggler {
            border: none;
            padding: 0.4rem 0.6rem;
            background: transparent;
        }

        .navbar-toggler:focus {
            box-shadow: none;
            outline: none;
        }

        .navbar-toggler-icon {
            background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 0.9%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
            width: 1.2em;
            height: 1.2em;
        }

        /* User dropdown */
        .user-dropdown .dropdown-toggle {
            display: flex;
            align-items: center;
            padding: 0.5rem 1rem;
            text-decoration: none;
            transition: all 0.3s ease;
        }

        .user-dropdown .dropdown-toggle::after {
            margin-left: 8px;
            transition: transform 0.3s ease;
        }

        .user-dropdown .dropdown-toggle:hover::after {
            transform: rotate(180deg);
        }

        .user-avatar {
            width: 32px;
            height: 32px;
            border-radius: 50%;
            object-fit: cover;
            margin-right: 8px;
            border: 2px solid rgba(255, 255, 255, 0.5);
            transition: all 0.3s ease;
        }

        .user-dropdown .dropdown-toggle:hover .user-avatar {
            border-color: rgba(255, 255, 255, 0.8);
            transform: scale(1.1);
        }

        /* =============================================Main Content Area====================================================================== */
        .main-content {
            min-height: calc(100vh - 250px);
            padding: 0rem 0;
            position: relative;
        }

        /* Profile Container Styles */
        .main-container {
            max-width: 1200px;
            margin: 0 auto;
            padding: 30px 20px;
        }

        .profile-header {
            background: linear-gradient(135deg, var(--primary), var(--secondary));
            border-radius: 20px;
            padding: 3rem;
            color: white;
            box-shadow: 0 15px 30px rgba(67, 97, 238, 0.2);
            margin-bottom: 2rem;
            position: relative;
            overflow: hidden;
        }

        .profile-header::before {
            content: '';
            position: absolute;
            top: -50%;
            right: -10%;
            width: 400px;
            height: 400px;
            border-radius: 50%;
            background: rgba(255, 255, 255, 0.1);
        }

        .profile-header::after {
            content: '';
            position: absolute;
            bottom: -30%;
            left: -5%;
            width: 300px;
            height: 300px;
            border-radius: 50%;
            background: rgba(255, 255, 255, 0.1);
        }

        .profile-picture {
            width: 140px;
            height: 140px;
            border-radius: 50%;
            object-fit: cover;
            border: 5px solid white;
            box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
            z-index: 1;
            position: relative;
            transition: all 0.3s ease;
        }

        .profile-picture:hover {
            transform: scale(1.05);
            box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
        }

        /* Stats Cards */
        .stats-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
            gap: 1.5rem;
            margin-bottom: 2rem;
        }

        .stats-card {
            background: white;
            border-radius: 15px;
            padding: 2rem;
            box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
            transition: all 0.3s ease;
            height: 100%;
            border: none;
            position: relative;
            overflow: hidden;
            margin: 0 auto;
            max-width: 400px;
        }

        .stats-card::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 4px;
            background: linear-gradient(90deg, var(--primary), var(--secondary));
        }

        .stats-card:hover {
            transform: translateY(-8px);
            box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
        }

        .stats-icon {
            width: 60px;
            height: 60px;
            border-radius: 15px;
            display: flex;
            align-items: center;
            justify-content: center;
            margin: 0 auto 1.5rem;
            font-size: 2rem;
            transition: all 0.3s ease;
        }

        .stats-card:hover .stats-icon {
            transform: scale(1.1) rotate(5deg);
        }

        .stats-icon.question {
            background: rgba(76, 201, 240, 0.15);
            color: var(--success);
        }

        .stats-icon.correct {
            background: rgba(72, 149, 239, 0.15);
            color: var(--info);
        }

        .stats-icon.rate {
            background: rgba(247, 37, 133, 0.15);
            color: var(--warning);
        }

        .stats-number {
            font-size: 2.2rem;
            font-weight: 800;
            margin-bottom: 0.5rem;
            background: linear-gradient(135deg, var(--primary), var(--secondary));
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
            line-height: 1;
        }

        .stats-label {
            color: var(--gray);
            font-size: 1rem;
            font-weight: 500;
        }

        /* Content Grid */
        .content-grid {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 2rem;
            margin-bottom: 2rem;
        }

        .activity-card, .actions-card {
            background: white;
            border-radius: 15px;
            box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
            border: none;
            height: 100%;
            position: relative;
            overflow: hidden;
            transition: all 0.3s ease;
        }

        .activity-card:hover, .actions-card:hover {
            transform: translateY(-5px);
            box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
        }

        .activity-card::before, .actions-card::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 4px;
            background: linear-gradient(90deg, var(--primary), var(--secondary));
        }

        .card-header-custom {
            background: white;
            border-bottom: 1px solid var(--light-gray);
            padding: 1.5rem 2rem;
            border-radius: 15px 15px 0 0 !important;
            display: flex;
            align-items: center;
            justify-content: space-between;
        }

        .card-title {
            font-weight: 700;
            color: var(--dark);
            margin-bottom: 0;
            font-size: 1.3rem;
            display: flex;
            align-items: center;
        }

        .card-title i {
            margin-right: 10px;
            color: var(--primary);
        }

        .activity-item {
            padding: 1.25rem 2rem;
            border-bottom: 1px solid var(--light-gray);
            display: flex;
            align-items: center;
            transition: all 0.3s ease;
            cursor: pointer;
        }

        .activity-item:hover {
            background: var(--light-gray);
            transform: translateX(5px);
        }

        .activity-item:last-child {
            border-bottom: none;
        }

        .activity-icon {
            width: 45px;
            height: 45px;
            border-radius: 12px;
            background: var(--light-gray);
            display: flex;
            align-items: center;
            justify-content: center;
            margin-right: 1.25rem;
            color: var(--primary);
            font-size: 1.1rem;
            transition: all 0.3s ease;
        }

        .activity-item:hover .activity-icon {
            background: var(--primary);
            color: white;
            transform: scale(1.1);
        }

        .activity-content {
            flex: 1;
        }

        .activity-title {
            font-weight: 600;
            margin-bottom: 0.25rem;
            color: var(--dark);
            transition: color 0.3s ease;
        }

        .activity-item:hover .activity-title {
            color: var(--primary);
        }

        .activity-date {
            font-size: 0.9rem;
            color: var(--gray);
        }

        .activity-badge {
            font-size: 0.75rem;
            font-weight: 600;
            padding: 0.25rem 0.75rem;
            border-radius: 20px;
            background: var(--light-gray);
            color: var(--dark);
        }

        /* Buttons */
        .btn-custom {
            padding: 1rem 1.5rem;
            border-radius: 12px;
            font-weight: 600;
            transition: all 0.3s ease;
            border: none;
            font-size: 1rem;
            display: flex;
            align-items: center;
            justify-content: center;
            text-decoration: none;
            cursor: pointer;
            position: relative;
            overflow: hidden;
        }

        .btn-custom::before {
            content: '';
            position: absolute;
            top: 0;
            left: -100%;
            width: 100%;
            height: 100%;
            background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
            transition: left 0.5s;
        }

        .btn-custom:hover::before {
            left: 100%;
        }

        .btn-primary-custom {
            background: linear-gradient(135deg, var(--primary), var(--secondary));
            color: white;
        }

        .btn-primary-custom:hover {
            transform: translateY(-3px);
            box-shadow: 0 8px 20px rgba(67, 97, 238, 0.4);
            color: white;
        }

        .btn-success-custom {
            background: linear-gradient(135deg, var(--success), #3a8bc8);
            color: white;
        }

        .btn-success-custom:hover {
            transform: translateY(-3px);
            box-shadow: 0 8px 20px rgba(76, 201, 240, 0.4);
            color: white;
        }

        .btn-warning-custom {
            background: linear-gradient(135deg, var(--warning), #c2185b);
            color: white;
        }

        .btn-warning-custom:hover {
            transform: translateY(-3px);
            box-shadow: 0 8px 20px rgba(247, 37, 133, 0.4);
            color: white;
        }

        .btn-outline-primary {
            border: 2px solid var(--primary);
            color: var(--primary);
            background: transparent;
            transition: all 0.3s ease;
        }

        .btn-outline-primary:hover {
            background: var(--primary);
            color: white;
            transform: translateY(-3px);
            box-shadow: 0 5px 15px rgba(67, 97, 238, 0.3);
        }

        /* Form Styles */
        .form-control {
            border: 2px solid var(--light-gray);
            border-radius: 10px;
            padding: 0.75rem 1rem;
            font-size: 1rem;
            transition: all 0.3s ease;
        }

        .form-control:focus {
            border-color: var(--primary);
            box-shadow: 0 0 0 0.2rem rgba(67, 97, 238, 0.25);
            transform: translateY(-2px);
        }

        .form-select {
            border: 2px solid var(--light-gray);
            border-radius: 10px;
            padding: 0.75rem 1rem;
            font-size: 1rem;
            transition: all 0.3s ease;
        }

        .form-select:focus {
            border-color: var(--primary);
            box-shadow: 0 0 0 0.2rem rgba(67, 97, 238, 0.25);
            transform: translateY(-2px);
        }

        .form-label {
            font-weight: 600;
            color: var(--dark);
            margin-bottom: 0.5rem;
        }

        /* Table Styles */
        .table {
            border-radius: 12px;
            overflow: hidden;
            box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
        }

        .table-bordered {
            border: 1px solid var(--light-gray);
        }

        .table-bordered td, .table-bordered th {
            border: 1px solid var(--light-gray);
            padding: 1rem;
        }

        /* Suggestions Dropdown */
        .suggestions-list {
            position: absolute;
            background: white;
            border: 1px solid #ddd;
            border-radius: 8px;
            max-height: 200px;
            overflow-y: auto;
            z-index: 1050;
            width: 100%;
            display: none;
            box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
            margin-top: 2px;
        }

        .suggestions-list div {
            padding: 10px 15px;
            cursor: pointer;
            border-bottom: 1px solid #eee;
            transition: all 0.2s ease;
            font-size: 0.95rem;
        }

        .suggestions-list div:hover {
            background-color: var(--primary);
            color: white;
            transform: translateX(5px);
        }

        .suggestions-list div:last-child {
            border-bottom: none;
        }

        .suggestions-list.show {
            display: block;
            animation: fadeIn 0.3s ease;
        }

        @keyframes fadeIn {
            from { opacity: 0; transform: translateY(-10px); }
            to { opacity: 1; transform: translateY(0); }
        }

        /* Footer */
        .footer {
            text-align: center;
            padding: 3rem 0 2rem;
            color: white;
            font-size: 0.95rem;
            border-top: 1px solid rgba(255,255,255,0.1);
            margin-top: 3rem;
            background: linear-gradient(135deg, var(--primary), var(--secondary));
            position: relative;
        }

        .footer::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            height: 1px;
            background: linear-gradient(90deg, transparent, rgba(255,255,255,0.5), transparent);
        }

        .footer .text-muted {
            color: rgba(255, 255, 255, 0.8) !important;
        }

        /* Theme Button */
        .btn.theme {
            background: linear-gradient(135deg, var(--primary), var(--secondary));
            color: white;
            border: none;
            padding: 0.75rem 2rem;
            border-radius: 10px;
            font-weight: 600;
            transition: all 0.3s ease;
            box-shadow: 0 4px 15px rgba(67, 97, 238, 0.3);
        }

        .btn.theme:hover {
            transform: translateY(-3px);
            box-shadow: 0 8px 25px rgba(67, 97, 238, 0.4);
            color: white;
        }

        /* MCQ Question Styling */
        .mcq-container {
            margin-bottom: 2rem;
            padding: 1.5rem;
            background: white;
            border-radius: 12px;
            box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
            transition: all 0.3s ease;
        }

        .mcq-container:hover {
            transform: translateY(-3px);
            box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
        }

        .question-text {
            font-weight: 600;
            margin-bottom: 1.5rem;
            font-size: 1.1rem;
            color: var(--dark);
            line-height: 1.5;
        }

        .options-container {
            display: flex;
            flex-direction: column;
            gap: 0.75rem;
        }

        .option-item {
            display: flex;
            align-items: flex-start;
            padding: 0.75rem 1rem;
            border-radius: 8px;
            background: var(--light);
            transition: all 0.2s ease;
            cursor: pointer;
            border: 1px solid transparent;
        }

        .option-item:hover {
            background: rgba(67, 97, 238, 0.1);
            transform: translateX(5px);
        }

        .option-item.selected {
            background: rgba(67, 97, 238, 0.15);
            border-color: var(--primary);
        }

        .option-label {
            font-weight: 600;
            margin-right: 10px;
            min-width: 25px;
        }

        .option-text {
            flex: 1;
        }

        .option-feedback {
            margin-left: 10px;
            font-size: 1.1rem;
        }

        .correct-answer {
            background: rgba(76, 201, 240, 0.15) !important;
            border-color: var(--success) !important;
        }

        .wrong-answer {
            background: rgba(247, 37, 133, 0.15) !important;
            border-color: var(--warning) !important;
        }

        .answer-section {
            margin-top: 1rem;
            padding: 1rem;
            background: rgba(76, 201, 240, 0.1);
            border-radius: 8px;
            border-left: 4px solid var(--success);
            display: none;
        }

        .answer-section.show {
            display: block;
            animation: fadeIn 0.5s ease;
        }

        .quiz-controls {
            display: flex;
            justify-content: center;
            gap: 1rem;
            margin: 2rem 0;
        }

        .mode-selector {
            display: flex;
            justify-content: center;
            margin-bottom: 2rem;
        }

        .mode-selector .btn {
            margin: 0 0.5rem;
        }

        /* Modal Styles */
        .modal-content {
            border-radius: 15px;
            border: none;
            box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
        }

        .modal-header {
            background: linear-gradient(135deg, var(--primary), var(--secondary));
            color: white;
            border-radius: 15px 15px 0 0;
            border-bottom: none;
            padding: 1.5rem 2rem;
        }

        .modal-title {
            font-weight: 700;
            font-size: 1.5rem;
        }

        .modal-body {
            padding: 2rem;
        }

        .result-stats {
            display: flex;
            justify-content: space-around;
            margin: 2rem 0;
            text-align: center;
        }

        .stat-item {
            padding: 1rem;
        }

        .stat-value {
            font-size: 2.5rem;
            font-weight: 800;
            margin-bottom: 0.5rem;
            background: linear-gradient(135deg, var(--primary), var(--secondary));
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
        }

        .stat-label {
            color: var(--gray);
            font-weight: 600;
        }

        .modal-footer {
            border-top: 1px solid var(--light-gray);
            padding: 1.5rem 2rem;
            border-radius: 0 0 15px 15px;
        }

        /* Responsive Design */
        @media (max-width: 1200px) {
            .main-container {
                max-width: 95%;
                padding: 25px 15px;
            }
        }

        @media (max-width: 992px) {
            .content-grid {
                grid-template-columns: 1fr;
                gap: 1.5rem;
            }
            
            .stats-grid {
                grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
            }
            
            .profile-header {
                padding: 2.5rem;
            }
        }

        @media (max-width: 768px) {
            .profile-header {
                text-align: center;
                padding: 2rem 1.5rem;
            }
            
            .profile-picture {
                width: 120px;
                height: 120px;
                margin: 0 auto 1.5rem;
            }
            
            .stats-card {
                padding: 1.5rem;
                max-width: 100%;
            }
            
            .stats-number {
                font-size: 1.8rem;
            }
            
            .activity-item {
                padding: 1rem 1.5rem;
            }
            
            .card-header-custom {
                padding: 1.25rem 1.5rem;
            }
            
            .navbar-nav {
                text-align: center;
                padding: 1rem 0;
            }
            
            .dropdown-menu {
                text-align: center;
                border-radius: 0;
                box-shadow: none;
                border: none;
                background: rgba(255, 255, 255, 0.05);
            }
            
            .dropdown-item {
                color: rgba(255, 255, 255, 0.9) !important;
                padding: 0.75rem 1.5rem;
                justify-content: center;
            }
            
            .dropdown-item:hover {
                background: rgba(255, 255, 255, 0.1);
                color: white !important;
            }
            
            .user-dropdown .dropdown-toggle {
                justify-content: center;
            }
            
            .suggestions-list {
                position: relative;
                width: calc(100% - 2px);
            }
            
            .result-stats {
                flex-direction: column;
                gap: 1rem;
            }
        }

        @media (max-width: 576px) {
            .main-container {
                padding: 20px 15px;
            }
            
            .profile-header {
                padding: 1.5rem;
            }
            
            .stats-card {
                padding: 1.25rem;
            }
            
            .btn-custom {
                padding: 0.875rem 1.25rem;
                font-size: 0.9rem;
            }
            
            .stats-grid {
                grid-template-columns: 1fr;
                gap: 1rem;
            }
            
            .card-header-custom {
                padding: 1rem 1.25rem;
            }
            
            .activity-item {
                padding: 0.875rem 1.25rem;
            }
            
            .navbar-brand {
                font-size: 1.3rem;
            }
            
            .quiz-controls {
                flex-direction: column;
                align-items: center;
            }
            
            .mode-selector {
                flex-direction: column;
                align-items: center;
                gap: 0.5rem;
            }
        }

        /* Loading Animation */
        .loading {
            display: inline-block;
            width: 20px;
            height: 20px;
            border: 3px solid rgba(255,255,255,.3);
            border-radius: 50%;
            border-top-color: #fff;
            animation: spin 1s ease-in-out infinite;
        }

        @keyframes spin {
            to { transform: rotate(360deg); }
        }

        /* Scrollbar Styling */
        ::-webkit-scrollbar {
            width: 8px;
        }

        ::-webkit-scrollbar-track {
            background: #f1f1f1;
            border-radius: 10px;
        }

        ::-webkit-scrollbar-thumb {
            background: var(--primary);
            border-radius: 10px;
        }

        ::-webkit-scrollbar-thumb:hover {
            background: var(--secondary);
        }

        /* Focus States for Accessibility */
        a:focus, button:focus, .form-control:focus, .form-select:focus {
            outline: 2px solid var(--primary);
            outline-offset: 2px;
        }

        /* Print Styles */
        @media print {
            .navbar-custom, .footer {
                display: none;
            }
            
            .main-content {
                margin: 0;
                padding: 0;
            }
            
            .stats-card, .activity-card, .actions-card {
                box-shadow: none;
                border: 1px solid #ddd;
            }
        }