@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@300;400;500;600;700;800&display=swap');

:root {
    --bg-dark: #070B19;
    --bg-card: rgba(20, 30, 62, 0.75);
    --bg-card-hover: rgba(28, 41, 82, 0.85);
    --border-color: rgba(255, 255, 255, 0.08);
    --primary-navy: #0D1B2A;
    --primary-light-navy: #1B263B;
    --accent-orange: #FF7D3F;
    --accent-orange-hover: #E6662B;
    --accent-orange-glow: rgba(255, 125, 63, 0.25);
    --text-main: #F4F6FC;
    --text-muted: #94A3B8;
    --text-orange: #FFA07A;
    --success: #10B981;
    --success-glow: rgba(16, 185, 129, 0.15);
    --warning: #F59E0B;
    --warning-glow: rgba(245, 158, 11, 0.15);
    --danger: #EF4444;
    --danger-glow: rgba(239, 68, 68, 0.15);
    --purple-xp: #8B5CF6;
    --font-cairo: 'Cairo', sans-serif;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: var(--font-cairo);
}

body {
    background-color: var(--bg-dark);
    background-image: 
        radial-gradient(at 0% 0%, rgba(255, 125, 63, 0.08) 0px, transparent 50%),
        radial-gradient(at 100% 100%, rgba(13, 27, 42, 0.8) 0px, transparent 50%);
    background-attachment: fixed;
    color: var(--text-main);
    min-height: 100vh;
    direction: rtl;
    overflow-x: hidden;
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(15px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes glow {
    0%, 100% { box-shadow: 0 0 15px rgba(255, 125, 63, 0.15); }
    50% { box-shadow: 0 0 25px rgba(255, 125, 63, 0.35); }
}

@keyframes pulse-soft {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.03); }
}

.fade-in {
    animation: fadeIn 0.4s ease forwards;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}
::-webkit-scrollbar-track {
    background: var(--bg-dark);
}
::-webkit-scrollbar-thumb {
    background: var(--primary-light-navy);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--accent-orange);
}

/* Layout Utilities */
.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 20px;
}

.glass-card {
    background: var(--bg-card);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 24px;
    transition: var(--transition);
}

.glass-card:hover {
    border-color: rgba(255, 125, 63, 0.2);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
}

/* Inputs and Forms */
input, textarea, select {
    width: 100%;
    padding: 12px 16px;
    background: rgba(13, 27, 42, 0.6);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    color: var(--text-main);
    font-size: 14px;
    transition: var(--transition);
    outline: none;
    text-align: right;
}

input:focus, textarea:focus, select:focus {
    border-color: var(--accent-orange);
    box-shadow: 0 0 0 3px var(--accent-orange-glow);
    background: rgba(13, 27, 42, 0.85);
}

label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    font-size: 14px;
    color: var(--text-muted);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: 10px;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    font-size: 15px;
}

.btn-primary {
    background: var(--accent-orange);
    color: white;
}

.btn-primary:hover {
    background: var(--accent-orange-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 15px var(--accent-orange-glow);
}

.btn-secondary {
    background: var(--primary-light-navy);
    color: var(--text-main);
    border: 1px solid var(--border-color);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-2px);
}

