/* =====================================================================
   CollegeSikta Weekly MCQ Test MVP - Stylesheet
   Design: Dark Glassmorphism, Emerald Accent (#10b981), Mobile-First
   ===================================================================== */

:root {
    --test-correct: #10b981;
    --test-wrong: #ef4444;
    --test-unanswered: #64748b;
    --test-warning: #f59e0b;
    --test-danger: #ef4444;
}

/* Page Containers */
.weekly-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 2rem 1.5rem 4rem;
    min-height: calc(100vh - var(--nav-height, 70px));
}

.weekly-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.weekly-header .badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 0.4rem 1rem;
    background: rgba(16, 185, 129, 0.12);
    border: 1px solid var(--accent-glow);
    color: var(--accent);
    border-radius: 30px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.weekly-header h1 {
    font-size: 2.4rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--text);
    margin-bottom: 0.75rem;
}

.weekly-header h1 span {
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.weekly-header p {
    color: var(--text-muted);
    font-size: 1.05rem;
    max-width: 600px;
    margin: 0 auto;
}

/* Test Grid & Cards */
.test-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.test-card {
    background: var(--surface-glass);
    backdrop-filter: blur(12px);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg, 20px);
    padding: 1.75rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: var(--transition, all 0.3s ease);
    position: relative;
    overflow: hidden;
}

.test-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #2563eb 0%, #38bdf8 50%, #06b6d4 100%);
    box-shadow: 0 0 14px rgba(56, 189, 248, 0.7);
    opacity: 1;
    z-index: 5;
    transition: var(--transition, all 0.3s ease);
}

.test-card.test-card-blue::before,
.test-card.test-card-emerald::before,
.test-card.live-week-card::before {
    background: linear-gradient(90deg, #2563eb 0%, #38bdf8 50%, #06b6d4 100%);
    opacity: 1;
    box-shadow: 0 0 14px rgba(56, 189, 248, 0.7);
}

.test-card.test-card-blue,
.test-card.test-card-emerald,
.test-card.live-week-card {
    border-color: #bfdbfe;
    box-shadow: 0 4px 18px rgba(37, 99, 235, 0.08);
    background: #ffffff;
}

.test-card.test-card-blue:hover,
.test-card.test-card-emerald:hover,
.test-card.live-week-card:hover {
    border-color: #93c5fd;
    box-shadow: 0 8px 25px rgba(37, 99, 235, 0.15);
}

.test-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.test-week-tag {
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #1d4ed8;
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    padding: 0.25rem 0.65rem;
    border-radius: 6px;
}

.test-status-tag {
    font-size: 0.75rem;
    font-weight: 700;
    color: #1d4ed8;
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    padding: 0.25rem 0.65rem;
    border-radius: 6px;
}

.test-title {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 0.75rem;
    line-height: 1.3;
}

.test-desc {
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 1.25rem;
}

.test-meta-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin-bottom: 1.5rem;
}

.meta-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    padding: 0.35rem 0.75rem;
    border-radius: 8px;
    font-size: 0.82rem;
    color: #475569;
}

.btn-start-test {
    width: 100%;
    background: linear-gradient(135deg, #2563eb 0%, #38bdf8 100%);
    color: #ffffff;
    border: none;
    padding: 0.85rem 1.5rem;
    border-radius: var(--radius, 12px);
    font-size: 0.95rem;
    font-weight: 800;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: var(--transition, all 0.3s ease);
    text-decoration: none;
    box-shadow: 0 4px 18px rgba(37, 99, 235, 0.45);
}

.btn-start-test:hover {
    box-shadow: 0 6px 24px rgba(56, 189, 248, 0.6);
    transform: translateY(-2px);
}

/* =====================================================================
   Examination Interface Styles
   ===================================================================== */
.exam-layout {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 1.5rem;
    align-items: start;
}

@media (max-width: 960px) {
    .exam-layout {
        grid-template-columns: 1fr;
    }
}

/* Sticky Exam Header Bar */
.exam-top-bar {
    background: var(--surface-glass);
    backdrop-filter: blur(16px);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg, 20px);
    padding: 1rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
    position: sticky;
    top: 10px;
    z-index: 100;
}

