/* Updated: 2026-07-30 15:50:00 - Hide page titles completely */
/* Challenge Page Specific Styles */

/* HIDE page titles completely on ALL pages - FORCED */
h1.sr-only,
.sr-only,
.entry-title,
.page-title,
.entry-header h1,
article > header h1,
main h1.sr-only {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

/* Hide header containers but not the title itself - ALL pages */
.entry-header,
article > header {
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
    background: none !important;
}

/* Remove any top borders/lines before banner - ALL pages */
#main-content {
    padding-top: 0;
    margin-top: 0;
    border-top: none;
}

.banner-section {
    margin-top: 0;
    border-top: none;
}

/* Timer Section */
.timer-section {
    background-color: #e8f4f8;
    border-left: 4px solid #005EB8;
    padding: 1rem 2rem;
    margin: 2rem;
    border-radius: 6px;
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.status-badge {
    display: inline-block;
    background-color: #28a745;
    color: white;
    padding: 0.3rem 0.9rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 600;
}

.status-badge.closed {
    background-color: #dc3545;
}

#timerText {
    font-size: 1rem;
    font-weight: 500;
    color: #1e1e1e;
    display: block;
    word-wrap: break-word;
    margin: 0;
}

#countdown {
    font-weight: 600;
    color: #005EB8;
}

