/* Modern ServiceNow Exam Taker Styles */
@import url("https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap");

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #2563eb;
    --primary-dark: #1d4ed8;
    --primary-light: #dbeafe;
    --secondary-color: #64748b;
    --success-color: #059669;
    --warning-color: #d97706;
    --danger-color: #dc2626;
    --dark-color: #0f172a;
    --light-color: #f8fafc;
    --bg-color: #ffffff;
    --bg-secondary: #f1f5f9;
    --border-color: #e2e8f0;
    --text-primary: #0f172a;
    --text-secondary: #64748b;
    --text-muted: #94a3b8;
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1),
        0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1),
        0 4px 6px -4px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1),
        0 8px 10px -6px rgb(0 0 0 / 0.1);
    --border-radius: 8px;
    --border-radius-sm: 6px;
    --border-radius-lg: 12px;
}

body {
    font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
        Oxygen, Ubuntu, Cantarell, sans-serif;
    background: var(--bg-secondary);
    min-height: 100vh;
    color: var(--text-primary);
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 24px;
}

/* Clean Header */
header {
    text-align: center;
    margin-bottom: 48px;
    background: var(--bg-color);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-sm);
    padding: 32px;
}

.clickable-title {
    color: var(--text-primary);
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-block;
    text-decoration: none;
    border-radius: var(--border-radius);
    padding: 12px 24px;
}

.clickable-title:hover {
    color: var(--primary-color);
    transform: translateY(-1px);
}

.icon-home::before {
    display: none;
}

/* Wrong Answers Review Section */
.main-menu {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.menu-actions {
    text-align: center;
}

#wrong-answers-screen {
    padding: 40px;
}

.wrong-answers-content {
    max-width: 900px;
    margin: 0 auto;
}

.wrong-answers-header {
    margin-bottom: 30px;
    text-align: center;
}

.wrong-answers-header p {
    color: #666;
    margin-bottom: 20px;
    line-height: 1.6;
}

.wrong-answers-stats {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
}

#wrong-answers-count {
    font-weight: 600;
    color: #495057;
}

.wrong-answers-list {
    margin-bottom: 30px;
}

.no-wrong-answers {
    text-align: center;
    color: #6c757d;
    font-style: italic;
    padding: 40px;
    background: #f8f9fa;
    border-radius: 8px;
}

.wrong-answer-item {
    background: #fff;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    margin-bottom: 20px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.wrong-answer-header {
    background: #dc3545;
    color: white;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.wrong-answer-subject {
    font-weight: 600;
    font-size: 1.1rem;
}

.wrong-answer-body {
    padding: 20px;
}

.wrong-answer-question {
    font-weight: 600;
    margin-bottom: 15px;
    color: #333;
    line-height: 1.5;
}

.wrong-answer-details {
    display: grid;
    gap: 12px;
}

.answer-row {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 10px;
    align-items: flex-start;
}

.answer-label {
    font-weight: 600;
    color: #495057;
    min-width: 120px;
}

.user-answer {
    color: #dc3545;
}

.correct-answer {
    color: #28a745;
}

.explanation-text {
    color: #6c757d;
    line-height: 1.5;
}

.remove-wrong-btn {
    background: #28a745;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: background-color 0.2s;
}

.remove-wrong-btn:hover {
    background: #218838;
}

.btn-danger {
    background: #dc3545;
    color: white;
}

.btn-danger:hover {
    background: #c82333;
}

/* Responsive adjustments for wrong answers */
@media (max-width: 768px) {
    .wrong-answers-stats {
        flex-direction: column;
        gap: 15px;
    }

    .wrong-answer-header {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }

    .answer-row {
        grid-template-columns: 1fr;
        gap: 5px;
    }

    .answer-label {
        min-width: auto;
        font-size: 0.9rem;
    }
}

/* Wrong Answers Review Section - Additional Styles */

/* Screen Management */
.screen {
    display: none;
    background: var(--bg-color);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    border: 1px solid var(--border-color);
}

.screen.active {
    display: block;
    animation: fadeIn 0.3s ease-out;
}

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

/* Subject Selection */
#subject-selection {
    padding: 32px;
}

#subject-selection h2 {
    text-align: center;
    margin-bottom: 32px;
    font-size: 1.75rem;
    font-weight: 600;
    color: var(--text-primary);
    position: relative;
}

