/* Quiz Styles */
.quiz-container {
    max-width: 800px;
    margin: 2rem auto;
    padding: 2rem;
    background: white;
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
}

.quiz-header {
    text-align: center;
    margin-bottom: 2rem;
}

.quiz-header h1 {
    color: #333;
    margin-bottom: 1rem;
}

.quiz-topics {
    list-style: none;
    padding: 0;
    margin: 1.5rem 0;
}

.quiz-topics li {
    margin: 0.8rem 0;
    padding-left: 1.5rem;
    position: relative;
    color: #555;
}

.quiz-topics li:before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #007bff;
    font-weight: bold;
}

.quiz-info {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin-top: 1.5rem;
    background: #f8f9fa;
    padding: 1rem;
    border-radius: 8px;
}

.quiz-info span {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #555;
    font-size: 0.9rem;
}

.quiz-info i {
    color: #007bff;
    font-size: 1.1rem;
}

.quiz-section {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    margin-bottom: 2rem;
}

.progress-bar {
    height: 8px;
    background: #eee;
    border-radius: 4px;
    margin-bottom: 1rem;
    overflow: hidden;
}

.progress {
    height: 100%;
    background: #007bff;
    width: 0;
    transition: width 0.3s ease;
}

.quiz-stats {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1.5rem;
    color: #666;
    font-weight: 500;
}

.question {
    margin-bottom: 2rem;
}

.question h3 {
    color: #333;
    margin-bottom: 1rem;
}

.options {
    display: grid;
    gap: 1rem;
}

.option {
    padding: 1rem;
    border: 2px solid #ddd;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.option:hover {
    background: #f8f9fa;
    border-color: #007bff;
}

.option.selected {
    background: #e3f2fd;
    border-color: #007bff;
}

.option.correct {
    background: #d4edda;
    border-color: #28a745;
}

.option.incorrect {
    background: #f8d7da;
    border-color: #dc3545;
}

.quiz-navigation {
    display: flex;
    justify-content: space-between;
    margin-top: 2rem;
}

.quiz-button {
    padding: 0.8rem 1.5rem;
    border: none;
    border-radius: 5px;
    background: #007bff;
    color: white;
    cursor: pointer;
    font-size: 1rem;
    transition: background 0.3s ease;
}

.quiz-button:hover {
    background: #0056b3;
}

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

.results-summary {
    background: #f8f9fa;
    padding: 2rem;
    border-radius: 8px;
    margin-bottom: 2rem;
}

.result-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1rem;
    padding: 0.5rem 0;
    border-bottom: 1px solid #ddd;
}

.result-item:last-child {
    border-bottom: none;
}

.result-label {
    color: #666;
    font-weight: 500;
}

.result-value {
    color: #007bff;
    font-weight: 600;
}

.review-section {
    margin-top: 2rem;
}

.review-question {
    margin-bottom: 2rem;
    padding: 1rem;
    border: 1px solid #ddd;
    border-radius: 8px;
}

.review-question.correct {
    border-left: 4px solid #28a745;
}

.review-question.incorrect {
    border-left: 4px solid #dc3545;
}

.result-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 2rem;
}

@media (max-width: 768px) {
    .quiz-container {
        margin: 1rem;
        padding: 1rem;
    }

    .quiz-info {
        flex-direction: column;
        gap: 1rem;
    }

    .quiz-stats {
        flex-direction: column;
        gap: 0.5rem;
    }

    .quiz-navigation {
        flex-direction: column;
        gap: 1rem;
    }

    .quiz-button {
        width: 100%;
    }
}