.exam-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.exam-test-name {
    font-weight: 700;
    color: var(--text);
    font-size: 1.05rem;
}

.exam-q-counter {
    background: #f1f5f9;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.85rem;
    color: #475569;
    font-weight: 600;
}

/* Countdown Timer */
.exam-timer-box {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0.5rem 1.1rem;
    border-radius: 30px;
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.3);
    color: var(--accent);
    font-weight: 700;
    font-size: 1.1rem;
    font-family: monospace, monospace;
    transition: all 0.3s ease;
}

.exam-timer-box.timer-warning {
    background: rgba(245, 158, 11, 0.15);
    border-color: rgba(245, 158, 11, 0.5);
    color: var(--test-warning);
}

.exam-timer-box.timer-danger {
    background: rgba(239, 68, 68, 0.18);
    border-color: rgba(239, 68, 68, 0.6);
    color: var(--test-danger);
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.85; transform: scale(1.02); }
}

/* Question Section */
.question-panel {
    background: var(--surface-glass);
    backdrop-filter: blur(12px);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg, 20px);
    padding: 2rem;
    display: flex;
    flex-direction: column;
    min-height: 480px;
}

.q-meta-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.25rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.q-subject-badge {
    background: rgba(59, 130, 246, 0.15);
    border: 1px solid rgba(59, 130, 246, 0.3);
    color: #60a5fa;
    padding: 0.25rem 0.75rem;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 600;
}

.q-chapter-text {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.q-text {
    font-size: 1.2rem;
    font-weight: 600;
    line-height: 1.6;
    color: var(--text);
    margin-bottom: 2rem;
}

/* MCQ Options */
.options-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 2rem;
}

.option-item {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius, 12px);
    padding: 1rem 1.25rem;
    min-height: 56px;
    display: flex;
    align-items: center;
    gap: 1rem;
    cursor: pointer;
    transition: all 0.25s ease;
    user-select: none;
}

.option-item:hover {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateX(4px);
}

.option-item.selected {
    background: rgba(16, 185, 129, 0.12);
    border-color: var(--accent);
    box-shadow: 0 0 14px rgba(16, 185, 129, 0.2);
}

.opt-indicator {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.9rem;
    color: #cbd5e1;
    flex-shrink: 0;
    transition: all 0.25s ease;
}

.option-item.selected .opt-indicator {
    background: var(--accent);
    color: #fff;
    border-color: var(--accent);
}

.opt-text {
    color: var(--text);
    font-size: 1rem;
    line-height: 1.4;
    flex-grow: 1;
}

/* Question Action Footer */
.q-footer-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: auto;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.btn-nav-prev,
.btn-nav-next {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border);
    color: var(--text);
    padding: 0.75rem 1.5rem;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.25s ease;
}

.btn-nav-prev:hover,
.btn-nav-next:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.3);
}

.btn-nav-prev:disabled,
.btn-nav-next:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.btn-clear-choice {
    background: none;
    border: none;
    color: #94a3b8;
    font-size: 0.85rem;
    cursor: pointer;
    text-decoration: underline;
    transition: color 0.2s;
}

.btn-clear-choice:hover {
    color: #f87171;
}

/* Sidebar Question Palette */
.palette-panel {
    background: var(--surface-glass);
    backdrop-filter: blur(12px);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg, 20px);
    padding: 1.5rem;
    position: sticky;
    top: 90px;
}