#subject-selection h2::after {
    content: "";
    position: absolute;
    bottom: -12px;
    left: 50%;
    transform: translateX(-50%);
    width: 48px;
    height: 3px;
    background: var(--primary-color);
    border-radius: 2px;
}

/* Progress Tracker */
.progress-tracker {
    max-width: 600px;
    margin: 0 auto 40px auto;
    background: var(--bg-color);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 20px;
    box-shadow: var(--shadow-sm);
}

.tracker-content {
    display: flex;
    align-items: center;
    gap: 16px;
}

.tracker-text {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-secondary);
    white-space: nowrap;
}

.tracker-bar {
    flex: 1;
    height: 8px;
    background: var(--bg-secondary);
    border-radius: 4px;
    overflow: hidden;
}

.tracker-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color), #22c55e);
    border-radius: 4px;
    transition: width 0.3s ease;
    width: 0%;
}

.tracker-percentage {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--primary-color);
    min-width: 40px;
    text-align: right;
}

/* Subject Categories */
.subject-category {
    margin-bottom: 24px;
}

.category-header {
    cursor: pointer;
    user-select: none;
    margin-bottom: 12px;
    padding: 12px 16px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    transition: all 0.2s ease;
}

.category-header:hover {
    background: #f8f9fa;
    border-color: var(--primary-color);
}

.category-title {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
}

.category-icon {
    font-size: 0.75rem;
    transition: transform 0.2s ease;
    width: 10px;
    text-align: center;
    color: var(--text-secondary);
}

.category-count {
    margin-left: auto;
    font-size: 0.8rem;
    opacity: 0.7;
    font-weight: 500;
    color: var(--text-secondary);
}

.category-content {
    transition: all 0.3s ease;
    overflow: hidden;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 16px;
}

.category-content.expanded {
    max-height: none;
    opacity: 1;
}

.category-content.collapsed {
    max-height: 0;
    opacity: 0;
    margin: 0;
    padding: 0;
}

/* Category-specific styling - more subtle */
.subject-category.passed .category-header {
    border-left: 3px solid #22c55e;
}

.subject-category.failed .category-header {
    border-left: 3px solid #ef4444;
}

.subject-category.not-taken .category-header {
    border-left: 3px solid #6b7280;
}

.subjects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
    gap: 24px;
    margin-bottom: 40px;
}

.subject-card {
    background: var(--bg-color);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 20px;
    transition: all 0.2s ease;
    position: relative;
}

.subject-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--primary-color);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.2s ease;
}

.subject-card:hover {
    border-color: var(--primary-color);
    transform: translateY(-1px);
    box-shadow: var(--shadow-sm);
}

.subject-card:hover::before {
    transform: scaleX(1);
}

.subject-card h3 {
    color: var(--text-primary);
    margin-bottom: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    line-height: 1.3;
}

.subject-card p {
    color: var(--text-secondary);
    margin-bottom: 16px;
    line-height: 1.4;
    font-size: 0.85rem;
}

.subject-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    gap: 8px;
}

.question-count {
    background: var(--bg-secondary);
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.7rem;
    color: var(--text-secondary);
    font-weight: 500;
    border: 1px solid var(--border-color);
}

.difficulty {
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.difficulty.beginner {
    background: #f0fdf4;
    color: #15803d;
    border: 1px solid #22c55e;
}

.difficulty.intermediate {
    background: #fffbeb;
    color: #d97706;
    border: 1px solid #f59e0b;
}

.difficulty.advanced {
    background: #fef2f2;
    color: #dc2626;
    border: 1px solid #ef4444;
}

.subject-stats {
    margin-bottom: 16px;
    text-align: center;
}

.highest-score {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: 600;
    background: var(--primary-light);
    color: var(--primary-dark);
    border: 1px solid var(--primary-color);
}

.highest-score.no-score {
    background: var(--bg-secondary);
    color: var(--text-muted);
    border-color: var(--border-color);
}

/* Menu Actions Layout */
.menu-actions .btn {
    margin: 0 10px 10px 0;
}

/* Exam Screen */
.exam-header {
    background: #f8f9fa;
    padding: 25px 40px;
    border-bottom: 1px solid #e9ecef;
}

.exam-header h2 {
    margin-bottom: 15px;
    color: #333;
    font-size: 1.5rem;
}

.progress-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

#question-counter {
    font-weight: 600;
    color: #666;
}

