/* ==================================================
   RESET & BASE
================================================== */
* {
    box-sizing: border-box;
    font-family: "Segoe UI", Roboto, Arial, sans-serif;
}

html,
body {
    margin: 0;
    padding: 0;
    height: 100%;
    background: #eef2f6;
    color: #1f2937;
}

body {
    font-family: "Noto Sans Gujarati", "Segoe UI", sans-serif;
}

/* ==================================================
   MAIN WRAPPER
================================================== */
.rto-wrapper {
    min-height: 100vh;
    background: #ffffff;
    display: flex;
    flex-direction: column;
}

/* ==================================================
   HEADER
================================================== */
.rto-header {
    background: linear-gradient(90deg, #1a73e8, #1558b0);
    color: #fff;
    padding: 14px 20px;
    font-size: 16px;
    font-weight: 600;
    text-align: center;
}

/* ==================================================
   LAYOUT
================================================== */
.exam-layout {
    display: flex;
    flex: 1;
}

/* ==================================================
   SIDEBAR
================================================== */
.exam-sidebar {
    width: 260px;
    background: #f9fbff;
    border-right: 1px solid #dde3ea;
    padding: 16px;
    display: flex;
    flex-direction: column;
}

.sidebar-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar-item {
    padding: 14px 16px;
    margin-bottom: 10px;
    border-radius: 10px;
    cursor: pointer;
    font-size: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
    background: #ffffff;
    border: 1px solid #e5eaf0;
    transition: 0.2s ease;
}

.sidebar-item:hover {
    background: #e8f0fe;
}

.sidebar-item.active {
    background: #1a73e8;
    color: #ffffff;
    font-weight: 600;
}

/* ==================================================
   CONTENT
================================================== */
.exam-content {
    flex: 1;
    padding: 20px;
    background: #ffffff;
}

/* ==================================================
   PRACTICE SECTION
================================================== */
.practice-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 16px;
}

.practice-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 16px;
}

.practice-card {
    padding: 18px 20px;
    border-radius: 12px;
    background: #ffffff;
    border: 1px solid #e5eaf0;
    cursor: pointer;
    transition: 0.2s ease;
}

.practice-card:hover {
    background: #f5f7fa;
    transform: translateY(-2px);
}

.practice-card h3 {
    margin: 0 0 6px;
    font-size: 16px;
    font-weight: 600;
}

.practice-card p {
    margin: 0;
    font-size: 13px;
    color: #6b7280;
}

/* ==================================================
   CANDIDATE BAR
================================================== */
.candidate-bar {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    align-items: center;
    padding: 14px 18px;
    background: #f8fafc;
    border: 1px solid #e5eaf0;
    border-radius: 10px;
    margin-bottom: 18px;
}

.candidate-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.candidate-left img {
    width: 46px;
    height: 46px;
    border-radius: 6px;
}

.candidate-center,
.candidate-right {
    text-align: center;
}

.label {
    font-size: 12px;
    color: #6b7280;
}

.time {
    font-size: 22px;
    font-weight: 700;
    color: #dc2626;
}

.score {
    font-size: 20px;
    font-weight: 700;
    color: #15803d;
}

/* ==================================================
   QUESTION BOX
================================================== */
.question-box {
    background: #ffffff;
    border-radius: 12px;
    border: 1px solid #e5eaf0;
    padding: 18px;
    margin-bottom: 16px;
}

.question-header {
    display: grid;
    grid-template-columns: 90px 1fr;
    gap: 18px;
}

.question-label {
    text-align: center;
    font-weight: 600;
    font-size: 14px;
    border-right: 1px solid #e5eaf0;
}

.question-label span {
    display: block;
    margin-top: 6px;
    font-size: 24px;
    color: #1a73e8;
}

.question-text {
    font-size: 16px;
    line-height: 1.5;
}

/* ==================================================
   OPTIONS
================================================== */
.options-list {
    list-style: none;
    padding: 0;
    margin: 16px 0;
}

.options-list li {
    border: 1px solid #e5eaf0;
    border-radius: 10px;
    margin-bottom: 10px;
    background: #fafcff;
    transition: 0.2s ease;
}

.options-list li:hover {
    background: #eef5ff;
}

.options-list label {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px;
    cursor: pointer;
}

/* ===== Practice Feedback ===== */
.options-list li.correct {
    background: #2e7d32;
    border-color: #2e7d32;
    color: #ffffff;
}

.options-list li.wrong {
    background: #c62828;
    border-color: #c62828;
    color: #ffffff;
}

