/* assets/css/view_quiz.css */

body { 
    background-color: #eef2ff; 
    font-family: 'Kanit', sans-serif; 
    padding-bottom: 50px; 
}

.quiz-header { 
    background: transparent; 
    color: #1e293b; 
    padding: 20px 15px; 
    text-align: center; 
}

/* Progress Bar */
.progress-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9rem;
    font-weight: 600;
    color: #475569;
    margin-bottom: 20px;
}

.progress {
    height: 8px;
    flex-grow: 1;
    margin: 0 15px;
    background-color: #e2e8f0;
    border-radius: 10px;
}

.progress-bar { 
    background-color: #10b981; 
    border-radius: 10px; 
    transition: width 0.4s ease; 
}

/* Question Card & Slide Transitions */
.question-slide { 
    display: none; 
    animation: fadeIn 0.4s ease-in-out; 
}

.question-slide.active { 
    display: block; 
}

@keyframes fadeIn { 
    from { opacity: 0; transform: translateX(20px); } 
    to { opacity: 1; transform: translateX(0); } 
}

.question-card { 
    border: none; 
    border-radius: 20px; 
    box-shadow: 0 10px 30px rgba(0,0,0,0.05); 
    padding: 30px;
    background: #fff;
}

/* Choice Buttons */
.choice-btn { 
    text-align: left; 
    transition: all 0.2s; 
    border: 2px solid #e2e8f0; 
    border-radius: 12px; 
    margin-bottom: 15px; 
    font-weight: 500; 
    background: #fff;
    color: #475569;
}

.choice-btn:hover { 
    border-color: #cbd5e1; 
    background-color: #f8fafc; 
}

/* Answer States */
.choice-btn.correct { 
    border-color: #10b981 !important; 
    background-color: #d1fae5 !important; 
    color: #047857 !important; 
}

.choice-btn.wrong { 
    border-color: #ef4444 !important; 
    background-color: #fee2e2 !important; 
    color: #b91c1c !important; 
}

.choice-btn.disabled { 
    pointer-events: none; 
    opacity: 0.7; 
}

.choice-btn.correct.disabled { 
    opacity: 1; 
}

/* Explanation Box */
.explanation-box {
    background-color: #eff6ff;
    border-left: 4px solid #3b82f6;
    border-radius: 8px;
    padding: 15px;
    margin-top: 20px;
    display: none; /* Hidden by default until answered */
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown { 
    from { opacity: 0; transform: translateY(-10px); } 
    to { opacity: 1; transform: translateY(0); } 
}