.progress-bar {
    width: 200px;
    height: 8px;
    background: #e9ecef;
    border-radius: 4px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #007bff, #0056b3);
    transition: width 0.3s ease;
    border-radius: 4px;
}

.question-container {
    padding: 40px;
}

#question-text {
    font-size: 1.3rem;
    color: #333;
    margin-bottom: 25px;
    line-height: 1.6;
    font-weight: 500;
}

.multiple-choice-hint {
    background: #e3f2fd;
    color: #1976d2;
    padding: 8px 15px;
    border-radius: 6px;
    font-size: 0.9rem;
    margin-top: 10px;
    border-left: 4px solid #2196f3;
}

.choices {
    margin-bottom: 30px;
}

.choice {
    margin-bottom: 12px;
}

.choice label {
    display: flex;
    align-items: flex-start;
    padding: 15px 20px;
    background: #f8f9fa;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    gap: 12px;
}

.choice label:hover {
    background: #e3f2fd;
    border-color: #2196f3;
}

.choice input[type="radio"]:checked + .choice-text,
.choice input[type="checkbox"]:checked + .choice-text {
    color: #1976d2;
    font-weight: 600;
}

.choice input[type="radio"]:checked ~ label,
.choice input[type="checkbox"]:checked ~ label {
    background: #e3f2fd;
    border-color: #2196f3;
}

.choice input[type="radio"],
.choice input[type="checkbox"] {
    margin-top: 2px;
    transform: scale(1.2);
}

.choice-text {
    flex: 1;
    line-height: 1.5;
}

.exam-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 20px;
    border-top: 1px solid #e9ecef;
}

/* Results Screen */
#results-screen {
    padding: 40px;
}

#results-screen h2 {
    text-align: center;
    margin-bottom: 30px;
    color: #333;
    font-size: 2rem;
}

.score-display {
    text-align: center;
    margin-bottom: 40px;
}

.score-circle {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: linear-gradient(135deg, #007bff, #0056b3);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    box-shadow: 0 8px 25px rgba(0, 123, 255, 0.3);
}

#score-percentage {
    color: white;
    font-size: 2rem;
    font-weight: bold;
}

#score-text {
    font-size: 1.5rem;
    margin: 0;
}

#score-text.excellent {
    color: #28a745;
}
#score-text.very-good {
    color: #17a2b8;
}
#score-text.good {
    color: #007bff;
}
#score-text.pass {
    color: #ffc107;
}
#score-text.fail {
    color: #dc3545;
}

.results-summary {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 30px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
}

.result-item {
    text-align: center;
}

.result-item .label {
    display: block;
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 5px;
}

.result-item .value {
    display: block;
    color: #333;
    font-size: 1.3rem;
    font-weight: 600;
}

.questions-review h4 {
    margin-bottom: 20px;
    color: #333;
    font-size: 1.3rem;
}

.question-review {
    background: #f8f9fa;
    border-left: 4px solid #e9ecef;
    padding: 20px;
    margin-bottom: 15px;
    border-radius: 0 8px 8px 0;
}

.question-review.correct {
    border-left-color: #28a745;
    background: #f8fff9;
}

.question-review.incorrect {
    border-left-color: #dc3545;
    background: #fff8f8;
}

.question-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.question-num {
    font-weight: 600;
    color: #666;
}

.status {
    font-size: 1.2rem;
    font-weight: bold;
}

.status.correct {
    color: #28a745;
}
.status.incorrect {
    color: #dc3545;
}

.question-text {
    margin-bottom: 15px;
    font-weight: 500;
    color: #333;
}

.answer-info {
    font-size: 0.9rem;
}

.your-answer {
    margin-bottom: 8px;
    color: #666;
}

.correct-answer {
    margin-bottom: 8px;
    color: #28a745;
}

.explanation {
    background: #e3f2fd;
    padding: 10px;
    border-radius: 6px;
    margin-top: 10px;
    color: #1976d2;
    border-left: 3px solid #2196f3;
}

/* Answer Items with Enhanced Color Coding */
.answer-comparison {
    margin: 15px 0;
}

.answer-legend {
    display: flex;
    gap: 20px;
    margin-bottom: 15px;
    padding: 10px;
    background: #f8f9fa;
    border-radius: 6px;
    font-size: 0.85rem;
    justify-content: center;
    flex-wrap: wrap;
}

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

.legend-icon {
    font-weight: bold;
    font-size: 1rem;
    width: 16px;
    text-align: center;
}