.practice-mode input[type="radio"] {
    display: none;
}

/* ==================================================
   CONFIRM BUTTON
================================================== */
.confirm-area {
    text-align: center;
    margin-top: 10px;
}

.confirm-btn {
    background: #1a73e8;
    color: #ffffff;
    border: none;
    border-radius: 10px;
    padding: 12px 42px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
}

.confirm-btn:disabled {
    background: #cbd5e1;
    cursor: not-allowed;
}

/* ==================================================
   FOOTER INFO
================================================== */
.exam-footer {
    text-align: center;
    font-size: 13px;
    padding: 12px;
    color: #374151;
}

/* ==================================================
   MOBILE RESPONSIVE
================================================== */
@media (max-width: 900px) {

    .exam-layout {
        flex-direction: column;
    }

    /* Sidebar -> top menu */
    .exam-sidebar {
        width: 100%;
        padding: 10px;
        border-right: none;
        border-bottom: 1px solid #dde3ea;
        background: #ffffff;
    }

    .sidebar-list {
        display: flex;
        gap: 10px;
    }

    .sidebar-item {
        flex: 1;
        justify-content: center;
        margin-bottom: 0;
        padding: 12px;
        font-size: 14px;
    }

    .exam-content {
        padding: 14px;
    }

    .candidate-bar {
        grid-template-columns: 1fr;
        gap: 10px;
        text-align: center;
    }

    .question-header {
        grid-template-columns: 1fr;
    }

    .question-label {
        border-right: none;
        border-bottom: 1px solid #e5eaf0;
        padding-bottom: 6px;
        margin-bottom: 6px;
    }
}

/* =====================================
   PRACTICE MODE – HIDE TOP BAR
===================================== */
.practice-mode .rto-header {
    display: none !important;
}

.language-select {
    margin-bottom: 14px;
}

.language-select select {
    padding: 8px 10px;
    border-radius: 6px;
    border: 1px solid #d1d5db;
    font-size: 14px;
}

.sidebar-language-select {
    padding: 1rem;
    text-align: left;
}

.sidebar-language-select label {
    display: block;
    font-weight: bold;
    margin-bottom: 0.5rem;
}

.sidebar-language-select select {
    width: 100%;
    padding: 0.4rem;
    font-size: 1rem;
    border-radius: 4px;
    border: 1px solid #ccc;
}

/* ==================================================
   PROGRESS BAR
================================================== */
.exam-progress-container {
    background: #f1f5f9;
    border-radius: 8px;
    height: 32px;
    margin: 12px 0;
    position: relative;
    overflow: hidden;
}

.exam-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #1a73e8, #10b981);
    border-radius: 8px;
    width: 0%;
    transition: width 0.3s ease;
}

.exam-progress-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 13px;
    font-weight: 600;
    color: #374151;
}

/* ==================================================
   EXAM MAIN LAYOUT
================================================== */
.exam-main-layout {
    display: flex;
    gap: 20px;
}

.exam-question-area {
    flex: 1;
}

/* ==================================================
   QUESTION NAVIGATION PANEL
================================================== */
.question-nav-section {
    width: 200px;
    background: #f9fbff;
    border: 1px solid #e5eaf0;
    border-radius: 12px;
    padding: 16px;
    height: fit-content;
    position: sticky;
    top: 20px;
}

.nav-header h4 {
    margin: 0 0 12px;
    font-size: 14px;
    font-weight: 600;
    color: #374151;
}

.question-nav-panel {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 6px;
    margin-bottom: 16px;
}

.nav-btn {
    width: 32px;
    height: 32px;
    border: 1px solid #e5eaf0;
    border-radius: 6px;
    background: #ffffff;
    font-size: 12px;
    font-weight: 600;
    color: #6b7280;
    cursor: pointer;
    transition: all 0.15s ease;
}

.nav-btn:hover {
    background: #f1f5f9;
    border-color: #1a73e8;
}

.nav-btn.current {
    background: #1a73e8;
    color: #ffffff;
    border-color: #1a73e8;
}

.nav-btn.answered {
    background: #10b981;
    color: #ffffff;
    border-color: #10b981;
}

.nav-btn.marked {
    background: #f59e0b;
    color: #ffffff;
    border-color: #f59e0b;
}

.nav-btn.answered.marked {
    background: linear-gradient(135deg, #10b981 50%, #f59e0b 50%);
}

/* Navigation Legend */
.nav-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 12px;
    font-size: 11px;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 4px;
    color: #6b7280;
}