.palette-header {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.palette-legend {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 1.25rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    font-size: 0.75rem;
    color: var(--text-muted);
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 5px;
}

.legend-dot {
    width: 10px;
    height: 10px;
    border-radius: 3px;
}

.legend-dot.answered { background: var(--test-correct); }
.legend-dot.unanswered { background: rgba(255, 255, 255, 0.08); border: 1px solid rgba(255, 255, 255, 0.2); }
.legend-dot.current { border: 2px solid #38bdf8; }

.palette-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 8px;
    margin-bottom: 1.5rem;
    max-height: 320px;
    overflow-y: auto;
    padding-right: 4px;
}

.palette-btn {
    aspect-ratio: 1;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #cbd5e1;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.palette-btn:hover {
    border-color: rgba(255, 255, 255, 0.4);
    transform: scale(1.05);
}

.palette-btn.answered {
    background: #10b981;
    border-color: #10b981;
    color: #ffffff;
    font-weight: 700;
}

.palette-btn.unanswered {
    background: rgba(239, 68, 68, 0.18);
    border-color: rgba(239, 68, 68, 0.45);
    color: #f87171;
}

.palette-btn.marked-review {
    background: rgba(168, 85, 247, 0.2);
    border-color: rgba(168, 85, 247, 0.5);
    color: #c084fc;
}

.palette-btn.current {
    outline: 2px solid #38bdf8;
    outline-offset: 2px;
    box-shadow: 0 0 12px rgba(56, 189, 248, 0.5);
}

.btn-submit-exam {
    width: 100%;
    background: var(--accent-gradient);
    color: #fff;
    border: none;
    padding: 0.9rem;
    border-radius: 12px;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    box-shadow: 0 4px 15px var(--accent-glow);
    transition: all 0.3s ease;
}

.btn-submit-exam:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px var(--accent-glow);
}

/* =====================================================================
   Result Screen Styles
   ===================================================================== */
.result-banner-card {
    background: var(--surface-glass);
    backdrop-filter: blur(16px);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg, 20px);
    padding: 3rem 2rem;
    text-align: center;
    position: relative;
    overflow: hidden;
    margin-bottom: 2rem;
}

.result-banner-card::before {
    content: '';
    position: absolute;
    top: -50px;
    left: 50%;
    transform: translateX(-50%);
    width: 250px;
    height: 250px;
    background: var(--accent);
    filter: blur(100px);
    opacity: 0.15;
    z-index: 0;
}

.score-badge-circle {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    background: rgba(16, 185, 129, 0.1);
    border: 3px solid var(--accent);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    position: relative;
    z-index: 1;
    box-shadow: 0 0 30px var(--accent-glow);
}

.score-pct {
    font-size: 2.5rem;
    font-weight: 800;
    color: #fff;
    line-height: 1;
}

.score-raw {
    font-size: 0.95rem;
    color: #94a3b8;
    margin-top: 4px;
    font-weight: 600;
}

.result-feedback-title {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--text);
    margin-bottom: 0.5rem;
    position: relative;
    z-index: 1;
}

.result-feedback-sub {
    color: var(--text-muted);
    font-size: 1rem;
    max-width: 500px;
    margin: 0 auto 1.5rem;
    position: relative;
    z-index: 1;
}

/* Metric Trio Grid */
.metric-trio {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
    margin-bottom: 2rem;
}

@media (max-width: 640px) {
    .metric-trio {
        grid-template-columns: 1fr;
    }
}

.metric-card {
    background: var(--surface-glass);
    border: 1px solid var(--border);
    border-radius: var(--radius, 12px);
    padding: 1.25rem;
    text-align: center;
}

.metric-card.correct { border-left: 4px solid var(--test-correct); }
.metric-card.wrong { border-left: 4px solid var(--test-wrong); }
.metric-card.unanswered { border-left: 4px solid var(--test-unanswered); }

.metric-val {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 0.25rem;
}

.metric-card.correct .metric-val { color: var(--test-correct); }
.metric-card.wrong .metric-val { color: var(--test-wrong); }
.metric-card.unanswered .metric-val { color: var(--test-unanswered); }

.metric-label {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Subject Progress Bars */
.subject-section {
    background: var(--surface-glass);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg, 20px);
    padding: 1.75rem;
    margin-bottom: 2.5rem;
}

.subject-section h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 1.25rem;
}

.subject-bar-row {
    margin-bottom: 1.25rem;
}