.legend-icon.correct {
    color: #28a745;
}

.legend-icon.wrong {
    color: #dc3545;
}

.legend-icon.missed {
    color: #fd7e14;
}

.answer-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px;
    margin: 6px 0;
    border-radius: 8px;
    border: 2px solid transparent;
    background: #f8f9fa;
    transition: all 0.2s ease;
}

.answer-item.correct-selected {
    background: #d4edda;
    border-color: #28a745;
    color: #155724;
}

.answer-item.wrong-selected {
    background: #f8d7da;
    border-color: #dc3545;
    color: #721c24;
}

.answer-item.missed-answer {
    background: #fff3cd;
    border-color: #fd7e14;
    color: #856404;
}

.answer-item.not-selected {
    background: #f8f9fa;
    color: #6c757d;
    opacity: 0.7;
}

.answer-icon {
    font-weight: bold;
    font-size: 1.1rem;
    width: 20px;
    text-align: center;
    flex-shrink: 0;
}

.answer-text {
    flex: 1;
    line-height: 1.4;
}

/* Clean Modern Buttons */
.btn {
    padding: 12px 24px;
    border: none;
    border-radius: var(--border-radius);
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-align: center;
    border: 1px solid transparent;
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none !important;
}

.btn-primary {
    background: var(--primary-color);
    color: white;
}