.legend-dot {
    width: 10px;
    height: 10px;
    border-radius: 3px;
    background: #e5eaf0;
    border: 1px solid #d1d5db;
}

.legend-dot.current {
    background: #1a73e8;
    border-color: #1a73e8;
}

.legend-dot.answered {
    background: #10b981;
    border-color: #10b981;
}

.legend-dot.marked {
    background: #f59e0b;
    border-color: #f59e0b;
}

/* Keyboard Hints */
.keyboard-hints {
    background: #f1f5f9;
    border-radius: 8px;
    padding: 10px;
    font-size: 11px;
    color: #6b7280;
}

.keyboard-hints p {
    margin: 0 0 6px;
    font-size: 11px;
}

.keyboard-hints span {
    display: block;
    margin-bottom: 4px;
}

.keyboard-hints kbd {
    background: #ffffff;
    border: 1px solid #d1d5db;
    border-radius: 4px;
    padding: 2px 5px;
    font-size: 10px;
    font-family: monospace;
    margin-right: 2px;
}

/* ==================================================
   EXAM ACTIONS BAR
================================================== */
.exam-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin: 16px 0;
    flex-wrap: wrap;
}

.action-left,
.action-right {
    display: flex;
    gap: 8px;
}

.action-center {
    flex: 1;
    display: flex;
    justify-content: center;
}

.nav-action-btn {
    padding: 10px 16px;
    border: 1px solid #e5eaf0;
    border-radius: 8px;
    background: #ffffff;
    color: #374151;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.15s ease;
}

.nav-action-btn:hover {
    background: #f1f5f9;
    border-color: #1a73e8;
    color: #1a73e8;
}

.mark-review-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 16px;
    border: 1px solid #f59e0b;
    border-radius: 8px;
    background: #fffbeb;
    color: #b45309;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.15s ease;
}

.mark-review-btn:hover {
    background: #fef3c7;
}

.mark-review-btn.marked {
    background: #f59e0b;
    color: #ffffff;
}

.mark-icon {
    font-size: 16px;
}

/* ==================================================
   OPTION LETTER INDICATOR
================================================== */
.option-letter {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #e5eaf0;
    color: #374151;
    font-size: 12px;
    font-weight: 600;
    margin-right: 10px;
    flex-shrink: 0;
}

.options-list li.selected .option-letter {
    background: #1a73e8;
    color: #ffffff;
}

.options-list li.correct .option-letter {
    background: #10b981;
    color: #ffffff;
}

.options-list li.wrong .option-letter {
    background: #ef4444;
    color: #ffffff;
}

/* ==================================================
   TIMER WARNING STATES
================================================== */
.time.warning {
    color: #f59e0b !important;
}

.time.critical {
    color: #ef4444 !important;
    animation: pulse 0.5s ease-in-out infinite;
}

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

/* ==================================================
   RESULT STATS
================================================== */
.result-stats {
    margin: 20px 0;
}

.result-stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.result-stat {
    text-align: center;
    padding: 16px;
    background: #f8fafc;
    border-radius: 10px;
    border: 1px solid #e5eaf0;
}

.result-stat .stat-label {
    display: block;
    font-size: 12px;
    color: #6b7280;
    margin-bottom: 4px;
}

.result-stat .stat-value {
    display: block;
    font-size: 24px;
    font-weight: 700;
    color: #1f2937;
}

.result-stat .stat-value.correct {
    color: #10b981;
}

.result-stat .stat-value.incorrect {
    color: #ef4444;
}

.result-stat .stat-value.unanswered {
    color: #6b7280;
}

/* ==================================================
   PRACTICE COMPLETE
================================================== */
.practice-complete {
    text-align: center;
    padding: 40px 20px;
}

.complete-icon {
    font-size: 64px;
    margin-bottom: 16px;
}

.practice-subtitle {
    color: #6b7280;
    margin-bottom: 24px;
}

.practice-stats {
    display: flex;
    justify-content: center;
    gap: 24px;
    margin-bottom: 32px;
}

.practice-stat {
    text-align: center;
    padding: 20px 32px;
    background: #f8fafc;
    border-radius: 12px;
    border: 1px solid #e5eaf0;
}

.practice-stat .stat-number {
    display: block;
    font-size: 32px;
    font-weight: 700;
    color: #1a73e8;
}

.practice-stat .stat-label {
    font-size: 13px;
    color: #6b7280;
}