.subject-bar-row:last-child {
    margin-bottom: 0;
}

.subject-bar-meta {
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
    font-weight: 600;
    color: #cbd5e1;
    margin-bottom: 0.4rem;
}

.bar-track {
    width: 100%;
    height: 10px;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 10px;
    overflow: hidden;
}

.bar-fill {
    height: 100%;
    border-radius: 10px;
    background: var(--accent-gradient);
    transition: width 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Answer Review Filter Tabs */
.review-header-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.review-header-bar h3 {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--text);
}

.filter-pills-group {
    display: flex;
    gap: 0.5rem;
    background: rgba(0, 0, 0, 0.25);
    padding: 4px;
    border-radius: 30px;
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.filter-pill {
    background: none;
    border: none;
    color: var(--text-muted);
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.filter-pill.active {
    background: var(--surface-light);
    color: #fff;
}

/* Review Question Cards */
.review-card {
    background: var(--surface-glass);
    border: 1px solid var(--border);
    border-radius: var(--radius, 12px);
    padding: 1.5rem;
    margin-bottom: 1.25rem;
    transition: all 0.2s ease;
}

.review-card.correct-item { border-left: 4px solid var(--test-correct); }
.review-card.wrong-item { border-left: 4px solid var(--test-wrong); }
.review-card.unanswered-item { border-left: 4px solid var(--test-unanswered); }

.review-q-num {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
}

.review-q-text {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 1.25rem;
    line-height: 1.5;
}

.review-options-summary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 0.6rem;
    margin-bottom: 1.25rem;
}

.review-opt {
    padding: 0.6rem 0.85rem;
    border-radius: 8px;
    font-size: 0.85rem;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.06);
    color: #94a3b8;
    display: flex;
    align-items: center;
    gap: 6px;
}

.review-opt.is-user-ans.is-wrong {
    background: rgba(239, 68, 68, 0.15);
    border-color: rgba(239, 68, 68, 0.4);
    color: #fca5a5;
}

.review-opt.is-correct-ans {
    background: rgba(16, 185, 129, 0.15);
    border-color: rgba(16, 185, 129, 0.4);
    color: #86efac;
    font-weight: 600;
}

.review-explanation-box {
    background: rgba(0, 0, 0, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    padding: 0.85rem 1rem;
    font-size: 0.88rem;
    line-height: 1.5;
    color: #cbd5e1;
}

.review-explanation-box strong {
    color: #38bdf8;
}

/* Modals */
.weekly-modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(8px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 1rem;
}

.weekly-modal-backdrop.active {
    display: flex;
}

.weekly-modal {
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg, 20px);
    padding: 2rem;
    max-width: 480px;
    width: 100%;
    box-shadow: 0 20px 45px rgba(15, 23, 42, 0.15);
    text-align: center;
    animation: modalIn 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes modalIn {
    from { opacity: 0; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1); }
}

.weekly-modal h3 {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--text);
    margin-bottom: 0.75rem;
}

.weekly-modal p {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: 1.5rem;
}

.modal-checklist {
    text-align: left;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 12px;
    padding: 1rem 1.25rem;
    margin-bottom: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: #e2e8f0;
}

.modal-checklist div {
    display: flex;
    align-items: center;
    gap: 8px;
}

.modal-actions {
    display: flex;
    gap: 0.75rem;
}

.modal-btn-cancel {
    flex: 1;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border);
    color: #cbd5e1;
    padding: 0.75rem;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
}

.modal-btn-confirm {
    flex: 1;
    background: var(--accent-gradient);
    border: none;
    color: #fff;
    padding: 0.75rem;
    border-radius: 10px;
    font-weight: 700;
    cursor: pointer;
}

/* =====================================================================
   CBT EXAM & TEST RESULTS — FIGMA LIGHT SAAS OVERRIDES
   ===================================================================== */

/* Exam Top Sticky Header */
.exam-top-bar {
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    box-shadow: 0 4px 16px rgba(15, 23, 42, 0.05) !important;
}