/* Timer Content Wrapper - for semantic class structure */
.timer-content-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.timer-info-group {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

/* View Performance Button */
.view-performance-btn {
    background-color: #fff;
    color: #005EB8;
    border: 2px solid #005EB8;
    padding: 0.6rem 1.2rem;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.3s ease;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}

.view-performance-btn:hover {
    background-color: #005EB8;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 94, 184, 0.3);
}

/* No Challenges Message */
.no-challenges-message {
    text-align: center;
    padding: 3rem;
    background-color: #e8f4f8;
    border-radius: 8px;
    margin: 2rem;
    border-left: 4px solid #005EB8;
}

.no-challenges-message h3 {
    color: #005EB8;
    margin-bottom: 1rem;
    font-size: 1.75rem;
}

.no-challenges-message p {
    font-size: 1.1rem;
    color: #495057;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.no-challenges-message a {
    display: inline-block;
    background-color: #005EB8;
    color: white;
    padding: 0.8rem 2rem;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 600;
    transition: background-color 0.3s;
}

.no-challenges-message a:hover {
    background-color: #004F9F;
}


/* Challenge Content */
.challenge-content {
    padding: 2rem;
    overflow-x: hidden;
}

.challenge-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.challenge-left {
    display: flex;
    flex-direction: column;
}

.challenge-right {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.challenge-content h2 {
    color: #005EB8;
    margin-bottom: 1.5rem;
    font-size: 1.75rem;
    font-weight: 600;
    letter-spacing: -0.5px;
}

.image-container {
    margin-bottom: 1rem;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    border: 1px solid #e9ecef;
}

.image-container img {
    width: 100%;
    height: auto;
    display: block;
}

.image-title {
    font-size: 0.95rem;
    font-weight: 400;
    color: #6c757d;
    margin: 0;
    line-height: 1.5;
    font-style: italic;
}

.image-description {
    line-height: 1.8;
}

.image-description p {
    margin-bottom: 1rem;
    text-align: justify;
    color: #1e1e1e;
}

/* Quiz Section */
.quiz-section {
    background-color: #ffffff;
    padding: 2rem;
    border-radius: 8px;
    margin-top: 3rem;
    border: 1px solid #dee2e6;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.quiz-section h3 {
    color: #005EB8;
    margin-bottom: 1rem;
    font-weight: 600;
}

.question {
    font-size: 1.15rem;
    font-weight: 500;
    margin-bottom: 1.5rem;
    color: #212529;
}

.answer-option {
    margin-bottom: 1rem;
}

.answer-option input[type="radio"] {
    display: none;
}

.answer-option label {
    display: flex;
    align-items: center;
    padding: 1rem;
    background-color: white;
    border: 2px solid #dee2e6;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s;
    min-height: 44px;
    word-break: break-word;
}

.answer-option label:hover {
    border-color: #005EB8;
    background-color: #f0f7fc;
}

.answer-option input[type="radio"]:focus + label {
    outline: 3px solid #005EB8;
    outline-offset: 2px;
}

.answer-option input[type="radio"]:checked + label {
    border-color: #005EB8;
    background-color: #e8f4f8;
}

.option-letter {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background-color: #005EB8;
    color: white;
    border-radius: 50%;
    font-weight: 600;
    margin-right: 1rem;
    flex-shrink: 0;
}

.answer-option input[type="radio"]:checked + label .option-letter {
    background-color: #004F9F;
}

.option-text {
    flex: 1;
}

.submit-btn {
    background-color: #005EB8;
    color: white;
    border: none;
    padding: 1rem 3rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 6px;
    cursor: pointer;
    margin-top: 1.5rem;
    transition: background-color 0.2s, box-shadow 0.2s;
    min-height: 44px;
}

.submit-btn:hover {
    background-color: #004F9F;
    box-shadow: 0 4px 12px rgba(0, 94, 184, 0.3);
}

.submit-btn:active {
    transform: translateY(0);
}

/* Answer Section */
.answer-section {
    background-color: #d4edda;
    border-left: 4px solid #28a745;
    padding: 2rem;
    border-radius: 8px;
    margin-top: 3rem;
}

.answer-section h3 {
    color: #155724;
    margin-bottom: 1rem;
    font-weight: 600;
}

.correct-answer {
    background-color: white;
    padding: 1rem;
    border-radius: 4px;
    margin-bottom: 1.5rem;
}

.correct-answer p {
    color: #28a745;
    font-size: 1.15rem;
    font-weight: 600;
}

.explanation h4 {
    color: #155724;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.explanation p {
    margin-bottom: 1rem;
    line-height: 1.8;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    animation: fadeIn 0.3s;
}

.modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background-color: white;
    padding: 2rem;
    border-radius: 8px;
    max-width: 500px;
    width: 90%;
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
    animation: slideDown 0.3s;
}

.modal-content h2 {
    color: #005EB8;
    margin-bottom: 1rem;
    font-weight: 600;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: #495057;
}

.form-group input {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid #dee2e6;
    border-radius: 4px;
    font-size: 1rem;
    transition: border-color 0.3s;
}

.form-group input:focus {
    outline: none;
    border-color: #005EB8;
}

.form-actions {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
    margin-top: 2rem;
}

.cancel-btn, .confirm-btn {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.cancel-btn {
    background-color: #6c757d;
    color: white;
}

.cancel-btn:hover {
    background-color: #5a6268;
}

.confirm-btn {
    background-color: #005EB8;
    color: white;
}

.confirm-btn:hover {
    background-color: #004F9F;
    box-shadow: 0 4px 12px rgba(0, 94, 184, 0.3);
}

/* Success Message */
.success-message {
    display: none;
    position: fixed;
    z-index: 1001;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    animation: fadeIn 0.3s;
}

.success-message.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.success-content {
    background-color: white;
    padding: 3rem;
    border-radius: 8px;
    text-align: center;
    max-width: 400px;
    width: 90%;
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}

/* ==========================================
   ADMIN FORM FIELD CONFIGURATOR STYLES
   ========================================== */

.admin-form-config-section {
    background-color: #f8f9fa;
    border: 2px solid #005EB8;
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.admin-config-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.admin-config-header h3 {
    margin: 0;
    color: #005EB8;
    font-size: 1.2rem;
}

.toggle-config-btn {
    background-color: #005EB8;
    color: white;
    border: none;
    padding: 0.5rem 1.2rem;
    border-radius: 5px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: background-color 0.3s;
}

.toggle-config-btn:hover {
    background-color: #004F9F;
}

.admin-config-content {
    margin-top: 1rem;
}

.config-instructions {
    background-color: white;
    padding: 1rem;
    border-left: 4px solid #4CAF50;
    margin-bottom: 1.5rem;
    border-radius: 4px;
}

.config-instructions p {
    margin: 0;
    color: #333;
    font-size: 0.95rem;
}

.field-list-container {
    background-color: white;
    padding: 1.5rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
}

.field-list-container h4 {
    margin-top: 0;
    color: #333;
    font-size: 1.1rem;
    margin-bottom: 1rem;
}

.fields-list {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.field-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background-color: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    transition: box-shadow 0.3s;
}

.field-item:hover {
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.field-info {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    flex: 1;
}

.field-label {
    font-size: 1rem;
    color: #333;
}

.field-type {
    font-size: 0.85rem;
    color: #6c757d;
    font-style: italic;
}

.required-badge {
    background-color: #dc3545;
    color: white;
    padding: 0.2rem 0.6rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: bold;
}

.optional-badge {
    background-color: #6c757d;
    color: white;
    padding: 0.2rem 0.6rem;
    border-radius: 4px;
    font-size: 0.75rem;
}

.field-actions {
    display: flex;
    gap: 0.5rem;
}

.move-btn, .edit-btn, .delete-btn {
    background-color: #6c757d;
    color: white;
    border: none;
    padding: 0.4rem 0.8rem;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.85rem;
    transition: background-color 0.3s;
}

.move-btn:hover {
    background-color: #5a6268;
}

.edit-btn {
    background-color: #ffc107;
}

.edit-btn:hover {
    background-color: #e0a800;
}

.delete-btn {
    background-color: #dc3545;
}

.delete-btn:hover {
    background-color: #c82333;
}

.no-fields-msg {
    text-align: center;
    color: #6c757d;
    font-style: italic;
    padding: 2rem;
}

.add-field-container {
    background-color: white;
    padding: 1.5rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
}

.add-field-container h4 {
    margin-top: 0;
    color: #333;
    font-size: 1.1rem;
    margin-bottom: 1rem;
}

.add-field-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.add-field-btn {
    background-color: #28a745;
    color: white;
    border: none;
    padding: 0.8rem 1.5rem;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: bold;
    transition: background-color 0.3s;
    margin-top: 0.5rem;
}

.add-field-btn:hover {
    background-color: #218838;
    box-shadow: 0 4px 12px rgba(40, 167, 69, 0.3);
}

.config-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.save-config-btn, .reset-config-btn, .preview-config-btn {
    padding: 0.8rem 1.8rem;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: bold;
    transition: all 0.3s;
}

.save-config-btn {
    background-color: #007bff;
    color: white;
}

.save-config-btn:hover {
    background-color: #0056b3;
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.3);
}

.reset-config-btn {
    background-color: #dc3545;
    color: white;
}

.reset-config-btn:hover {
    background-color: #c82333;
    box-shadow: 0 4px 12px rgba(220, 53, 69, 0.3);
}

.preview-config-btn {
    background-color: #17a2b8;
    color: white;
}

.preview-config-btn:hover {
    background-color: #138496;
    box-shadow: 0 4px 12px rgba(23, 162, 184, 0.3);
}

/* Checkbox group styling for dynamic form */
.checkbox-group {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.checkbox-group input[type="checkbox"] {
    width: auto;
    margin: 0;
}

.checkbox-group label {
    margin-bottom: 0;
}

/* Responsive styles for admin configurator */
@media (max-width: 768px) {
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .field-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .field-actions {
        width: 100%;
        justify-content: flex-end;
    }
    
    .config-actions {
        flex-direction: column;
    }
    
    .save-config-btn, .reset-config-btn, .preview-config-btn {
        width: 100%;
    }
}

.success-icon {
    width: 80px;
    height: 80px;
    background-color: #28a745;
    color: white;
    font-size: 3rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
}

.success-content h3 {
    color: #28a745;
    margin-bottom: 1rem;
    font-weight: 600;
}

.success-content button {
    background-color: #005EB8;
    color: white;
    border: none;
    padding: 0.75rem 2rem;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    margin-top: 1rem;
    transition: background-color 0.2s;
}

.success-content button:hover {
    background-color: #004F9F;
}

/* ==========================================
   PERFORMANCE SCORECARD MODAL STYLES
   ========================================== */

/* Performance Modal */
.performance-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.75);
    z-index: 10000;
    overflow-y: auto;
    padding: 2rem 0;
}

.performance-modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease-in-out;
}

.performance-content {
    background: white;
    border-radius: 12px;
    width: 90%;
    max-width: 1000px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    margin: auto;
    animation: slideUp 0.3s ease-out;
}

.performance-header {
    background: linear-gradient(135deg, #005EB8 0%, #004F9F 100%);
    color: white;
    padding: 1.5rem 2rem;
    border-radius: 12px 12px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.performance-header h2 {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 600;
    color: white;
}

.close-modal-btn {
    background: transparent;
    border: 2px solid white;
    color: white;
    font-size: 1.5rem;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    line-height: 1;
}

.close-modal-btn:hover {
    background: white;
    color: #005EB8;
    transform: rotate(90deg);
}

.performance-body {
    padding: 2rem;
    max-height: 70vh;
    overflow-y: auto;
}

/* User Info Section */
.user-info-section {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 8px;
    margin-bottom: 2rem;
    border-left: 4px solid #005EB8;
}

.user-info-section p {
    margin: 0.5rem 0;
    font-size: 1rem;
    color: #333;
}

.user-info-section strong {
    color: #005EB8;
}

/* Summary Statistics */
.summary-stats {
    margin-bottom: 2rem;
}

.summary-stats h3 {
    color: #005EB8;
    margin-bottom: 1rem;
    font-size: 1.2rem;
    font-weight: 600;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
}

.stat-card {
    background: linear-gradient(135deg, #005EB8 0%, #0077CC 100%);
    color: white;
    padding: 1.5rem;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0, 94, 184, 0.2);
    transition: transform 0.3s;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 16px rgba(0, 94, 184, 0.3);
}

.stat-value {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 0.95rem;
    opacity: 0.9;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Performance Table Section */
.performance-table-section {
    margin-bottom: 1rem;
}

.performance-table-section h3 {
    color: #005EB8;
    margin-bottom: 1rem;
    font-size: 1.2rem;
    font-weight: 600;
}

.table-responsive {
    overflow-x: auto;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.performance-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
}

.performance-table thead {
    background: #005EB8;
    color: white;
}

.performance-table th {
    padding: 1rem;
    text-align: left;
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.performance-table tbody tr {
    border-bottom: 1px solid #e9ecef;
    transition: background-color 0.2s;
}

.performance-table tbody tr:hover {
    background-color: #f8f9fa;
}

.performance-table tbody tr:last-child {
    border-bottom: none;
}

.performance-table td {
    padding: 1rem;
    color: #333;
    font-size: 0.9rem;
}

.performance-table .answer-badge {
    display: inline-block;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.85rem;
}

.performance-table .result-correct {
    color: #28a745;
    font-weight: 600;
}

.performance-table .result-incorrect {
    color: #dc3545;
    font-weight: 600;
}

.performance-footer {
    padding: 1.5rem 2rem;
    border-top: 1px solid #e9ecef;
    text-align: center;
    background: #f8f9fa;
    border-radius: 0 0 12px 12px;
}

.performance-footer .btn-primary {
    background-color: #005EB8;
    color: white;
    border: none;
    padding: 0.75rem 2.5rem;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.performance-footer .btn-primary:hover {
    background-color: #004F9F;
    box-shadow: 0 4px 12px rgba(0, 94, 184, 0.3);
}

/* Loading Spinner */
.loading-spinner {
    border: 4px solid #f3f3f3;
    border-top: 4px solid #005EB8;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin: 0 auto 1rem;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* ==========================================
   EXPLANATION MODAL STYLES
   ========================================== */

/* Explanation Modal */
.explanation-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.75);
    z-index: 10001;
    overflow-y: auto;
    padding: 2rem 0;
}

.explanation-modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease-in-out;
}

.explanation-content {
    background: white;
    border-radius: 12px;
    width: 90%;
    max-width: 700px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    margin: auto;
    animation: slideUp 0.3s ease-out;
}

.explanation-header {
    background: linear-gradient(135deg, #005EB8 0%, #004F9F 100%);
    color: white;
    padding: 1.5rem 2rem;
    border-radius: 12px 12px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.explanation-header h3 {
    margin: 0;
    font-size: 1.3rem;
    font-weight: 600;
    color: white;
}

.close-explanation-btn {
    background: transparent;
    border: 2px solid white;
    color: white;
    font-size: 1.5rem;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    line-height: 1;
}

.close-explanation-btn:hover {
    background: white;
    color: #005EB8;
    transform: rotate(90deg);
}

.explanation-body {
    padding: 2rem;
}

.explanation-text h4 {
    color: #005EB8;
    margin-bottom: 0.75rem;
    font-size: 1.1rem;
}

.explanation-text p {
    line-height: 1.8;
    color: #333;
    margin-bottom: 1rem;
}

.explanation-footer {
    padding: 1.5rem 2rem;
    border-top: 1px solid #e9ecef;
    text-align: center;
    background: #f8f9fa;
    border-radius: 0 0 12px 12px;
}

.explanation-footer .btn-primary {
    background-color: #005EB8;
    color: white;
    border: none;
    padding: 0.75rem 2.5rem;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.explanation-footer .btn-primary:hover {
    background-color: #004F9F;
    box-shadow: 0 4px 12px rgba(0, 94, 184, 0.3);
}

.answer-badge {
    display: inline-block;
    background: #005EB8;
    color: white;
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-weight: 600;
    font-size: 1rem;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        transform: translateY(30px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .challenge-layout {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .challenge-content {
        padding: 1rem;
    }

    .challenge-content h2 {
        font-size: 1.4rem;
    }

    .quiz-section {
        padding: 1rem;
    }

    .submit-btn {
        width: 100%;
    }

    .form-actions {
        flex-direction: column;
    }

    .cancel-btn, .confirm-btn {
        width: 100%;
    }

    .timer-section {
        flex-direction: column;
        gap: 1rem;
        padding: 1rem 1.5rem;
        margin: 1rem;
        align-items: flex-start;
    }

    .challenge-title-section {
        margin: 0 1rem !important;
    }

    #timerSection > div,
    .timer-section > div {
        display: flex !important;
        flex-direction: column !important;
        align-items: flex-start !important;
        justify-content: flex-start !important;
        gap: 1rem !important;
        width: 100% !important;
    }

    #timerSection > div > div,
    .timer-section > div > div {
        display: flex !important;
        flex-direction: column !important;
        align-items: flex-start !important;
        justify-content: flex-start !important;
        gap: 0.5rem !important;
        width: 100% !important;
    }

    #timerSection > div > button,
    .timer-section > div > button {
        width: 100% !important;
        margin-top: 0.5rem !important;
        max-width: 100% !important;
    }

    .view-performance-btn {
        padding: 0.75rem 1rem;
        font-size: 0.85rem;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box;
        text-align: center;
        margin-top: 0.5rem;
        margin-left: 0;
        margin-right: 0;
    }

    .answer-option label {
        padding: 0.875rem;
        flex-wrap: wrap;
    }

    .option-letter {
        width: 32px;
        height: 32px;
        font-size: 0.9rem;
    }

    .option-text {
        word-break: break-word;
    }

    /* Performance Modal Responsive */
    .performance-content {
        width: 95%;
        max-height: 95vh;
    }

    .performance-header {
        padding: 1.25rem 1.5rem;
    }

    .performance-header h2 {
        font-size: 1.2rem;
    }

    .performance-body {
        padding: 1.5rem;
        max-height: 60vh;
    }

    .stats-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .performance-table th,
    .performance-table td {
        padding: 0.75rem;
        font-size: 0.85rem;
    }

    .performance-footer {
        padding: 1rem 1.5rem;
    }

    /* Explanation Modal Responsive */
    .explanation-content {
        width: 95%;
    }

    .explanation-header {
        padding: 1.25rem 1.5rem;
    }

    .explanation-header h3 {
        font-size: 1.1rem;
    }

    .explanation-body {
        padding: 1.5rem;
    }
}

@media (max-width: 576px) {
    .challenge-content {
        padding: 0.75rem;
    }

    .challenge-content h2 {
        font-size: clamp(1.25rem, 4vw, 1.75rem);
    }

    .quiz-section {
        padding: 0.875rem;
        margin-top: 2rem;
    }

    .question {
        font-size: clamp(1rem, 3vw, 1.15rem);
    }

    .submit-btn {
        padding: 0.875rem 2rem;
    }

    .image-container {
        margin-bottom: 0.75rem;
    }
}

@media (max-width: 480px) {
    .challenge-content {
        padding: 0.75rem;
        overflow-x: hidden;
    }

    .challenge-layout {
        gap: 1.5rem;
        overflow-x: hidden;
    }

    .timer-section {
        padding: 0.875rem 1rem;
        margin: 0.75rem;
        font-size: 0.9rem;
        gap: 0.75rem;
        flex-direction: column;
        align-items: flex-start;
    }

    .challenge-title-section {
        margin: 0 0.75rem !important;
    }

    #timerSection > div,
    .timer-section > div {
        display: flex !important;
        flex-direction: column !important;
        align-items: flex-start !important;
        justify-content: flex-start !important;
        gap: 0.75rem !important;
        width: 100% !important;
    }

    #timerSection > div > div,
    .timer-section > div > div {
        display: flex !important;
        flex-direction: column !important;
        align-items: flex-start !important;
        justify-content: flex-start !important;
        gap: 0.5rem !important;
        width: 100% !important;
    }

    #timerSection > div > button,
    .timer-section > div > button {
        width: 100% !important;
        margin-top: 0.5rem !important;
        max-width: 100% !important;
    }

    .status-badge {
        font-size: 0.75rem;
        padding: 0.25rem 0.65rem;
    }

    #timerText {
        font-size: 0.875rem;
        display: block;
        margin-top: 0.5rem;
    }

    .view-performance-btn {
        padding: 0.7rem 0.875rem;
        font-size: 0.8rem;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box;
        margin-left: 0;
        margin-right: 0;
    }

    .quiz-section {
        padding: 0.75rem;
    }

    .answer-option {
        margin-bottom: 0.75rem;
    }

    .answer-option label {
        padding: 0.75rem;
    }

    .option-letter {
        width: 28px;
        height: 28px;
        font-size: 0.85rem;
        margin-right: 0.75rem;
    }

    .submit-btn {
        padding: 0.875rem 1.5rem;
        font-size: 0.95rem;
    }

    /* Performance Modal Mobile */
    .performance-header {
        padding: 1rem;
    }

    .performance-header h2 {
        font-size: 1rem;
    }

    .close-modal-btn {
        width: 35px;
        height: 35px;
        font-size: 1.3rem;
    }

    .performance-body {
        padding: 1rem;
        max-height: 55vh;
    }

    .user-info-section {
        padding: 1rem;
        font-size: 0.9rem;
    }

    .stat-card {
        padding: 1rem;
    }

    .stat-value {
        font-size: 2rem;
    }

    .stat-label {
        font-size: 0.85rem;
    }

    .performance-table {
        font-size: 0.8rem;
    }

    .performance-table th,
    .performance-table td {
        padding: 0.5rem;
    }

    .performance-footer {
        padding: 1rem;
    }

    .performance-footer .btn-primary {
        padding: 0.7rem 2rem;
        font-size: 0.95rem;
    }

    /* Explanation Modal Mobile */
    .explanation-header {
        padding: 1rem;
    }

    .explanation-header h3 {
        font-size: 1rem;
    }

    .close-explanation-btn {
        width: 35px;
        height: 35px;
        font-size: 1.3rem;
    }

    .explanation-body {
        padding: 1rem;
    }

    .explanation-text h4 {
        font-size: 1rem;
    }

    .explanation-text p {
        font-size: 0.9rem;
    }

    .explanation-footer {
        padding: 1rem;
    }

    .explanation-footer .btn-primary {
        padding: 0.7rem 2rem;
        font-size: 0.95rem;
    }

    .answer-badge {
        padding: 0.3rem 0.75rem;
        font-size: 0.9rem;
    }
}

/* New class added for accessibility 
.sr-only
{
  visibility: hidden;
  width:1px;
  height:1px;
}
*/

 