/* TCF Test Template-Specific Styles */

/* Force hide mobile sidebar toggle button to prevent overlap */
.mobile-sidebar-toggle,
#mobile-sidebar-toggle,
button.mobile-sidebar-toggle.d-lg-none,
button#mobile-sidebar-toggle.mobile-sidebar-toggle.d-lg-none {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
    width: 0 !important;
    height: 0 !important;
    overflow: hidden !important;
}

/* Random test warning */
.random-test-warning {
    background: #fff3cd;
    border: 1px solid #ffeeba;
    color: #856404;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
}

/* Audio timer specific styles */
.audio-timer {
    background: #ffeaa7;
    padding: 10px;
    border-radius: 5px;
    text-align: center;
    margin-bottom: 15px;
    display: none;
}

.audio-timer.active {
    display: block;
}

/* Form field layout improvements */
.user-info-fields {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
    margin-bottom: 20px;
}

@media (max-width: 768px) {
    .user-info-fields {
        grid-template-columns: 1fr;
    }
}

/* NCLC Level Indicator Style */
.nclc-level-indicator {
    display: inline-block;
    padding: 0.75rem 2rem;
    background: linear-gradient(45deg, #007bff, #0056b3);
    color: white;
    border-radius: 30px;
    font-size: 1.25rem;
    font-weight: 500;
    margin-bottom: 1.5rem;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

/* Reading text card styles */
.reading-text-card {
    position: relative;
    overflow: hidden;
}

.reading-text-content {
    position: relative;
    z-index: 0;
    min-height: 250px;
    padding: 20px;
}

.reading-text-content p,
.reading-text-content div:not(.tcf-watermark) {
    position: relative;
    z-index: 2;
}

/* Remove any potential spacing from watermark */
.tcf-watermark:before,
.tcf-watermark:after {
    margin: 0 !important;
    padding: 0 !important;
}

/* 3-Column Layout for CE and CO Tests - Desktop Only */
@media (min-width: 992px) {
    /* Apply to both CE and CO tests */
    .tcf-exam-ce #tcf-test-screen .exam-layout,
    .tcf-exam-co #tcf-test-screen .exam-layout {
        display: flex !important;
        gap: 20px;
        height: calc(100vh - 60px);
        overflow: hidden;
    }
    
    /* Left Sidebar - Question Navigation */
    .tcf-exam-ce #tcf-test-screen .exam-left-sidebar,
    .tcf-exam-co #tcf-test-screen .exam-left-sidebar {
        width: 180px;
        flex-shrink: 0;
        display: block !important;
    }
    
    .tcf-exam-ce .exam-left-sidebar .sidebar-content,
    .tcf-exam-co .exam-left-sidebar .sidebar-content {
        position: sticky;
        top: 20px;
        height: calc(100vh - 100px);
        overflow: hidden;
    }
    
    .tcf-exam-ce .question-nav-container,
    .tcf-exam-co .question-nav-container {
        height: calc(100vh - 200px);
        overflow-y: auto;
        padding: 10px;
    }
    
    .tcf-exam-ce .question-nav-container::-webkit-scrollbar {
        width: 6px;
    }
    
    .tcf-exam-ce .question-nav-container::-webkit-scrollbar-track {
        background: #f1f1f1;
        border-radius: 4px;
    }
    
    .tcf-exam-ce .question-nav-container::-webkit-scrollbar-thumb {
        background: #c1c1c1;
        border-radius: 4px;
    }
    
    .tcf-exam-ce .question-nav-container::-webkit-scrollbar-thumb:hover {
        background: #a1a1a1;
    }
    
    /* CO Tests - Scrollbar styles */
    .tcf-exam-co .question-nav-container::-webkit-scrollbar {
        width: 6px;
    }
    
    .tcf-exam-co .question-nav-container::-webkit-scrollbar-track {
        background: #f1f1f1;
        border-radius: 4px;
    }
    
    .tcf-exam-co .question-nav-container::-webkit-scrollbar-thumb {
        background: #c1c1c1;
        border-radius: 4px;
    }
    
    .tcf-exam-co .question-nav-container::-webkit-scrollbar-thumb:hover {
        background: #a1a1a1;
    }
    
    /* Question navigation grid in left sidebar */
    .tcf-exam-ce .question-nav-grid {
        display: flex;
        flex-direction: column;
        gap: 8px;
        margin-bottom: 20px;
        align-items: stretch;
    }
    
    .tcf-exam-ce .question-nav-grid .question-nav-btn {
        width: 100% !important;
        height: 40px !important;
        border: 2px solid #dee2e6;
        background: white;
        border-radius: 8px;
        font-weight: bold;
        transition: all 0.2s ease;
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 14px;
        color: #333;
        text-decoration: none;
        min-height: 40px;
    }
    
    .tcf-exam-ce .question-nav-grid .question-nav-btn:hover {
        border-color: #0d6efd;
        background: #e7f1ff;
        transform: translateY(-1px);
        text-decoration: none;
    }
    
    .tcf-exam-ce .question-nav-grid .question-nav-btn.current {
        background: #0d6efd;
        border-color: #0d6efd;
        color: white;
    }
    
    .tcf-exam-ce .question-nav-grid .question-nav-btn.answered {
        background: #d4edda;
        border-color: #198754;
        color: #0f5132;
    }
    
    .tcf-exam-ce .question-nav-grid .question-nav-btn.current.answered {
        background: #198754;
        border-color: #198754;
        color: white;
    }
    
    /* Question navigation grid for CO tests - Identical to CE with passed state */
    .tcf-exam-co .question-nav-grid {
        display: flex;
        flex-direction: column;
        gap: 8px;
        margin-bottom: 20px;
        align-items: stretch;
    }
    
    .tcf-exam-co .question-nav-grid .question-nav-btn {
        width: 100% !important;
        height: 40px !important;
        border: 2px solid #dee2e6;
        background: white;
        border-radius: 8px;
        font-weight: bold;
        transition: all 0.2s ease;
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 14px;
        color: #333;
        text-decoration: none;
        min-height: 40px;
    }
    
    .tcf-exam-co .question-nav-grid .question-nav-btn:hover {
        border-color: #0d6efd;
        background: #e7f1ff;
        transform: translateY(-1px);
        text-decoration: none;
    }
    
    .tcf-exam-co .question-nav-grid .question-nav-btn.current {
        background: #0d6efd;
        border-color: #0d6efd;
        color: white;
    }
    
    .tcf-exam-co .question-nav-grid .question-nav-btn.answered {
        background: #d4edda;
        border-color: #198754;
        color: #0f5132;
    }
    
    .tcf-exam-co .question-nav-grid .question-nav-btn.current.answered {
        background: #198754;
        border-color: #198754;
        color: white;
    }
    
    /* CO-specific: Passed questions - non-clickable and dimmed */
    .tcf-exam-co .question-nav-grid .question-nav-btn.passed {
        background: #f8f9fa !important;
        border-color: #dee2e6 !important;
        color: #6c757d !important;
        cursor: default !important;
        opacity: 0.6;
        pointer-events: none;
    }
    
    .tcf-exam-co .question-nav-grid .question-nav-btn.passed:hover {
        transform: none !important;
        background: #f8f9fa !important;
        border-color: #dee2e6 !important;
    }
    
    .tcf-exam-co .question-nav-grid .question-nav-btn.passed.answered {
        background: #e9ecef !important;
        border-color: #adb5bd !important;
        color: #495057 !important;
    }
    
    /* Hide/disable previous navigation buttons for CO tests */
    .tcf-exam-co #desktop-prev-question,
    .tcf-exam-co #mobile-prev-question {
        display: none !important;
    }

    /* Ensure CE test navigation buttons are visible on desktop */
    .tcf-exam-ce .d-none.d-md-block {
        display: block !important;
    }

    .tcf-exam-ce #desktop-prev-question,
    .tcf-exam-ce #desktop-next-question {
        display: inline-flex !important;
    }

    /* Main Content - Middle Column for both CE and CO tests */
    .tcf-exam-ce #tcf-test-screen .exam-main-content,
    .tcf-exam-co #tcf-test-screen .exam-main-content {
        flex: 1;
        min-width: 0;
        overflow: hidden;
    }
    
    .tcf-exam-ce .main-content-scrollable,
    .tcf-exam-co .main-content-scrollable {
        height: calc(100vh - 80px);
        overflow-y: auto;
        padding-right: 10px;
    }
    
    .tcf-exam-ce .main-content-scrollable::-webkit-scrollbar,
    .tcf-exam-co .main-content-scrollable::-webkit-scrollbar {
        width: 10px;
    }
    
    .tcf-exam-ce .main-content-scrollable::-webkit-scrollbar-track,
    .tcf-exam-co .main-content-scrollable::-webkit-scrollbar-track {
        background: #f1f1f1;
        border-radius: 5px;
    }
    
    .tcf-exam-ce .main-content-scrollable::-webkit-scrollbar-thumb,
    .tcf-exam-co .main-content-scrollable::-webkit-scrollbar-thumb {
        background: #c1c1c1;
        border-radius: 5px;
    }
    
    .tcf-exam-ce .main-content-scrollable::-webkit-scrollbar-thumb:hover,
    .tcf-exam-co .main-content-scrollable::-webkit-scrollbar-thumb:hover {
        background: #a1a1a1;
    }
    
    /* Right Sidebar - User Info for both CE and CO tests */
    .tcf-exam-ce #tcf-test-screen .exam-sidebar,
    .tcf-exam-co #tcf-test-screen .exam-sidebar {
        width: 280px;
        flex-shrink: 0;
    }
    
    .tcf-exam-ce .exam-sidebar .sidebar-content,
    .tcf-exam-co .exam-sidebar .sidebar-content {
        position: sticky;
        top: 20px;
        height: calc(100vh - 100px);
        overflow: hidden;
    }
    
    .tcf-exam-ce .student-info-scrollable,
    .tcf-exam-co .student-info-scrollable {
        height: calc(100vh - 250px);
        overflow-y: auto;
        padding-right: 10px;
    }
    
    .tcf-exam-ce .student-info-scrollable::-webkit-scrollbar,
    .tcf-exam-co .student-info-scrollable::-webkit-scrollbar {
        width: 6px;
    }
    
    .tcf-exam-ce .student-info-scrollable::-webkit-scrollbar-track,
    .tcf-exam-co .student-info-scrollable::-webkit-scrollbar-track {
        background: #f1f1f1;
        border-radius: 3px;
    }
    
    .tcf-exam-ce .student-info-scrollable::-webkit-scrollbar-thumb,
    .tcf-exam-co .student-info-scrollable::-webkit-scrollbar-thumb {
        background: #c1c1c1;
        border-radius: 3px;
    }
    
    /* Hide the original question navigation in main content for both CE and CO tests on desktop */
    .tcf-exam-ce .exam-main-content .question-navigation,
    .tcf-exam-co .exam-main-content .question-navigation {
        display: none !important;
    }
}