.btn-danger {
    background: var(--danger-glow);
    color: #FFA3A3;
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.btn-danger:hover {
    background: var(--danger);
    color: white;
    transform: translateY(-2px);
}

/* Header & Nav */
header {
    background: rgba(7, 11, 25, 0.8);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    max-width: 1280px;
    margin: 0 auto;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 24px;
    font-weight: 800;
    color: var(--text-main);
    text-decoration: none;
}

.logo span {
    color: var(--accent-orange);
}

.logo-icon {
    background: linear-gradient(135deg, var(--accent-orange), #FF5500);
    width: 38px;
    height: 38px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 800;
    font-size: 20px;
    box-shadow: 0 4px 10px var(--accent-orange-glow);
}

.user-profile-nav {
    display: flex;
    align-items: center;
    gap: 15px;
}

.user-badge {
    background: var(--primary-light-navy);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    gap: 8px;
}

.user-badge .role-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.user-badge.teacher .role-dot { background: var(--accent-orange); }
.user-badge.student .role-dot { background: var(--success); }

/* Login Page */
.login-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: calc(100vh - 150px);
    padding: 20px;
}

.login-card {
    position: relative;
    width: 100%;
    max-width: 480px;
    animation: fadeIn 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.login-header {
    text-align: center;
    margin-bottom: 30px;
}

.login-header h1 {
    font-size: 32px;
    font-weight: 800;
    margin-bottom: 8px;
}

.login-header p {
    color: var(--text-muted);
}

.role-selector {
    display: flex;
    gap: 12px;
    margin-bottom: 24px;
}

.role-option {
    flex: 1;
    border: 2px solid var(--border-color);
    border-radius: 12px;
    padding: 16px;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    background: rgba(13, 27, 42, 0.4);
}

.role-option:hover {
    border-color: rgba(255, 125, 63, 0.4);
}

.role-option.active {
    border-color: var(--accent-orange);
    background: rgba(255, 125, 63, 0.08);
    box-shadow: 0 0 15px var(--accent-orange-glow);
}

.role-option i {
    font-size: 28px;
    color: var(--text-muted);
    margin-bottom: 8px;
    display: block;
    transition: var(--transition);
}

.role-option.active i {
    color: var(--accent-orange);
}

.role-option span {
    font-weight: 700;
    font-size: 15px;
}

.demo-account-info {
    margin-top: 20px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 10px;
    padding: 12px;
    border: 1px dashed var(--border-color);
    font-size: 13px;
    color: var(--text-muted);
}

.demo-account-info strong {
    color: var(--text-orange);
}

.demo-account-info ul {
    margin-top: 6px;
    padding-right: 20px;
}

/* Dashboard Common Layout */
.dashboard-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 24px;
    margin-top: 24px;
}

@media (max-width: 992px) {
    .dashboard-grid {
        grid-template-columns: 1fr;
    }
}

/* Stats Cards */
.stats-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    margin-bottom: 24px;
}

.stat-card {
    display: flex;
    align-items: center;
    gap: 16px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 14px;
    padding: 20px;
}

.stat-icon {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    background: rgba(255, 125, 63, 0.1);
    color: var(--accent-orange);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
}

.stat-info h4 {
    font-size: 13px;
    color: var(--text-muted);
    font-weight: 500;
}

.stat-info .value {
    font-size: 24px;
    font-weight: 800;
    color: var(--text-main);
}

/* Tabs */
.tabs {
    display: flex;
    gap: 10px;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 20px;
    padding-bottom: 10px;
}

.tab-btn {
    background: none;
    border: none;
    color: var(--text-muted);
    font-weight: 700;
    padding: 8px 16px;
    cursor: pointer;
    border-radius: 8px;
    transition: var(--transition);
}

.tab-btn:hover {
    color: var(--text-main);
    background: rgba(255, 255, 255, 0.04);
}

.tab-btn.active {
    color: var(--accent-orange);
    background: rgba(255, 125, 63, 0.1);
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

/* Card Lists */
.section-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.section-title span {
    font-size: 13px;
    font-weight: 400;
    color: var(--text-muted);
}

.list-container {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

/* Assignment Card */
.assignment-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 18px;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.assignment-card:hover {
    transform: translateX(-4px);
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 125, 63, 0.3);
}

.assignment-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
}

.assignment-title {
    font-weight: 700;
    font-size: 16px;
    color: var(--text-main);
}

.assignment-subject {
    font-size: 11px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 4px;
    text-transform: uppercase;
}

.subject-math { background: rgba(59, 130, 246, 0.15); color: #93C5FD; border: 1px solid rgba(59, 130, 246, 0.3); }
.subject-qudrat { background: rgba(16, 185, 129, 0.15); color: #6EE7B7; border: 1px solid rgba(16, 185, 129, 0.3); }
.subject-tahsili { background: rgba(139, 92, 246, 0.15); color: #C4B5FD; border: 1px solid rgba(139, 92, 246, 0.3); }

.assignment-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    font-size: 13px;
    color: var(--text-muted);
    border-top: 1px solid rgba(255, 255, 255, 0.04);
    padding-top: 12px;
}

.assignment-meta span {
    display: flex;
    align-items: center;
    gap: 6px;
}

.assignment-meta i {
    font-size: 14px;
}

.assignment-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 4px;
}

.status-badge {
    font-size: 12px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 20px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.status-pending { background: var(--warning-glow); color: var(--warning); border: 1px solid rgba(245, 158, 11, 0.2); }
.status-submitted { background: rgba(59, 130, 246, 0.15); color: #60A5FA; border: 1px solid rgba(59, 130, 246, 0.2); }
.status-completed { background: var(--success-glow); color: var(--success); border: 1px solid rgba(16, 185, 129, 0.2); }
.status-overdue { background: var(--danger-glow); color: var(--danger); border: 1px solid rgba(239, 68, 68, 0.2); }

/* Student Profile & Progress */
.student-progress-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.student-info-block {
    display: flex;
    align-items: center;
    gap: 12px;
}

.student-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent-orange), var(--purple-xp));
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 18px;
    border: 2px solid var(--border-color);
}

