/* Hide breadcrumbs navigation trail at the top of the reading panel */
[aria-label="breadcrumbs navigation"] {
    display: none !important;
}

/* Overrides to support 100% full-screen reading width (no max-width cap) */
.wy-nav-content {
    max-width: 100% !important;
}

/* Left sidebar title single-line truncation with ellipsis (...) */
.wy-menu-vertical li a {
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
}

/* Custom tag styling for categories below the main title */
.lesson-tags {
    margin-bottom: 25px;
    margin-top: -10px;
}
.lesson-tag {
    display: inline-block;
    background-color: #f1f3f5;
    color: #495057;
    padding: 4px 10px;
    margin-right: 8px;
    border-radius: 12px;
    font-size: 0.8em;
    font-weight: 600;
    border: 1px solid #dee2e6;
}

/* Interactive "Mark as Complete" Button */
.completion-btn {
    display: inline-flex;
    align-items: center;
    background-color: #2980b9;
    color: #ffffff !important;
    border: none;
    padding: 8px 16px;
    font-size: 0.9em;
    font-weight: 600;
    border-radius: 4px;
    cursor: pointer;
    margin-bottom: 20px;
    transition: background-color 0.2s ease, transform 0.1s ease;
    user-select: none;
}
.completion-btn:hover {
    background-color: #216f9e;
}
.completion-btn:active {
    transform: scale(0.98);
}
.completion-btn.completed {
    background-color: #2ecc71;
}
.completion-btn.completed:hover {
    background-color: #27ae60;
}
.completion-btn svg {
    margin-right: 8px;
    fill: currentColor;
    width: 16px;
    height: 16px;
}

/* Progress Bar (Module Roadmaps) */
.progress-container {
    background-color: #e9ecef;
    border-radius: 6px;
    height: 24px;
    width: 100%;
    margin-bottom: 25px;
    position: relative;
    overflow: hidden;
    border: 1px solid #ced4da;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.05);
}
.progress-bar {
    background-color: #2ecc71;
    height: 100%;
    width: 0%;
    transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-weight: 700;
    font-size: 0.85em;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

/* Roadmap timeline checkboxes */
.roadmap-badge {
    font-size: 1.25em;
    margin-right: 8px;
    display: inline-block;
    vertical-align: middle;
    line-height: 1;
    cursor: pointer;
    user-select: none;
    transition: transform 0.1s ease;
}
.roadmap-badge:hover {
    transform: scale(1.2);
}
.roadmap-badge.completed {
    color: #2ecc71;
}
.roadmap-badge.incomplete {
    color: #adb5bd;
}

/* Progress Backup/Restore utility widget style */
.progress-utility-widget {
    background-color: #f8f9fa;
    border: 1px solid #e9ecef;
    padding: 15px;
    border-radius: 6px;
    margin-top: 30px;
    margin-bottom: 20px;
}
.progress-utility-widget h4 {
    margin-top: 0 !important;
    margin-bottom: 10px !important;
}
.widget-btn {
    background-color: #6c757d;
    color: white !important;
    border: none;
    padding: 6px 12px;
    font-size: 0.85em;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 600;
    margin-right: 10px;
    text-decoration: none !important;
}
.widget-btn:hover {
    background-color: #5a6268;
}
.widget-btn-restore {
    background-color: #17a2b8;
}
.widget-btn-restore:hover {
    background-color: #138496;
}
input[type="file"]#restore-file-input {
    display: none;
}

/* --- COLLAPSIBLE SIDEBAR ACCORDION MENU --- */
/* Hide all top-level module lists by default */
.wy-menu-vertical > p.caption + ul {
    display: none;
}

/* Show module list when expanded */
.wy-menu-vertical > p.caption + ul.expanded {
    display: block;
}

/* Style for module captions to show clickability and state */
.wy-menu-vertical p.caption {
    position: relative;
    padding-left: 24px !important;
    cursor: pointer;
    user-select: none;
}

.wy-menu-vertical p.caption,
.wy-menu-vertical p.caption span {
    color: #abb2b9 !important; /* Muted slate grey color by default */
    transition: color 0.2s ease;
}

/* Hover state: light up in Tech Teal to show clickability */
.wy-menu-vertical p.caption:hover,
.wy-menu-vertical p.caption:hover span {
    color: #1abc9c !important;
}