/* ==================================================
   REVIEW ENHANCEMENTS
================================================== */
.review-summary {
    display: flex;
    gap: 16px;
    margin-bottom: 20px;
    padding: 16px;
    background: #f8fafc;
    border-radius: 12px;
}

.summary-item {
    flex: 1;
    text-align: center;
    padding: 12px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 500;
}

.summary-item span {
    display: block;
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 4px;
}

.summary-item.correct {
    background: #ecfdf5;
    color: #047857;
}

.summary-item.incorrect {
    background: #fef2f2;
    color: #dc2626;
}

.summary-item.unanswered {
    background: #f3f4f6;
    color: #6b7280;
}

.review-q-num {
    font-weight: 700;
    color: #1a73e8;
    margin-right: 8px;
    min-width: 32px;
}

.review-q-text {
    flex: 1;
}

.review-status {
    font-size: 18px;
    margin-left: 8px;
}

.review-status.correct {
    color: #10b981;
}

.review-status.wrong {
    color: #ef4444;
}

.review-status.unanswered {
    color: #9ca3af;
}

.review-item.unanswered {
    border-left: 4px solid #9ca3af;
}

.option-indicator {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #e5eaf0;
    font-size: 11px;
    font-weight: 600;
    margin-right: 10px;
}

.review-option.correct .option-indicator {
    background: #10b981;
    color: #ffffff;
}

.review-option.wrong .option-indicator {
    background: #ef4444;
    color: #ffffff;
}

.option-badge {
    margin-left: auto;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
}

.option-badge.correct {
    background: #10b981;
    color: #ffffff;
}

.option-badge.wrong {
    background: #ef4444;
    color: #ffffff;
}

/* Question Image */
.question-image {
    max-width: 200px;
    max-height: 150px;
    margin-bottom: 12px;
    border-radius: 8px;
    border: 1px solid #e5eaf0;
}

/* ==================================================
   RESPONSIVE - QUESTION NAV
================================================== */
@media (max-width: 900px) {
    .exam-main-layout {
        flex-direction: column;
    }

    .question-nav-section {
        width: 100%;
        position: static;
        order: -1;
    }

    .question-nav-panel {
        grid-template-columns: repeat(8, 1fr);
    }

    .keyboard-hints {
        display: none;
    }

    .exam-actions {
        flex-direction: column;
    }

    .action-left,
    .action-center,
    .action-right {
        width: 100%;
        justify-content: center;
    }

    .result-stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .practice-stats {
        flex-direction: column;
        gap: 12px;
    }

    .review-summary {
        flex-direction: column;
        gap: 8px;
    }
}

@media (max-width: 480px) {
    .question-nav-panel {
        grid-template-columns: repeat(5, 1fr);
    }

    .nav-btn {
        width: 28px;
        height: 28px;
        font-size: 11px;
    }

    .nav-action-btn,
    .mark-review-btn {
        padding: 8px 12px;
        font-size: 12px;
    }

    .result-stats-grid {
        grid-template-columns: 1fr;
    }
}

/* ==================================================
   SIDEBAR USER INFO & LOGOUT
================================================== */
.sidebar-user-info {
    padding: 16px;
    border-top: 1px solid #e5eaf0;
    margin-top: auto;
}

#sidebarUserEmail {
    font-size: 13px;
    color: #6b7280;
    word-break: break-all;
    margin-bottom: 10px;
}

.logout-btn {
    width: 100%;
    padding: 10px;
    border: 1px solid #ef4444;
    border-radius: 8px;
    background: #ffffff;
    color: #ef4444;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.logout-btn:hover {
    background: #fef2f2;
}

/* ==================================================
   DASHBOARD SECTION
================================================== */
.dashboard-section {
    padding: 20px;
}

.dashboard-section h2 {
    font-size: 22px;
    font-weight: 700;
    margin: 0 0 8px;
    color: #1f2937;
}

.dashboard-section .dashboard-subtitle {
    color: #6b7280;
    font-size: 14px;
    margin: 0 0 24px;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.dashboard-card {
    padding: 28px 24px;
    background: #ffffff;
    border: 1px solid #e5eaf0;
    border-radius: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
}

.dashboard-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
    border-color: #1a73e8;
}

.dashboard-card .dash-card-icon {
    font-size: 40px;
    margin-bottom: 14px;
}

.dashboard-card h3 {
    font-size: 18px;
    font-weight: 600;
    margin: 0 0 8px;
    color: #1f2937;
}

.dashboard-card p {
    font-size: 13px;
    color: #6b7280;
    margin: 0;
}