.student-name {
    font-weight: 700;
    font-size: 15px;
}

.student-level {
    font-size: 12px;
    color: var(--text-orange);
    font-weight: 600;
}

.student-xp-bar {
    flex-grow: 1;
    max-width: 150px;
}

.progress-track {
    background: rgba(255, 255, 255, 0.1);
    height: 8px;
    border-radius: 4px;
    overflow: hidden;
    margin-top: 4px;
}

.progress-fill {
    background: linear-gradient(90deg, var(--accent-orange), #FFA500);
    height: 100%;
    border-radius: 4px;
    transition: var(--transition);
}

.xp-bar-container .progress-fill {
    background: linear-gradient(90deg, var(--purple-xp), #A78BFA);
}

/* Leaderboard */
.leaderboard-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.leaderboard-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    transition: var(--transition);
}

.leaderboard-item:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 125, 63, 0.2);
}

.leaderboard-item.rank-1 {
    border-color: rgba(245, 158, 11, 0.4);
    background: rgba(245, 158, 11, 0.05);
}

.rank-badge {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 13px;
}

.rank-1 .rank-badge { background: #F59E0B; color: #000; }
.rank-2 .rank-badge { background: #94A3B8; color: #000; }
.rank-3 .rank-badge { background: #B45309; color: #fff; }
.rank-other .rank-badge { background: var(--primary-light-navy); color: var(--text-muted); }

.leaderboard-student {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-grow: 1;
    margin-right: 12px;
}

.leaderboard-xp {
    font-weight: 700;
    color: var(--text-orange);
    font-size: 14px;
}

/* Modals */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(7, 11, 25, 0.85);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    padding: 20px;
}

.modal-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.modal-content {
    background: #0E162F;
    border: 1px solid var(--border-color);
    border-radius: 16px;
    width: 100%;
    max-width: 550px;
    padding: 28px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.5);
    transform: scale(0.9);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.modal-overlay.active .modal-content {
    transform: scale(1);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.modal-title {
    font-size: 20px;
    font-weight: 800;
}

.modal-close {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 24px;
    cursor: pointer;
    transition: var(--transition);
}

.modal-close:hover {
    color: var(--danger);
}

.form-group {
    margin-bottom: 18px;
}

/* Student Badge Display */
.badges-container {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
}

.badge-item {
    font-size: 11px;
    font-weight: 700;
    padding: 4px 8px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    gap: 4px;
    color: var(--text-muted);
}

.badge-item.active {
    background: rgba(255, 125, 63, 0.08);
    border-color: rgba(255, 125, 63, 0.3);
    color: var(--text-orange);
}

/* Submissions Table / List */
.submissions-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.submission-item {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.submission-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.submission-student-info {
    display: flex;
    align-items: center;
    gap: 8px;
}

.submission-content-preview {
    font-size: 14px;
    background: rgba(0, 0, 0, 0.2);
    padding: 10px;
    border-radius: 8px;
    color: var(--text-main);
    border-right: 3px solid var(--accent-orange);
}

.submission-grade-action {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid rgba(255, 255, 255, 0.04);
    padding-top: 10px;
    margin-top: 4px;
}

/* Toast System */
.toast-container {
    position: fixed;
    bottom: 20px;
    left: 20px;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.toast {
    background: #1E293B;
    color: white;
    padding: 12px 20px;
    border-radius: 8px;
    border-right: 4px solid var(--accent-orange);
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    display: flex;
    align-items: center;
    gap: 10px;
    animation: slideIn 0.3s ease forwards;
    direction: rtl;
    min-width: 250px;
}

@keyframes slideIn {
    from { transform: translateX(-100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

/* Grid adjustments for students list */
.students-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 16px;
}

/* Empty States */
.empty-state {
    text-align: center;
    padding: 40px 20px;
    color: var(--text-muted);
}

.empty-state i {
    font-size: 40px;
    color: var(--primary-light-navy);
    margin-bottom: 12px;
}

/* Footer style */
footer {
    text-align: center;
    padding: 30px 20px;
    color: var(--text-muted);
    font-size: 13px;
    border-top: 1px solid var(--border-color);
    margin-top: 40px;
}

footer span {
    color: var(--accent-orange);
    font-weight: 700;
}

@media (max-width: 768px) {
    .desktop-only {
        display: none;
    }
}

/* Cloud Connection Status Badge */
.cloud-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    border: 1px solid var(--border-color);
}

.cloud-badge:hover {
    border-color: rgba(255, 125, 63, 0.4);
    background: rgba(255, 255, 255, 0.03);
}

.cloud-badge .status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    position: relative;
}

/* Local Mode Styles */
.cloud-badge.local {
    background: rgba(245, 158, 11, 0.08);
    color: var(--warning);
    border-color: rgba(245, 158, 11, 0.2);
}

.cloud-badge.local .status-dot {
    background: var(--warning);
    box-shadow: 0 0 8px var(--warning);
}

/* Cloud Mode Styles */
.cloud-badge.cloud {
    background: rgba(16, 185, 129, 0.08);
    color: var(--success);
    border-color: rgba(16, 185, 129, 0.2);
}

.cloud-badge.cloud .status-dot {
    background: var(--success);
    box-shadow: 0 0 10px var(--success);
    animation: statusPulse 2s infinite;
}

@keyframes statusPulse {
    0% { box-shadow: 0 0 2px var(--success); }
    50% { box-shadow: 0 0 12px var(--success); }
    100% { box-shadow: 0 0 2px var(--success); }
}

#cloud-config-feedback.success {
    background: rgba(16, 185, 129, 0.1);
    color: var(--success);
    border: 1px solid rgba(16, 185, 129, 0.2);
}

#cloud-config-feedback.error {
    background: rgba(239, 68, 68, 0.1);
    color: #FFA3A3;
    border: 1px solid rgba(239, 68, 68, 0.2);
}

/* Course and Syllabus Styling */
.course-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: var(--transition);
}

.course-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow);
}