/* Responsive adjustments for smaller desktop screens */
@media (min-width: 992px) and (max-width: 1200px) {
    .tcf-exam-ce #tcf-test-screen .exam-left-sidebar,
    .tcf-exam-co #tcf-test-screen .exam-left-sidebar {
        width: 160px;
    }
    
    .tcf-exam-ce .question-nav-container,
    .tcf-exam-co .question-nav-container {
        padding: 8px;
    }
    
    .tcf-exam-ce .question-nav-grid .question-nav-btn,
    .tcf-exam-co .question-nav-grid .question-nav-btn {
        height: 35px !important;
        min-height: 35px;
        font-size: 13px;
    }
}

/* CO Question Container - Responsive for Images */
.tcf-exam-co .question-container {
    max-width: 100%;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    min-height: 0;
}

.tcf-exam-co .question-content {
    flex-shrink: 0;
    margin-bottom: 20px;
}

.tcf-exam-co .question-content img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 10px auto;
    object-fit: contain;
}

/* Ensure choices container fits properly in CO tests */
.tcf-exam-co #tcf-choices {
    max-height: none;
    overflow: visible;
    padding-bottom: 20px;
    flex: 1;
    min-height: 0;
    display: flex;
    flex-direction: column;
}

.tcf-exam-co .choice-item {
    margin-bottom: 12px;
    word-wrap: break-word;
    overflow-wrap: break-word;
    flex-shrink: 0;
}