.wy-menu-vertical p.caption::before {
    content: "▸";
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    transition: transform 0.25s ease, color 0.2s ease;
    color: #abb2b9;
    font-weight: bold;
}

.wy-menu-vertical p.caption:hover::before {
    color: #1abc9c;
}

/* Expanded module state: Tech Teal color */
.wy-menu-vertical p.caption.expanded,
.wy-menu-vertical p.caption.expanded span {
    color: #1abc9c !important; /* Modern Tech Teal for active module */
}

.wy-menu-vertical p.caption.expanded::before {
    transform: translateY(-50%) rotate(90deg);
    color: #1abc9c !important;
}

/* Style for left top section of panel (search & brand area) - Sticky to stay fixed on scroll */
.wy-side-nav-search {
    background-color: #27ae60 !important;
    position: sticky !important;
    top: 0 !important;
    z-index: 1000 !important;
}

.wy-side-nav-search > a, 
.wy-side-nav-search > a:visited, 
.wy-side-nav-search > a:hover, 
.wy-side-nav-search > a:active {
    color: #000000 !important;
}

/* Start Learning CTA Button on Home Page */
.start-learning-btn {
    display: inline-block;
    background-color: #27ae60; /* Brand green */
    color: #ffffff !important;
    padding: 12px 24px;
    font-size: 1.1em;
    font-weight: 700;
    border-radius: 30px;
    text-decoration: none !important;
    margin: 20px 0;
    transition: background-color 0.2s ease, transform 0.1s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}
.start-learning-btn:hover {
    background-color: #2ecc71; /* Lighter green on hover */
    transform: translateY(-2px);
    box-shadow: 0 6px 8px rgba(0, 0, 0, 0.15);
}
.start-learning-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* TTS Player Container styling */
.tts-player-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    background-color: #f8f9fa;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 10px 15px;
    margin-bottom: 20px;
    flex-wrap: wrap;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.tts-controls {
    display: flex;
    align-items: center;
    gap: 10px;
}

.tts-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px 12px;
    font-size: 0.9em;
    font-weight: 600;
    border-radius: 4px;
    cursor: pointer;
    border: 1px solid #cbd5e1;
    background-color: #ffffff;
    color: #334155;
    transition: all 0.2s ease;
    user-select: none;
}

.tts-btn:hover {
    background-color: #f1f5f9;
    border-color: #94a3b8;
}

.tts-btn:active {
    transform: scale(0.98);
}

.tts-btn.active {
    background-color: #1abc9c;
    border-color: #16a085;
    color: #ffffff;
}

.tts-btn-play {
    min-width: 80px;
}

.tts-speed-container {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9em;
    color: #64748b;
    font-weight: 500;
}

.tts-speed-select {
    padding: 4px 8px;
    border: 1px solid #cbd5e1;
    border-radius: 4px;
    background-color: #ffffff;
    color: #334155;
    cursor: pointer;
    font-size: 0.95em;
}

.tts-speed-select:focus {
    outline: none;
    border-color: #1abc9c;
}

.tts-status {
    font-size: 0.85em;
    color: #64748b;
    font-style: italic;
    margin-left: auto;
}

/* Highlight effect for the currently read paragraph */
.tts-reading-highlight {
    background-color: rgba(26, 188, 156, 0.08);
    border-left: 3px solid #1abc9c;
    padding-left: 8px;
    transition: background-color 0.3s ease, border-left-color 0.3s ease;
}

/* Tap-to-Jump interactive hover and cursor styles */
.tts-jump-mode-active h2,
.tts-jump-mode-active h3,
.tts-jump-mode-active h4,
.tts-jump-mode-active p,
.tts-jump-mode-active li,
.tts-jump-mode-active blockquote {
    cursor: pointer !important;
    transition: background-color 0.2s ease, outline 0.2s ease;
}

.tts-jump-mode-active h2:hover,
.tts-jump-mode-active h3:hover,
.tts-jump-mode-active h4:hover,
.tts-jump-mode-active p:hover,
.tts-jump-mode-active li:hover,
.tts-jump-mode-active blockquote:hover {
    background-color: rgba(26, 188, 156, 0.04);
    outline: 1px dashed rgba(26, 188, 156, 0.4);
}