.course-card .course-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 12px;
}

.course-card .course-subject {
    font-size: 11px;
    padding: 3px 8px;
    border-radius: 4px;
    font-weight: 700;
}

.lesson-item, .quiz-item {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 10px 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    transition: var(--transition);
}

.lesson-item:hover, .quiz-item:hover {
    background: rgba(255, 125, 63, 0.05);
    border-color: rgba(255, 125, 63, 0.3);
}

.lesson-item.active {
    background: rgba(255, 125, 63, 0.1);
    border-color: var(--accent-orange);
}

/* Quiz UI inside solver modal */
.quiz-question-card {
    padding: 15px;
    background: rgba(255,255,255,0.01);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    margin-bottom: 20px;
}

.quiz-options-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 15px;
}

.quiz-option-btn {
    background: rgba(255,255,255,0.02);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 12px 16px;
    text-align: right;
    color: var(--text-main);
    font-size: 14px;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
}

.quiz-option-btn:hover {
    background: rgba(255, 125, 63, 0.05);
    border-color: rgba(255, 125, 63, 0.4);
}

.quiz-option-btn.selected {
    background: rgba(255, 125, 63, 0.15);
    border-color: var(--accent-orange);
    box-shadow: 0 0 10px rgba(255, 125, 63, 0.2);
}

.quiz-option-btn.correct-reveal {
    background: rgba(16, 185, 129, 0.15) !important;
    border-color: var(--success) !important;
    color: var(--success) !important;
}

.quiz-option-btn.wrong-reveal {
    background: rgba(239, 68, 68, 0.15) !important;
    border-color: var(--danger) !important;
    color: #FFA3A3 !important;
}

.quiz-option-btn .option-indicator {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    border: 2px solid var(--border-color);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
    flex-shrink: 0;
}

.quiz-option-btn.selected .option-indicator {
    border-color: var(--accent-orange);
    background: var(--accent-orange);
    color: #000;
}

/* Quiz Editor Styling */
.quiz-editor-row {
    background: rgba(0,0,0,0.15);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 12px;
    margin-bottom: 15px;
    position: relative;
}

.quiz-editor-row .remove-question-btn {
    position: absolute;
    left: 10px;
    top: 10px;
    background: transparent;
    border: none;
    color: #EF4444;
    cursor: pointer;
    font-size: 14px;
}

/* Simulator Styling */
.simulator-section-editor-block {
    background: rgba(255,255,255,0.02);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 15px;
    margin-bottom: 20px;
    position: relative;
}

.simulator-section-editor-block .remove-section-btn {
    position: absolute;
    left: 12px;
    top: 12px;
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.2);
    color: #EF4444;
    padding: 4px 8px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 11px;
    font-weight: bold;
}

.simulator-question-card {
    background: rgba(0,0,0,0.12);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 18px;
    margin-bottom: 18px;
}