/* Audio status styling for CO tests */
.tcf-exam-co #audio-status {
    margin-bottom: 20px;
    padding: 15px;
    background: #ffeaa7;
    border-radius: 8px;
    flex-shrink: 0;
}

/* Responsive viewport adjustments for CO tests */
@media (min-width: 768px) and (max-width: 991px) {
    .tcf-exam-co .main-content-scrollable {
        height: calc(100vh - 120px);
    }
    
    .tcf-exam-co .question-content img {
        max-height: 40vh;
        width: auto;
    }
}

@media (min-width: 576px) and (max-width: 767px) {
    .tcf-exam-co .question-content img {
        max-height: 35vh;
        width: auto;
    }
    
    .tcf-exam-co .choice-item {
        padding: 12px;
        font-size: 15px;
    }
}

@media (max-width: 575px) {
    .tcf-exam-co .question-content img {
        max-height: 30vh;
        width: auto;
    }
    
    .tcf-exam-co .choice-item {
        padding: 10px;
        font-size: 14px;
    }
}

/* Ensure mobile layout remains unchanged */
@media (max-width: 991px) {
    /* CRITICAL: Hide left sidebar on mobile - use multiple selectors for specificity */
    .tcf-exam-ce .exam-left-sidebar,
    .tcf-exam-co .exam-left-sidebar,
    .tcf-exam-ce #tcf-test-screen .exam-left-sidebar,
    .tcf-exam-co #tcf-test-screen .exam-left-sidebar,
    body.tcf-exam-ce .exam-left-sidebar,
    body.tcf-exam-co .exam-left-sidebar,
    .exam-left-sidebar {
        display: none !important;
        visibility: hidden !important;
        opacity: 0 !important;
    }

    .tcf-exam-ce #tcf-test-screen .exam-layout,
    .tcf-exam-co #tcf-test-screen .exam-layout {
        display: flex;
        flex-direction: column;
    }

    /* REMOVED: This was forcing question navigation to show on mobile
    .tcf-exam-ce .exam-main-content .question-navigation,
    .tcf-exam-co .exam-main-content .question-navigation {
        display: block !important;
    }
    */

    /* Ensure CE test mobile navigation buttons wrapper and buttons are visible */
    .tcf-exam-ce .d-block.d-md-none {
        display: block !important;
    }

    .tcf-exam-ce #mobile-prev-question,
    .tcf-exam-ce #mobile-next-question {
        display: inline-flex !important;
    }

    /* Mobile specific CO improvements */
    .tcf-exam-co .question-container {
        padding: 15px;
    }
    
    .tcf-exam-co #tcf-choices {
        padding: 10px;
    }
}