/* Responsive TTS player styles for mobile screens */
@media (max-width: 600px) {
    .tts-player-container {
        display: flex !important;
        flex-direction: row !important;
        justify-content: space-between !important;
        align-items: center !important;
        padding: 8px 10px !important;
        gap: 8px !important;
    }
    
    .tts-controls {
        display: flex !important;
        align-items: center !important;
        gap: 6px !important;
        flex-grow: 1 !important;
        justify-content: space-between !important;
        margin-right: 10px !important;
    }
    
    .tts-btn-text {
        display: none !important;
    }
    
    .tts-btn {
        flex: 1 !important;
        max-width: 42px !important;
        padding: 6px 0 !important;
        justify-content: center !important;
        min-width: 0 !important;
    }
    
    .tts-btn-play {
        min-width: 0 !important;
    }
    
    .tts-speed-container {
        display: flex !important;
        align-items: center !important;
        margin-left: auto !important;
    }
    
    .tts-speed-container span {
        display: none !important;
    }
    
    .tts-speed-select {
        padding: 4px 6px !important;
        font-size: 0.9em !important;
    }
}

/* Adjust sticky top offset for tablet/mobile screens where the top nav header is active */
@media (max-width: 768px) {
    .tts-player-container {
        top: 50px !important;
    }
}

/* --- PRACTICE QUIZ SIMULATOR STYLING --- */
#quiz-container {
    background-color: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 25px;
    margin-top: 25px;
    margin-bottom: 30px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.quiz-progress-text {
    font-size: 0.9em;
    font-weight: 600;
    color: #64748b;
    margin-bottom: 8px;
}

.quiz-progress-bar-bg {
    background-color: #f1f5f9;
    border-radius: 4px;
    height: 8px;
    width: 100%;
    margin-bottom: 20px;
    overflow: hidden;
}

.quiz-progress-bar-fill {
    background-color: #1abc9c;
    height: 100%;
    width: 0%;
    transition: width 0.3s ease;
}

.quiz-card {
    display: flex;
    flex-direction: column;
}

.quiz-question-text {
    font-size: 1.15em;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 20px;
    line-height: 1.4;
}

.quiz-options-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 20px;
}

.quiz-option {
    display: flex;
    align-items: center;
    background-color: #ffffff;
    border: 2px solid #cbd5e1;
    border-radius: 6px;
    padding: 14px 18px;
    font-size: 0.95em;
    font-weight: 500;
    color: #334155;
    cursor: pointer;
    text-align: left;
    transition: all 0.2s ease;
    user-select: none;
    line-height: 1.4;
}

.quiz-option:hover {
    background-color: #f8fafc;
    border-color: #94a3b8;
    text-decoration: none !important;
}

.quiz-option.selected {
    border-color: #3b82f6;
    background-color: #eff6ff;
}

.quiz-option.correct {
    border-color: #22c55e;
    background-color: #f0fdf4;
    color: #15803d;
    font-weight: 600;
}

.quiz-option.incorrect {
    border-color: #ef4444;
    background-color: #fef2f2;
    color: #b91c1c;
}

.quiz-option.disabled {
    pointer-events: none;
    opacity: 0.8;
}

.quiz-option-marker {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background-color: #e2e8f0;
    color: #475569;
    font-size: 0.85em;
    font-weight: 700;
    margin-right: 12px;
    flex-shrink: 0;
}

.quiz-option.selected .quiz-option-marker {
    background-color: #3b82f6;
    color: #ffffff;
}

.quiz-option.correct .quiz-option-marker {
    background-color: #22c55e;
    color: #ffffff;
}

.quiz-option.incorrect .quiz-option-marker {
    background-color: #ef4444;
    color: #ffffff;
}

.quiz-explanation {
    background-color: #f8fafc;
    border-left: 4px solid #3b82f6;
    border-radius: 0 6px 6px 0;
    padding: 16px 20px;
    margin-bottom: 20px;
    display: none;
    animation: quizFadeIn 0.3s ease;
}

.quiz-explanation.visible {
    display: block;
}

.quiz-explanation-title {
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 6px;
    font-size: 0.95em;
}

.quiz-explanation-text {
    font-size: 0.9em;
    color: #475569;
    line-height: 1.5;
}

.quiz-action-bar {
    display: flex;
    justify-content: flex-end;
}

