/* Enhanced Quiz Styles */

.enhanced-quiz-container {
    background: #fff;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    margin-bottom: 2rem;
}

.quiz-header {
    border-bottom: 2px solid #f8f9fa;
    padding-bottom: 1rem;
    margin-bottom: 2rem;
}

.quiz-title {
    color: #2c3e50;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.quiz-stats .badge {
    font-size: 0.9rem;
    padding: 0.5rem 1rem;
}

.quiz-question {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    border-left: 4px solid #007bff;
}

.question-header {
    margin-bottom: 1rem;
}

.question-number {
    background: #007bff;
    color: white;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    margin-right: 0.5rem;
    font-size: 0.9rem;
}

.question-text {
    color: #2c3e50;
    font-weight: 500;
    line-height: 1.6;
}

.quiz-option {
    background: white;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 0.75rem;
    transition: all 0.3s ease;
    cursor: pointer;
}

.quiz-option:hover {
    border-color: #007bff;
    background-color: #f8f9ff;
}

.quiz-option.bg-light {
    background-color: #e3f2fd !important;
    border-color: #2196f3 !important;
}

.quiz-option.border-success {
    border-color: #28a745 !important;
    background-color: #d4edda !important;
}

.quiz-option.border-danger {
    border-color: #dc3545 !important;
    background-color: #f8d7da !important;
}

.quiz-option .form-check-input {
    margin-top: 0.25rem;
}

.quiz-option .form-check-label {
    font-weight: 500;
    color: #495057;
    cursor: pointer;
    width: 100%;
}

.quiz-actions {
    text-align: center;
    padding: 1.5rem 0;
    border-top: 1px solid #e9ecef;
}

.submit-quiz-btn, .reset-quiz-btn {
    min-width: 150px;
    font-weight: 600;
    padding: 0.75rem 2rem;
}

.quiz-results {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 2rem;
    margin-top: 2rem;
}

.quiz-results-header {
    margin-bottom: 2rem;
}

.score-card {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.score-card.passed {
    border-left: 5px solid #28a745;
}

.score-card.failed {
    border-left: 5px solid #dc3545;
}

.score-title {
    color: #6c757d;
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.score-display {
    margin-bottom: 1rem;
}

.score-number {
    font-size: 3rem;
    font-weight: bold;
    color: #2c3e50;
}

.score-fraction {
    font-size: 1.2rem;
    color: #6c757d;
    margin-left: 0.5rem;
}

.score-status {
    font-size: 1.1rem;
    font-weight: 600;
}

.quiz-message {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 1rem;
}

.quiz-detailed-results {
    margin-top: 2rem;
}

.result-item {
    background: white;
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 1rem;
    border-left: 4px solid #e9ecef;
}

.result-item.correct {
    border-left-color: #28a745;
}

.result-item.incorrect {
    border-left-color: #dc3545;
}

.result-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
    font-weight: 600;
}

.result-header .points {
    background: #f8f9fa;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.9rem;
    color: #6c757d;
}

.result-details p {
    margin-bottom: 0.5rem;
}

.explanation {
    background: #e3f2fd;
    padding: 1rem;
    border-radius: 6px;
    border-left: 3px solid #2196f3;
    font-style: italic;
}

/* True/False Question Styles */
.quiz-option .bi-check-circle {
    color: #28a745;
}

.quiz-option .bi-x-circle {
    color: #dc3545;
}

/* Fill in the blank styles */
.quiz-option input[type="text"] {
    border: 2px solid #e9ecef;
    border-radius: 6px;
    padding: 0.75rem;
    font-size: 1rem;
    width: 100%;
    transition: border-color 0.3s ease;
}

.quiz-option input[type="text"]:focus {
    border-color: #007bff;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

/* Responsive Design */
@media (max-width: 768px) {
    .enhanced-quiz-container {
        padding: 1rem;
    }
    
    .quiz-question {
        padding: 1rem;
    }
    
    .score-number {
        font-size: 2.5rem;
    }
    
    .quiz-actions {
        text-align: center;
    }
    
    .submit-quiz-btn, .reset-quiz-btn {
        width: 100%;
        margin-bottom: 0.5rem;
    }
}

/* Animation for quiz results */
@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.quiz-results {
    animation: slideInUp 0.5s ease-out;
}

/* Loading states */
.submit-quiz-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Confetti animation support */
.quiz-celebration {
    position: relative;
    overflow: hidden;
}