/* Prevent duplicate submit buttons */
.tcf-submit-btn:not(:first-of-type),
#manual-submit-test:not(:first-of-type) {
    display: none !important;
}

@media print {
    .tcf-header,
    .bottom-navigation,
    .mobile-sidebar-toggle,
    #restart-test,
    #print-results,
    .review-audio,
    .tcf-comments-wrapper {
        display: none !important;
    }
    
    .tcf-container {
        padding: 20px !important;
    }
    
    .review-question {
        page-break-inside: avoid;
    }
    
    .score-card {
        text-align: center;
        margin-bottom: 30px;
    }
    
    #score-counter {
        font-size: 2rem !important;
    }
    .level-indicator, .nclc-level-indicator {
        font-size: 1.5rem !important;
    }
}

/* Mobile Bottom Navigation Progress Indicator */
.bottom-navigation .progress-indicator {
    font-size: 16px;
    font-weight: bold;
    color: #007bff;
    margin-bottom: 2px;
}

.bottom-navigation .nav-button .progress-indicator {
    line-height: 1.2;
}

/* WordPress comment styling */
.tcf-comments-wrapper .commentlist {
    list-style: none;
    padding: 0;
}
.tcf-comments-wrapper .comment-body {
    border: 1px solid #eee;
    padding: 15px;
    margin-bottom: 15px;
    border-radius: 4px;
}
.tcf-comments-wrapper .comment-author img {
    border-radius: 50%;
    margin-right: 10px;
}
.tcf-comments-wrapper .reply a {
    font-size: 0.9em;
}
.tcf-comments-wrapper #commentform input[type="text"],
.tcf-comments-wrapper #commentform input[type="email"],
.tcf-comments-wrapper #commentform input[type="url"],
.tcf-comments-wrapper #commentform textarea {
    width: 100%;
    padding: 10px;
    margin-bottom: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
}
.tcf-comments-wrapper #commentform .form-submit input[type="submit"] {
    background-color: var(--tcf-primary, #007bff);
    color: white;
    padding: 10px 15px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}