/* ==================================================
   PREVIOUSLY ANSWERED NAV BUTTON
================================================== */
.nav-btn.previously-answered {
    background: #6366f1;
    color: #ffffff;
    border-color: #6366f1;
}

.legend-dot.previously-answered {
    background: #6366f1;
    border-color: #6366f1;
}

/* ==================================================
   PRACTICE CARD PROGRESS
================================================== */
.practice-card-progress {
    margin-top: 10px;
}

.mini-progress-bar {
    height: 6px;
    background: #e5eaf0;
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 4px;
}

.mini-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #1a73e8, #10b981);
    border-radius: 3px;
    transition: width 0.3s ease;
}

.practice-card-stats {
    font-size: 12px;
    color: #6b7280;
}

/* ==================================================
   PROGRESS MONITOR
================================================== */
.progress-section {
    padding: 20px;
}

.loading-progress {
    text-align: center;
    padding: 40px;
    color: #6b7280;
    font-size: 15px;
}

.error-msg {
    text-align: center;
    padding: 40px;
    color: #ef4444;
    font-size: 15px;
}

.empty-msg {
    text-align: center;
    padding: 24px;
    color: #9ca3af;
    font-size: 14px;
}

/* Progress Overview Cards */
.progress-overview {
    margin-bottom: 28px;
}

.progress-stat-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 16px;
}

.progress-stat-card {
    background: #ffffff;
    border: 1px solid #e5eaf0;
    border-radius: 12px;
    padding: 20px;
    text-align: center;
}

.progress-stat-card h4 {
    margin: 0 0 8px;
    font-size: 13px;
    color: #6b7280;
    font-weight: 500;
}

.progress-stat-card .stat-value {
    font-size: 28px;
    font-weight: 700;
    color: #1f2937;
}

.progress-stat-card .stat-value.pass-text {
    color: #10b981;
}

.progress-stat-card .stat-value.fail-text {
    color: #ef4444;
}

/* Progress Section Block */
.progress-section-block {
    margin-bottom: 28px;
}

.progress-section-block h3 {
    font-size: 18px;
    font-weight: 600;
    margin: 0 0 16px;
    color: #1f2937;
}

/* Mock History Table */
.progress-table-wrap {
    overflow-x: auto;
}

.progress-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.progress-table th,
.progress-table td {
    padding: 12px 16px;
    text-align: left;
    border-bottom: 1px solid #e5eaf0;
}

.progress-table th {
    background: #f8fafc;
    font-weight: 600;
    color: #374151;
    font-size: 13px;
}

.progress-table tr:hover td {
    background: #f9fbff;
}

.result-badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
}

.result-badge.pass {
    background: #ecfdf5;
    color: #047857;
}

.result-badge.fail {
    background: #fef2f2;
    color: #dc2626;
}

/* Practice Progress Grid */
.practice-progress-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 16px;
}

.practice-progress-card {
    background: #ffffff;
    border: 1px solid #e5eaf0;
    border-radius: 12px;
    padding: 20px;
}

.practice-progress-card h4 {
    margin: 0 0 12px;
    font-size: 15px;
    font-weight: 600;
    color: #1f2937;
}

.progress-bar-container {
    height: 8px;
    background: #e5eaf0;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 8px;
}

.progress-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #1a73e8, #10b981);
    border-radius: 4px;
    transition: width 0.3s ease;
}

.practice-progress-stats {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #6b7280;
}

.practice-progress-stats .accuracy {
    font-weight: 600;
    color: #1a73e8;
}

/* ==================================================
   PRIMARY BUTTON
================================================== */
.primary-btn {
    background: #1a73e8;
    color: #ffffff;
    border: none;
    border-radius: 10px;
    padding: 12px 32px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.2s ease;
}

.primary-btn:hover {
    background: #1558b0;
}

/* ==================================================
   RESPONSIVE - DASHBOARD & PROGRESS
================================================== */
@media (max-width: 900px) {
    .dashboard-grid {
        grid-template-columns: 1fr;
    }

    .progress-stat-cards {
        grid-template-columns: repeat(2, 1fr);
    }

    .practice-progress-grid {
        grid-template-columns: 1fr;
    }

    .sidebar-user-info {
        padding: 10px;
    }
}

@media (max-width: 480px) {
    .progress-stat-cards {
        grid-template-columns: 1fr;
    }

    .dashboard-card {
        padding: 20px 16px;
    }
}