.quiz-next-btn {
    background-color: #1abc9c;
    color: #ffffff !important;
    border: none;
    padding: 10px 22px;
    font-size: 0.95em;
    font-weight: 700;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.quiz-next-btn:hover {
    background-color: #16a085;
}

/* Scorecard styles */
.quiz-scorecard {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 20px 0;
    animation: quizFadeIn 0.4s ease;
}

.quiz-scorecard h3 {
    margin-bottom: 15px;
    font-size: 1.5em;
    font-weight: 700;
    color: #1e293b;
}

.quiz-scorecard-result {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-bottom: 25px;
    flex-wrap: wrap;
}

.quiz-score-circle {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background-color: #f1f5f9;
    border: 6px solid #cbd5e1;
}

.quiz-score-circle.pass {
    border-color: #22c55e;
}

.quiz-score-circle.fail {
    border-color: #ef4444;
}

.quiz-score-num {
    font-size: 1.8em;
    font-weight: 800;
    color: #1e293b;
    line-height: 1;
}

.quiz-score-label {
    font-size: 0.75em;
    font-weight: 600;
    color: #64748b;
    margin-top: 4px;
}

.quiz-status-badge {
    padding: 8px 16px;
    border-radius: 30px;
    font-size: 1.1em;
    font-weight: 700;
    color: #ffffff;
}

.quiz-status-badge.pass {
    background-color: #22c55e;
}

.quiz-status-badge.fail {
    background-color: #ef4444;
}

.quiz-details-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    width: 100%;
    max-width: 400px;
    margin-bottom: 30px;
}

.quiz-detail-card {
    background-color: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    padding: 12px;
}

.quiz-detail-val {
    font-size: 1.25em;
    font-weight: 700;
    color: #1e293b;
}

.quiz-detail-lbl {
    font-size: 0.75em;
    color: #64748b;
    font-weight: 500;
}

.quiz-retry-btn {
    background-color: #3b82f6;
    color: #ffffff !important;
    border: none;
    padding: 12px 28px;
    font-size: 1em;
    font-weight: 700;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.quiz-retry-btn:hover {
    background-color: #2563eb;
}

@keyframes quizFadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 480px) {
    .quiz-details-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }
}

/* --- PRACTICE EXAM HUB DASHBOARD STYLING --- */
.quiz-hub-header {
    margin-bottom: 25px;
    border-bottom: 1px solid #e2e8f0;
    padding-bottom: 15px;
}

.quiz-hub-header h3 {
    font-size: 1.6em;
    font-weight: 800;
    color: #1e293b;
    margin-top: 0;
    margin-bottom: 8px;
}

.quiz-hub-header p {
    font-size: 0.95em;
    color: #64748b;
    line-height: 1.5;
}

.quiz-hub-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
    margin-bottom: 25px;
    flex-wrap: wrap;
}

.quiz-search-wrapper {
    position: relative;
    flex: 1;
    min-width: 250px;
    max-width: 400px;
}

.quiz-search-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    pointer-events: none;
    font-size: 0.9em;
}

#quiz-search {
    width: 100%;
    padding: 10px 12px 10px 38px;
    font-size: 0.9em;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    background-color: #ffffff;
    color: #334155;
    transition: all 0.2s ease;
}

#quiz-search:focus {
    outline: none;
    border-color: #1abc9c;
    box-shadow: 0 0 0 3px rgba(26, 188, 156, 0.15);
}

.quiz-filters {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.quiz-filter-btn {
    padding: 8px 16px;
    font-size: 0.85em;
    font-weight: 600;
    color: #475569;
    background-color: #f1f5f9;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.2s ease;
    user-select: none;
}

.quiz-filter-btn:hover {
    background-color: #e2e8f0;
    color: #1e293b;
}

.quiz-filter-btn.active {
    background-color: #1abc9c;
    color: #ffffff;
    border-color: #1abc9c;
}

.quiz-hub-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    animation: quizFadeIn 0.3s ease;
}

.quiz-hub-card {
    background-color: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.02);
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.quiz-hub-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.08);
    border-color: #cbd5e1;
}

.quiz-card-badge-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.quiz-card-badge {
    font-size: 0.75em;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 12px;
    text-transform: uppercase;
}

.quiz-card-badge.badge-empty {
    background-color: #f1f5f9;
    color: #475569;
}