.tcf-comments-wrapper #commentform .form-submit input[type="submit"]:hover {
    background-color: var(--tcf-secondary, #0056b3);
}

/* CO Question Content Media Styling */
.tcf-exam-co .question-text img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 15px auto;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.tcf-exam-co .question-text figure {
    margin: 15px 0;
    text-align: center;
}

.tcf-exam-co .question-text figcaption {
    font-style: italic;
    color: #6c757d;
    font-size: 0.9em;
    margin-top: 8px;
}

/* Ensure media content doesn't break responsive layout */
.tcf-exam-co .question-text {
    word-wrap: break-word;
    overflow-wrap: break-word;
}

/* Media queries for mobile responsiveness */
@media (max-width: 768px) {
    .tcf-exam-co .question-text img {
        margin: 10px auto;
        border-radius: 4px;
    }

    .tcf-exam-co .question-text figure {
        margin: 10px 0;
    }
}

/* ===== Minimal Mode Selection Styles ===== */

.tcf-mode-selection-wrapper {
    background: #ffffff;
    padding: 50px 40px;
    border-radius: 16px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
    position: relative;
    overflow: visible;
    border: 1px solid #e5e7eb;
    max-width: 900px;
    margin: 0 auto;
}

.tcf-mode-title {
    color: #111827;
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 8px;
    text-align: center;
    letter-spacing: -0.5px;
}

.tcf-mode-title i {
    color: #6b7280;
    font-size: 24px;
    margin-right: 12px;
}

.tcf-mode-subtitle {
    color: #6b7280;
    font-size: 15px;
    text-align: center;
    margin-bottom: 40px;
    font-weight: 400;
}

.tcf-mode-cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.tcf-mode-card {
    position: relative;
}