/* Math formatting tweaks */
.katex-display {
    margin: 0.5em 0 !important;
    overflow-x: auto;
    overflow-y: hidden;
}

.katex {
    font-size: 1.1em;
}

/* Hero section layout on landing page */
.hero-section {
    position: relative;
    background: radial-gradient(circle at top right, rgba(255, 125, 63, 0.05), transparent), var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

.hero-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -30%;
    width: 300px;
    height: 300px;
    background: var(--accent-orange);
    filter: blur(140px);
    opacity: 0.15;
    pointer-events: none;
}

/* Enrollment dialog styling and checkboxes */
.enrollment-checkbox-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    cursor: pointer;
    transition: var(--transition);
    text-align: right;
    width: 100%;
}

.enrollment-checkbox-item:hover {
    background: rgba(255, 125, 63, 0.05);
    border-color: rgba(255, 125, 63, 0.2);
}

.enrollment-checkbox-item input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--accent-orange);
    cursor: pointer;
}

/* Locked Course Button style */
.btn-locked {
    background: rgba(255,255,255,0.02) !important;
    border: 1px solid rgba(255,255,255,0.06) !important;
    color: var(--text-muted) !important;
    cursor: pointer !important;
}

.btn-locked:hover {
    background: rgba(255, 125, 63, 0.03) !important;
    border-color: rgba(255, 125, 63, 0.15) !important;
    color: var(--accent-orange) !important;
}

/* Chat bubbles and layout */
.chat-bubble {
    max-width: 75%;
    padding: 10px 14px;
    border-radius: 12px;
    font-size: 13.5px;
    line-height: 1.5;
    position: relative;
    word-wrap: break-word;
}

.chat-bubble.sent {
    background: linear-gradient(135deg, var(--accent-orange), #FF5500);
    color: white;
    align-self: flex-start;
    border-top-right-radius: 2px;
}

.chat-bubble.received {
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-main);
    align-self: flex-end;
    border-top-left-radius: 2px;
}

.chat-bubble-meta {
    font-size: 10px;
    margin-top: 4px;
    opacity: 0.7;
    text-align: left;
}

/* Drawer Menu & Hamburger Navigation Styling */
#hamburger-drawer-modal.modal-overlay {
    justify-content: flex-start !important;
    align-items: stretch !important;
    padding: 0 !important;
    background: rgba(7, 11, 25, 0.75) !important;
    backdrop-filter: blur(10px) !important;
}

#hamburger-drawer-modal .modal-content {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    bottom: 0 !important;
    height: 100vh !important;
    height: 100dvh !important;
    width: 320px !important;
    max-width: 85vw !important;
    border-radius: 0 20px 20px 0 !important;
    padding: 0 !important;
    margin: 0 !important;
    box-shadow: 10px 0 40px rgba(0, 0, 0, 0.7) !important;
    transform: translateX(-100%) !important;
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1) !important;
    overflow-y: auto !important;
    background: #0E162F !important;
    border: none !important;
    border-right: 1px solid var(--border-color) !important;
    display: flex !important;
    flex-direction: column !important;
}

#hamburger-drawer-modal.active .modal-content {
    transform: translateX(0) !important;
}

.hamburger-btn {
    background: rgba(255, 125, 63, 0.15);
    border: 1px solid rgba(255, 125, 63, 0.3);
    color: var(--accent-orange);
    transition: var(--transition);
}

.hamburger-btn:hover {
    background: var(--accent-orange);
    color: #fff;
    box-shadow: 0 0 15px var(--accent-orange-glow);
}

.drawer-option-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    color: var(--text-main);
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    margin-bottom: 10px;
}

.drawer-option-item:hover {
    background: rgba(255, 125, 63, 0.12);
    border-color: rgba(255, 125, 63, 0.3);
    color: var(--accent-orange);
    transform: translateX(-4px);
}

.drawer-option-item i {
    font-size: 18px;
    width: 24px;
    text-align: center;
}

/* Course Progress Bar */
.course-progress-bar {
    width: 100%;
    height: 8px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    overflow: hidden;
    margin: 8px 0;
}

.course-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--accent-orange), var(--success));
    border-radius: 10px;
    transition: width 0.4s ease;
}

/* Feature Card Hover Effect */
.feature-card {
    transition: var(--transition);
}

.feature-card:hover {
    transform: translateY(-5px);
    border-color: rgba(255, 125, 63, 0.3);
    box-shadow: 0 10px 25px rgba(0,0,0,0.3);
}