.exam-test-name {
    color: #0f172a !important;
    font-weight: 700 !important;
}

.exam-q-counter {
    background: #eff6ff !important;
    border: 1px solid #bfdbfe !important;
    color: #1d4ed8 !important;
    font-weight: 700 !important;
}

.exam-timer-box {
    background: #ecfdf5 !important;
    border: 1px solid #a7f3d0 !important;
    color: #047857 !important;
}

.exam-timer-box.timer-warning {
    background: #fffbeb !important;
    border-color: #fde68a !important;
    color: #b45309 !important;
}

.exam-timer-box.timer-danger {
    background: #fef2f2 !important;
    border-color: #fecaca !important;
    color: #dc2626 !important;
}

/* Exam Main Question Panel */
.question-panel {
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    box-shadow: 0 4px 16px rgba(15, 23, 42, 0.04) !important;
    border-radius: 20px !important;
}

.q-meta-row {
    border-bottom: 1px solid #e2e8f0 !important;
}

.q-subject-badge {
    background: #eff6ff !important;
    border: 1px solid #bfdbfe !important;
    color: #1d4ed8 !important;
    font-weight: 700 !important;
}

.q-chapter-text {
    color: #64748b !important;
    font-weight: 600 !important;
}

.q-text {
    color: #0f172a !important;
    font-weight: 700 !important;
}

/* MCQ Option Cards */
.option-item {
    background: #ffffff !important;
    border: 1.5px solid #e2e8f0 !important;
    color: #0f172a !important;
    border-radius: 12px !important;
    box-shadow: 0 2px 6px rgba(15, 23, 42, 0.02) !important;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.option-item:hover {
    background: #f8fafc !important;
    border-color: #cbd5e1 !important;
    transform: translateX(4px) !important;
}

.option-item.selected {
    background: #eff6ff !important;
    border-color: #2563eb !important;
    box-shadow: 0 0 0 1.5px #2563eb, 0 4px 14px rgba(37, 99, 235, 0.12) !important;
}

.opt-indicator {
    background: #f1f5f9 !important;
    border: 1px solid #cbd5e1 !important;
    color: #475569 !important;
    font-weight: 700 !important;
}

.option-item.selected .opt-indicator {
    background: #2563eb !important;
    border-color: #2563eb !important;
    color: #ffffff !important;
}

.opt-text {
    color: #0f172a !important;
    font-weight: 500 !important;
}

.q-footer-actions {
    border-top: 1px solid #e2e8f0 !important;
}

.btn-nav-prev {
    background: #f8fafc !important;
    border: 1px solid #cbd5e1 !important;
    color: #334155 !important;
}

.btn-nav-prev:hover {
    background: #f1f5f9 !important;
    color: #0f172a !important;
}

.btn-nav-next {
    background: #2563eb !important;
    border: 1px solid #2563eb !important;
    color: #ffffff !important;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3) !important;
}

.btn-nav-next:hover {
    background: #1d4ed8 !important;
}

/* Palette Sidebar */
.palette-panel {
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    box-shadow: 0 4px 16px rgba(15, 23, 42, 0.04) !important;
    border-radius: 20px !important;
}

.palette-header {
    color: #0f172a !important;
}

.palette-legend {
    border-bottom: 1px solid #e2e8f0 !important;
    color: #64748b !important;
}

.legend-dot.answered { background: #10b981 !important; }
.legend-dot.unanswered { background: #fee2e2 !important; border: 1px solid #fca5a5 !important; }
.legend-dot.current { border: 2px solid #2563eb !important; }

.palette-btn {
    background: #f8fafc !important;
    border: 1px solid #e2e8f0 !important;
    color: #334155 !important;
}

.palette-btn:hover {
    background: #f1f5f9 !important;
    border-color: #cbd5e1 !important;
}

.palette-btn.answered {
    background: #10b981 !important;
    border-color: #10b981 !important;
    color: #ffffff !important;
}

.palette-btn.unanswered {
    background: #fee2e2 !important;
    border-color: #fca5a5 !important;
    color: #dc2626 !important;
}

.palette-btn.marked-review {
    background: #f3e8ff !important;
    border-color: #d8b4fe !important;
    color: #9333ea !important;
}

.palette-btn.current {
    outline: 2px solid #2563eb !important;
    outline-offset: 2px !important;
    box-shadow: 0 0 10px rgba(37, 99, 235, 0.35) !important;
}

.btn-submit-exam {
    background: #2563eb !important;
    color: #ffffff !important;
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.35) !important;
    border-radius: 12px !important;
}

.btn-submit-exam:hover {
    background: #1d4ed8 !important;
    transform: translateY(-2px) !important;
}

/* Results Screen Elements */
.result-banner-card {
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    box-shadow: 0 4px 20px rgba(15, 23, 42, 0.05) !important;
    border-radius: 20px !important;
}

.result-banner-card::before {
    display: none !important;
}

.score-badge-circle {
    background: #eff6ff !important;
    border: 3px solid #2563eb !important;
    box-shadow: 0 0 25px rgba(37, 99, 235, 0.15) !important;
}

.score-pct {
    color: #0f172a !important;
    font-weight: 800 !important;
}

.score-raw {
    color: #64748b !important;
    font-weight: 600 !important;
}

.result-feedback-title {
    color: #0f172a !important;
}

.result-feedback-sub {
    color: #475569 !important;
}

.metric-card {
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.04) !important;
    border-radius: 14px !important;
}

.metric-label {
    color: #64748b !important;
}

.subject-section {
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.04) !important;
    border-radius: 20px !important;
}

.subject-section h3 {
    color: #0f172a !important;
}

.subject-bar-meta {
    color: #0f172a !important;
}

.bar-track {
    background: #f1f5f9 !important;
}

.filter-pills-group {
    background: #f1f5f9 !important;
    border: 1px solid #e2e8f0 !important;
    padding: 4px !important;
}

.filter-pill {
    color: #64748b !important;
}

.filter-pill.active {
    background: #ffffff !important;
    color: #0f172a !important;
    box-shadow: 0 2px 6px rgba(15, 23, 42, 0.08) !important;
}

.review-header-bar h3 {
    color: #0f172a !important;
}

.review-card {
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.04) !important;
    border-radius: 14px !important;
}