.tcf-mode-card input[type="radio"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.tcf-mode-card label {
    display: block;
    background: #fafafa;
    border-radius: 12px;
    padding: 32px 28px;
    cursor: pointer;
    transition: all 0.2s ease;
    border: 2px solid #e5e7eb;
    height: 100%;
    position: relative;
}

.tcf-mode-card label:hover {
    border-color: #d1d5db;
    background: #ffffff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.tcf-mode-card input:checked + label {
    border-color: #3b82f6;
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.tcf-mode-card:nth-child(2) input:checked + label {
    border-color: #10b981;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1);
}

.tcf-mode-icon {
    width: 56px;
    height: 56px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 24px;
    transition: all 0.2s ease;
    background: #f3f4f6;
    border: 1px solid #e5e7eb;
}

.tcf-mode-test-icon {
    color: #3b82f6;
}

.tcf-mode-practice-icon {
    color: #10b981;
}

.tcf-mode-card label:hover .tcf-mode-icon {
    background: #ffffff;
}

.tcf-mode-card:first-child input:checked + label .tcf-mode-icon {
    background: #eff6ff;
    border-color: #3b82f6;
    color: #3b82f6;
}

.tcf-mode-card:nth-child(2) input:checked + label .tcf-mode-icon {
    background: #f0fdf4;
    border-color: #10b981;
    color: #10b981;
}

.tcf-mode-content {
    text-align: center;
}

.tcf-mode-name {
    font-size: 20px;
    font-weight: 600;
    color: #111827;
    margin-bottom: 8px;
    letter-spacing: -0.3px;
}

.tcf-mode-badge {
    display: inline-block;
    background: #f3f4f6;
    color: #6b7280;
    padding: 4px 12px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 500;
    margin-bottom: 20px;
    text-transform: capitalize;
    letter-spacing: 0;
}

.tcf-mode-card:first-child input:checked + label .tcf-mode-badge {
    background: #dbeafe;
    color: #1e40af;
}

.tcf-mode-card:nth-child(2) input:checked + label .tcf-mode-badge {
    background: #d1fae5;
    color: #065f46;
}

.tcf-mode-features {
    list-style: none;
    padding: 0;
    margin: 24px 0 0 0;
    text-align: left;
}

.tcf-mode-features li {
    padding: 10px 0;
    color: #4b5563;
    font-size: 14px;
    font-weight: 400;
    display: flex;
    align-items: center;
    gap: 10px;
}

.tcf-mode-features li i {
    color: #9ca3af;
    font-size: 14px;
    flex-shrink: 0;
    width: 16px;
    text-align: center;
}

.tcf-mode-card:first-child input:checked + label .tcf-mode-features li i {
    color: #3b82f6;
}

.tcf-mode-card:nth-child(2) input:checked + label .tcf-mode-features li i {
    color: #10b981;
}

.tcf-mode-recommended {
    position: absolute;
    top: 16px;
    right: 16px;
    background: #fef3c7;
    color: #92400e;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 600;
    text-transform: capitalize;
    border: 1px solid #fde68a;
}

.tcf-mode-card:first-child .tcf-mode-recommended {
    background: #dbeafe;
    color: #1e40af;
    border-color: #bfdbfe;
}

.tcf-mode-card:nth-child(2) .tcf-mode-recommended {
    background: #d1fae5;
    color: #065f46;
    border-color: #a7f3d0;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .tcf-mode-selection-wrapper {
        padding: 32px 20px;
        border-radius: 12px;
    }

    .tcf-mode-title {
        font-size: 24px;
    }

    .tcf-mode-subtitle {
        font-size: 14px;
        margin-bottom: 30px;
    }

    .tcf-mode-cards {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .tcf-mode-card label {
        padding: 28px 24px;
    }

    .tcf-mode-icon {
        width: 48px;
        height: 48px;
        font-size: 20px;
        margin-bottom: 16px;
    }

    .tcf-mode-name {
        font-size: 18px;
    }

    .tcf-mode-badge {
        font-size: 11px;
    }

    .tcf-mode-features li {
        font-size: 13px;
        padding: 8px 0;
    }

    .tcf-mode-recommended {
        top: 12px;
        right: 12px;
        font-size: 10px;
        padding: 3px 8px;
    }
}

/* Audio replay button (practice mode only) */
.audio-replay-btn {
    display: inline-block;
    margin: 10px 0;
    padding: 10px 20px;
    background: #28a745;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.audio-replay-btn:hover {
    background: #218838;
    transform: scale(1.05);
}

.audio-replay-btn:disabled {
    background: #6c757d;
    cursor: not-allowed;
    transform: none;
}

.audio-replay-btn i {
    margin-right: 8px;
}

/* Hide replay button in test mode */
.exam-mode-test .audio-replay-btn {
    display: none !important;
}

/* Responsive mode selection */
@media (max-width: 576px) {
    .test-mode-selection label {
        padding: 12px;
    }

    .test-mode-selection .fa-trophy,
    .test-mode-selection .fa-graduation-cap {
        font-size: 1.5rem;
    }

    .test-mode-selection h6 {
        font-size: 0.95rem;
    }

    .test-mode-selection small {
        font-size: 0.75rem;
    }
}