.btn-primary:hover:not(:disabled) {
    background: var(--primary-dark);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.btn-secondary {
    background: var(--bg-color);
    color: var(--text-primary);
    border-color: var(--border-color);
}

.btn-secondary:hover:not(:disabled) {
    background: var(--bg-secondary);
    border-color: var(--text-secondary);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.btn-success {
    background: var(--success-color);
    color: white;
}

.btn-success:hover:not(:disabled) {
    background: #047857;
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.btn-warning {
    background: var(--warning-color);
    color: white;
}

.btn-warning:hover:not(:disabled) {
    background: #b45309;
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.btn-large {
    padding: 16px 32px;
    font-size: 1rem;
    font-weight: 600;
    min-height: 60px;
}

/* Exam Options Section */
.exam-options {
    display: flex;
    gap: 16px;
    margin-bottom: 32px;
    justify-content: center;
}

.exam-options .btn {
    flex: 1;
    max-width: 300px;
}

@media (max-width: 768px) {
    .exam-options {
        flex-direction: column;
    }

    .exam-options .btn {
        max-width: none;
    }
}

/* Menu Actions */
.main-menu {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.menu-actions {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.menu-actions .btn {
    min-width: 160px;
}

.btn-success:hover {
    background: #1e7e34;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(40, 167, 69, 0.3);
}

/* Error handling */
.error {
    color: #dc3545;
    text-align: center;
    padding: 20px;
    background: #f8d7da;
    border-radius: 6px;
    border: 1px solid #f5c6cb;
}

/* Wrong Answers Review Section */
.main-menu {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.menu-actions {
    text-align: center;
}

#wrong-answers-screen {
    padding: 40px;
}

.wrong-answers-content {
    max-width: 900px;
    margin: 0 auto;
}

.wrong-answers-header {
    margin-bottom: 30px;
    text-align: center;
}

.wrong-answers-header p {
    color: #666;
    margin-bottom: 20px;
    line-height: 1.6;
}

.wrong-answers-stats {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
}

#wrong-answers-count {
    font-weight: 600;
    color: #495057;
}

.wrong-answers-list {
    margin-bottom: 30px;
}

.no-wrong-answers {
    text-align: center;
    color: #6c757d;
    font-style: italic;
    padding: 40px;
    background: #f8f9fa;
    border-radius: 8px;
}

.wrong-answer-item {
    background: #fff;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    margin-bottom: 20px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.wrong-answer-header {
    background: #dc3545;
    color: white;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.wrong-answer-subject {
    font-weight: 600;
    font-size: 1.1rem;
}

.wrong-answer-body {
    padding: 20px;
}

.wrong-answer-question {
    font-weight: 600;
    margin-bottom: 15px;
    color: #333;
    line-height: 1.5;
}

.wrong-answer-details {
    display: grid;
    gap: 12px;
}

.answer-row {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 10px;
    align-items: flex-start;
}

.answer-label {
    font-weight: 600;
    color: #495057;
    min-width: 120px;
}

.user-answer {
    color: #dc3545;
}

.correct-answer {
    color: #28a745;
}

.explanation-text {
    color: #6c757d;
    line-height: 1.5;
}

.remove-wrong-btn {
    background: #28a745;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: background-color 0.2s;
}

.remove-wrong-btn:hover {
    background: #218838;
}

.btn-danger {
    background: #dc3545;
    color: white;
}

.btn-danger:hover {
    background: #c82333;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 10px;
    }

    header h1 {
        font-size: 2rem;
    }

    .subjects-grid {
        grid-template-columns: 1fr;
    }

    .question-container {
        padding: 20px;
    }

    #subject-selection {
        padding: 20px;
    }

    .exam-header {
        padding: 20px;
    }

    .progress-info {
        flex-direction: column;
        gap: 10px;
    }

    .progress-bar {
        width: 100%;
    }

    .exam-controls {
        flex-direction: column;
        gap: 15px;
    }

    .exam-controls .btn {
        width: 100%;
    }

    .results-summary {
        grid-template-columns: 1fr;
    }

    #score-percentage {
        font-size: 1.5rem;
    }

    .score-circle {
        width: 100px;
        height: 100px;
    }

    /* Wrong answers responsive */
    #wrong-answers-screen {
        padding: 20px;
    }

    .wrong-answers-stats {
        flex-direction: column;
        gap: 15px;
    }

    .wrong-answer-header {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }

    .answer-row {
        grid-template-columns: 1fr;
        gap: 5px;
    }

    .answer-label {
        min-width: auto;
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .choice label {
        padding: 12px 15px;
    }

    #question-text {
        font-size: 1.1rem;
    }

    .subject-card {
        padding: 20px;
    }
}

/* Study Feedback Styles */
.study-feedback-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 24px;
}

.feedback-header {
    text-align: center;
    margin-bottom: 32px;
}

.feedback-header .progress-bar {
    max-width: 400px;
    margin: 16px auto 0;
}

.feedback-result {
    background: var(--bg-color);
    border-radius: var(--border-radius-lg);
    padding: 32px;
    margin-bottom: 32px;
    box-shadow: var(--shadow-md);
}

.feedback-result-header {
    text-align: center;
    margin-bottom: 24px;
    padding: 20px;
    border-radius: var(--border-radius);
}

.feedback-result-header.correct {
    background: linear-gradient(135deg, #dcfce7 0%, #bbf7d0 100%);
    color: var(--success-color);
}

.feedback-result-header.incorrect {
    background: linear-gradient(135deg, #fef2f2 0%, #fecaca 100%);
    color: var(--danger-color);
}

.feedback-icon {
    font-size: 2rem;
    display: block;
    margin-bottom: 8px;
}

.feedback-question {
    margin-bottom: 24px;
    padding: 20px;
    background: var(--bg-secondary);
    border-radius: var(--border-radius);
}

.feedback-question h4 {
    color: var(--text-secondary);
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.answer-comparison {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin-bottom: 24px;
}

.user-answer,
.correct-answer {
    padding: 20px;
    border-radius: var(--border-radius);
    border: 2px solid var(--border-color);
}

.user-answer h5,
.correct-answer h5 {
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.user-answer h5 {
    color: var(--text-secondary);
}

.correct-answer {
    border-color: var(--success-color);
    background: #f0fdf4;
}

.correct-answer h5 {
    color: var(--success-color);
}

.feedback-answers ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.feedback-answers li {
    padding: 8px 12px;
    margin-bottom: 8px;
    border-radius: var(--border-radius-sm);
    font-weight: 500;
}

.correct-choice {
    background: var(--success-color);
    color: white;
}

.incorrect-choice {
    background: var(--danger-color);
    color: white;
}

.no-answer {
    background: var(--border-color);
    color: var(--text-muted);
    font-style: italic;
}

.feedback-explanation {
    padding: 20px;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    border-radius: var(--border-radius);
    border-left: 4px solid var(--primary-color);
}

.feedback-explanation h5 {
    color: var(--primary-color);
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.feedback-explanation p {
    color: var(--text-primary);
    line-height: 1.6;
    margin: 0;
}

.study-controls {
    text-align: center;
}

.study-controls .btn {
    min-width: 200px;
}

@media (max-width: 768px) {
    .answer-comparison {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .study-feedback-container {
        padding: 16px;
    }

    .feedback-result {
        padding: 20px;
    }
}