.review-q-num {
    color: #64748b !important;
}

.review-q-text {
    color: #0f172a !important;
}

.review-opt {
    background: #f8fafc !important;
    border: 1px solid #e2e8f0 !important;
    color: #475569 !important;
}

.review-opt.is-user-ans.is-wrong {
    background: #fef2f2 !important;
    border-color: #fecaca !important;
    color: #b91c1c !important;
}

.review-opt.is-correct-ans {
    background: #f0fdf4 !important;
    border-color: #bbf7d0 !important;
    color: #15803d !important;
    font-weight: 700 !important;
}

.review-explanation-box {
    background: #f8fafc !important;
    border: 1px solid #e2e8f0 !important;
    color: #334155 !important;
}

.review-explanation-box strong {
    color: #2563eb !important;
}

/* Modals */
.weekly-modal {
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    box-shadow: 0 20px 45px rgba(15, 23, 42, 0.15) !important;
}

.weekly-modal h3 {
    color: #0f172a !important;
}

.weekly-modal p {
    color: #475569 !important;
}

.modal-checklist {
    background: #f8fafc !important;
    border: 1px solid #e2e8f0 !important;
    color: #334155 !important;
}

.modal-btn-cancel {
    background: #f1f5f9 !important;
    border: 1px solid #cbd5e1 !important;
    color: #334155 !important;
}

.modal-btn-cancel:hover {
    background: #e2e8f0 !important;
    color: #0f172a !important;
}

.modal-btn-confirm {
    background: #2563eb !important;
    color: #ffffff !important;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3) !important;
}

.modal-btn-confirm:hover {
    background: #1d4ed8 !important;
}