.quiz-card-badge.badge-pass {
    background-color: #dcfce7;
    color: #166534;
}

.quiz-card-badge.badge-fail {
    background-color: #fee2e2;
    color: #991b1b;
}

.quiz-card-score-lbl {
    font-size: 0.75em;
    color: #64748b;
}

.quiz-card-title {
    font-size: 1.05em;
    font-weight: 700;
    color: #1e293b;
    margin-top: 0;
    margin-bottom: 8px;
    line-height: 1.3;
}

.quiz-card-desc {
    font-size: 0.85em;
    color: #64748b;
    line-height: 1.4;
    margin-bottom: 18px;
    flex-grow: 1;
}

.quiz-card-start-btn {
    width: 100%;
    padding: 10px;
    font-size: 0.9em;
    font-weight: 700;
    color: #ffffff;
    background-color: #1abc9c;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.2s ease;
    text-align: center;
}

.quiz-card-start-btn:hover {
    background-color: #16a085;
}

/* --- ACTIVE QUIZ SESSION HEADER BAR --- */
.quiz-header-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #e2e8f0;
    padding-bottom: 12px;
    margin-bottom: 20px;
}

.quiz-exit-btn {
    font-size: 0.85em;
    font-weight: 700;
    color: #ef4444 !important;
    background-color: #fef2f2;
    border: 1px solid #fee2e2;
    padding: 6px 12px;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.quiz-exit-btn:hover {
    background-color: #fee2e2;
    color: #b91c1c !important;
}

.quiz-header-title {
    font-size: 1.1em;
    font-weight: 700;
    color: #1e293b;
}/* --- EXAM MOCK TEST SIMULATOR STYLING --- */
.mock-home-card {
    background-color: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 25px;
    margin-top: 15px;
}

.mock-badge {
    display: inline-block;
    background-color: #e0f2fe;
    color: #0369a1;
    font-size: 0.75em;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 12px;
    margin-bottom: 12px;
    text-transform: uppercase;
}

.mock-rules-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 25px;
    background-color: #f8fafc;
    padding: 15px;
    border-radius: 6px;
    border: 1px solid #e2e8f0;
}

.mock-rule-item {
    font-size: 0.9em;
    color: #475569;
}

.mock-blueprint-table {
    margin-bottom: 25px;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    overflow: hidden;
}

.mock-bp-row {
    display: flex;
    justify-content: space-between;
    padding: 10px 15px;
    font-size: 0.9em;
    border-bottom: 1px solid #e2e8f0;
    background-color: #ffffff;
}

.mock-bp-row.header {
    background-color: #f1f5f9;
    font-weight: 700;
    color: #1e293b;
    border-bottom: 2px solid #e2e8f0;
}

.mock-bp-row:last-child {
    border-bottom: none;
}

.mock-highscore-section {
    margin-bottom: 25px;
    text-align: center;
}

.mock-score-pill {
    display: inline-block;
    padding: 8px 20px;
    border-radius: 20px;
    font-size: 0.95em;
}

.mock-score-pill.pass {
    background-color: #dcfce7;
    color: #166534;
}

.mock-score-pill.fail {
    background-color: #fee2e2;
    color: #991b1b;
}

.mock-start-btn {
    display: block;
    width: 100%;
    max-width: 250px;
    margin: 0 auto;
    padding: 12px 24px;
    background-color: #1abc9c;
    color: #ffffff !important;
    border: none;
    border-radius: 6px;
    font-size: 1.05em;
    font-weight: 700;
    cursor: pointer;
    text-align: center;
    transition: background-color 0.2s ease;
}

.mock-start-btn:hover {
    background-color: #16a085;
}

/* --- ACTIVE SESSION STYLES --- */
.mock-test-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #e2e8f0;
    padding-bottom: 12px;
    margin-bottom: 15px;
}

.mock-title-grp {
    display: flex;
    align-items: center;
    gap: 12px;
}

