/* Reusable Quiz Styles */
.quiz-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    font-family: Arial, sans-serif;
}

.question-container {
    background: #f5f5f5;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    overflow: hidden;
}

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

.question-counter {
    font-size: 14px;
    color: #666;
    margin-bottom: 10px;
}

.answer-option {
    margin: 10px 0;
    padding: 10px;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
    background-color: #fff;
    border: 1px solid #ddd;
    display: flex;
    align-items: center;
}

.answer-option:hover {
    background-color: #f8f9fa;
}

.answer-option.selected {
    background-color: #e3f2fd;
    border: 2px solid #2196f3;
}

.answer-option input[type="radio"] {
    margin-right: 10px;
    margin-left: 0;
}

.answer-option label {
    color: #333;
    font-weight: normal;
    cursor: pointer;
    display: inline;
    width: auto;
    flex: 1;
}

.answer-option.correct {
    background-color: #d4edda;
    border: 2px solid #28a745;
}

.answer-option.correct label {
    color: #155724;
    font-weight: bold;
}

.answer-option.incorrect {
    background-color: #f8d7da;
    border: 2px solid #dc3545;
}

.answer-option.incorrect label {
    color: #721c24;
    font-weight: bold;
}

.quiz-button {
    background-color: #007bff;
    color: white;
    border: none;
    padding: 12px 24px;
    font-size: 16px;
    border-radius: 5px;
    cursor: pointer;
    margin-top: 20px;
    float: right;
}

.quiz-button:disabled {
    background-color: #ccc;
    cursor: not-allowed;
}

.quiz-button:hover:not(:disabled) {
    background-color: #0056b3;
}

.results-container {
    text-align: center;
    padding: 20px;
}

.score-display {
    font-size: 24px;
    font-weight: bold;
    color: #007bff;
    margin-bottom: 20px;
}

.recap-section {
    text-align: left;
    margin-top: 30px;
}

.recap-question {
    background: #f8f9fa;
    padding: 15px;
    margin-bottom: 15px;
    border-radius: 5px;
    border-left: 4px solid #007bff;
}

.recap-question.correct {
    border-left-color: #28a745;
}

.recap-question.incorrect {
    border-left-color: #dc3545;
}

.recap-question-text {
    font-weight: bold;
    margin-bottom: 15px;
    color: #333;
    font-size: 16px;
}

.recap-answer {
    margin: 5px 0;
    padding: 8px;
    border-radius: 5px;
    color: #333;
    font-size: 14px;
    background-color: #fff;
    border: 1px solid #ddd;
}

.recap-answer.correct-answer {
    background-color: #d4edda;
    border: 2px solid #28a745;
    color: #155724;
    font-weight: bold;
}

.recap-answer.user-incorrect {
    background-color: #f8d7da;
    border: 2px solid #dc3545;
    color: #721c24;
    text-decoration: line-through;
    font-weight: bold;
}

.hidden {
    display: none !important;
}