/* ==================================================
   EXAM INTRO CARD (ENHANCED)
================================================== */
.exam-intro-badge {
    display: inline-block;
    background: #ecfdf5;
    color: #047857;
    font-size: 12px;
    font-weight: 600;
    padding: 4px 12px;
    border-radius: 20px;
    margin-bottom: 12px;
}

.exam-features-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin: 20px 0;
}

.exam-feature {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 12px;
    background: #f8fafc;
    border-radius: 10px;
    border: 1px solid #e5eaf0;
}

.exam-feature .feature-icon {
    font-size: 24px;
    flex-shrink: 0;
}

.exam-feature strong {
    display: block;
    font-size: 14px;
    color: #1f2937;
    margin-bottom: 2px;
}

.exam-feature span {
    font-size: 12px;
    color: #6b7280;
}

.exam-trust-signals {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    font-size: 13px;
    color: #047857;
    margin-top: 12px;
}

.exam-trust-signals span {
    display: flex;
    align-items: center;
    gap: 4px;
}

/* ==================================================
   FAQ SECTION
================================================== */
.exam-faq-section {
    margin-top: 28px;
    padding-top: 24px;
    border-top: 1px solid #e5eaf0;
}

.exam-faq-section h2 {
    font-size: 18px;
    font-weight: 600;
    margin: 0 0 16px;
    color: #1f2937;
}

.faq-item {
    border: 1px solid #e5eaf0;
    border-radius: 10px;
    margin-bottom: 10px;
    overflow: hidden;
}

.faq-item summary {
    padding: 14px 16px;
    font-size: 14px;
    font-weight: 600;
    color: #374151;
    cursor: pointer;
    background: #f9fbff;
    transition: background 0.2s;
    list-style: none;
}

.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-item summary::before {
    content: "+";
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #e5eaf0;
    font-size: 14px;
    font-weight: 700;
    margin-right: 10px;
    flex-shrink: 0;
    transition: 0.2s;
}

.faq-item[open] summary::before {
    content: "\2212";
    background: #1a73e8;
    color: #ffffff;
}

.faq-item summary:hover {
    background: #eef5ff;
}

.faq-item p {
    padding: 0 16px 14px;
    margin: 0;
    font-size: 13px;
    line-height: 1.6;
    color: #6b7280;
}

/* ==================================================
   SUBMIT EXAM BUTTON
================================================== */
.submit-exam-btn {
    padding: 10px 16px;
    border: 1px solid #ef4444;
    border-radius: 8px;
    background: #ffffff;
    color: #ef4444;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s ease;
}

.submit-exam-btn:hover {
    background: #fef2f2;
    border-color: #dc2626;
    color: #dc2626;
}

/* ==================================================
   WEAK AREAS
================================================== */
.weak-areas-block {
    background: #fffbeb;
    border: 1px solid #fde68a;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 28px;
}

.weak-areas-block h3 {
    color: #92400e;
}

.weak-areas-hint {
    font-size: 13px;
    color: #92400e;
    margin: 0 0 16px;
}

.weak-areas-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 12px;
}

.weak-area-card {
    background: #ffffff;
    border: 1px solid #fde68a;
    border-radius: 10px;
    padding: 14px;
}

.weak-area-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.weak-area-name {
    font-size: 14px;
    font-weight: 600;
    color: #1f2937;
}

.weak-area-accuracy {
    font-size: 14px;
    font-weight: 700;
    color: #ef4444;
}

.progress-bar-fill.weak {
    background: linear-gradient(90deg, #ef4444, #f59e0b);
}

.weak-area-detail {
    font-size: 12px;
    color: #6b7280;
    margin-top: 4px;
    display: block;
}

/* ==================================================
   MOCK MODE - SELECTED OPTION HIGHLIGHT
================================================== */
.mock-mode .options-list li.selected {
    border-color: #1a73e8;
    background: #eef5ff;
}

.mock-mode .options-list li.selected label {
    font-weight: 500;
}

/* ==================================================
   RESPONSIVE - NEW COMPONENTS
================================================== */
@media (max-width: 900px) {
    .exam-features-grid {
        grid-template-columns: 1fr;
    }

    .exam-trust-signals {
        flex-direction: column;
        gap: 6px;
    }

    .weak-areas-grid {
        grid-template-columns: 1fr;
    }

    .practice-mode-header {
        flex-direction: column;
        gap: 8px;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .exam-feature {
        padding: 10px;
    }

    .faq-item summary {
        font-size: 13px;
        padding: 12px;
    }
}