.mock-exit-btn {
    font-size: 0.85em;
    font-weight: 700;
    color: #ef4444 !important;
    background-color: #fef2f2;
    border: 1px solid #fee2e2;
    padding: 6px 12px;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.mock-exit-btn:hover {
    background-color: #fee2e2;
    color: #b91c1c !important;
}

.mock-stats-grp {
    display: flex;
    align-items: center;
    gap: 10px;
}

.mock-stat-badge {
    background-color: #f1f5f9;
    color: #475569;
    font-size: 0.8em;
    font-weight: 700;
    padding: 5px 10px;
    border-radius: 4px;
    border: 1px solid #e2e8f0;
}

.mock-timer-badge {
    background-color: #f8fafc;
    color: #1e293b;
    font-size: 0.8em;
    font-weight: 700;
    padding: 5px 12px;
    border-radius: 4px;
    border: 1px solid #e2e8f0;
}

#mock-timer.danger {
    color: #ef4444;
    animation: blink 1s infinite;
}

@keyframes blink {
    50% { opacity: 0.5; }
}

.mock-question-card {
    background-color: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 20px;
    margin-top: 15px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.02);
}

.mock-card-meta {
    font-size: 0.75em;
    font-weight: 700;
    color: #64748b;
    text-transform: uppercase;
    margin-bottom: 12px;
}

.mock-action-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid #e2e8f0;
    padding-top: 15px;
    margin-top: 20px;
}

.mock-nav-btn {
    padding: 8px 18px;
    font-size: 0.9em;
    font-weight: 700;
    border-radius: 4px;
    cursor: pointer;
    border: 1px solid #cbd5e1;
    background-color: #ffffff;
    color: #475569;
    transition: all 0.2s ease;
}

.mock-nav-btn:hover:not(:disabled) {
    background-color: #f1f5f9;
    border-color: #94a3b8;
}

.mock-nav-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.mock-submit-btn {
    padding: 8px 18px;
    font-size: 0.9em;
    font-weight: 700;
    border-radius: 4px;
    cursor: pointer;
    border: none;
    background-color: #27ae60;
    color: #ffffff !important;
    transition: background-color 0.2s ease;
}

.mock-submit-btn:hover {
    background-color: #2ecc71;
}

/* --- SCORECARD CATEGORY STYLES --- */
.mock-category-breakdown {
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    overflow: hidden;
    margin-top: 10px;
    margin-bottom: 25px;
}

.mock-cat-perf-row {
    display: flex;
    justify-content: space-between;
    padding: 12px 15px;
    font-size: 0.9em;
    border-bottom: 1px solid #cbd5e1;
    background-color: #ffffff;
}

.mock-cat-perf-row:last-child {
    border-bottom: none;
}

.mock-cat-name {
    color: #475569;
    font-weight: 500;
}

.font-bold {
    font-weight: 700;
}

.text-green {
    color: #22c55e;
}

.text-red {
    color: #ef4444;
}

/* --- QUESTION REVIEW STATE --- */
.mock-review-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 15px;
}

.mock-review-card {
    background-color: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.01);
}

.mock-review-card.correct {
    border-left: 5px solid #22c55e;
}

.mock-review-card.incorrect {
    border-left: 5px solid #ef4444;
}

.mock-review-meta {
    font-size: 0.75em;
    font-weight: 700;
    color: #64748b;
    margin-bottom: 10px;
    text-transform: uppercase;
}

.mock-review-question {
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 15px;
    font-size: 1.05em;
}

.mock-review-options {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 15px;
}

.mock-review-opt {
    display: flex;
    align-items: center;
    background-color: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 4px;
    padding: 10px 12px;
    font-size: 0.9em;
    color: #475569;
}

.mock-review-opt.correct {
    border-color: #22c55e;
    background-color: #f0fdf4;
    color: #15803d;
    font-weight: 600;
}

.mock-review-opt.incorrect {
    border-color: #ef4444;
    background-color: #fef2f2;
    color: #b91c1c;
}

.mock-review-marker {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background-color: #e2e8f0;
    color: #475569;
    font-size: 0.8em;
    font-weight: 700;
    margin-right: 10px;
    flex-shrink: 0;
}

.mock-review-opt.correct .mock-review-marker {
    background-color: #22c55e;
    color: #ffffff;
}

.mock-review-opt.incorrect .mock-review-marker {
    background-color: #ef4444;
    color: #ffffff;
}

.mock-review-explanation {
    background-color: #f8fafc;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    padding: 12px 15px;
    font-size: 0.85em;
    color: #475569;
    line-height: 1.4;
}

@media (max-width: 600px) {
    .mock-rules-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }
}
