/* Quiz Styles */
body { padding-top: 20px; padding-bottom: 40px; }
.sidebar { position: fixed; top: 0; bottom: 0; left: -250px; width: 250px; z-index: 1000; padding: 20px 0; overflow-x: hidden; overflow-y: auto; background-color: #f8f9fa; transition: left 0.3s ease; border-right: 1px solid #dee2e6; }
.sidebar.show { left: 0; }
.sidebar-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background-color: rgba(0, 0, 0, 0.5); z-index: 999; display: none; }
.sidebar-overlay.show { display: block; }
.main-content { margin-left: 0; padding: 20px 15px; }
.mobile-menu-toggle { position: fixed; top: 20px; left: 20px; z-index: 1001; background: #0d6efd; color: white; border: none; border-radius: 4px; padding: 8px 12px; cursor: pointer; }
.mobile-menu-toggle:hover { background: #0b5ed7; }
.mobile-menu-toggle span { display: block; width: 20px; height: 2px; background: white; margin: 3px 0; }
.sidebar-close { position: absolute; top: 15px; right: 15px; background: none; border: none; font-size: 24px; color: #6c757d; cursor: pointer; display: none; }
@media (min-width: 768px) { .sidebar { left: 0; } .main-content { margin-left: 250px; padding: 20px; } .mobile-menu-toggle { display: none; } .sidebar-overlay { display: none !important; } }
@media (max-width: 767px) { .sidebar-close { display: block; } .main-content { padding-top: 70px; } }

.quiz-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 40px;
    border-radius: 12px;
    margin-bottom: 30px;
    text-align: center;
}

.quiz-header h1 {
    font-size: 2rem;
    font-weight: 700;
    margin: 10px 0;
}

.topic-badge {
    background: rgba(255,255,255,0.3);
    padding: 5px 15px;
    border-radius: 20px;
    font-weight: 700;
    display: inline-block;
    margin-bottom: 10px;
}

.progress-container {
    margin-bottom: 30px;
}

.progress-bar-wrapper {
    background: #e9ecef;
    border-radius: 10px;
    height: 10px;
    overflow: hidden;
}

.progress-bar-fill {
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
    height: 100%;
    transition: width 0.3s ease;
    width: 0;
}

.question-card {
    background: white;
    border-radius: 12px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    border-left: 5px solid #667eea;
}

.question-number {
    background: #667eea;
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-weight: 700;
    display: inline-block;
    margin-bottom: 15px;
}

.select-all-badge {
    background: #17a2b8;
    color: white;
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 600;
    display: inline-block;
    margin-left: 10px;
}

.question-text {
    font-size: 1.2rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 20px;
    line-height: 1.6;
}

.answer-option {
    background: #f8f9fa;
    border: 2px solid #dee2e6;
    border-radius: 8px;
    padding: 10px 15px;
    margin-bottom: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    min-height: auto;
}

.answer-option:hover {
    background: #e9ecef;
    border-color: #667eea;
}

.answer-option input[type="radio"],
.answer-option input[type="checkbox"] {
    margin-right: 12px;
    width: 18px;
    height: 18px;
    cursor: pointer;
    flex-shrink: 0;
}

.answer-option label {
    cursor: pointer;
    margin: 0;
    flex: 1;
    line-height: 1.5;
}

.answer-option.correct {
    background: #d1e7dd;
    border-color: #198754;
}

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

.answer-option.correct-answer {
    background: #d1e7dd;
    border-color: #198754;
}

.explanation {
    background: #fff3cd;
    border-left: 4px solid #ffc107;
    padding: 15px;
    margin-top: 15px;
    border-radius: 4px;
    display: none;
}

.explanation.show {
    display: block;
}

.submit-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 15px 40px;
    font-size: 1.1rem;
    font-weight: 700;
    border-radius: 8px;
    cursor: pointer;
    margin-top: 30px;
    width: 100%;
    transition: transform 0.2s ease;
}

.submit-btn:hover {
    transform: translateY(-2px);
}

.submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.results-card {
    background: white;
    border-radius: 12px;
    padding: 40px;
    margin-top: 30px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    text-align: center;
    display: none;
}

.results-card.show {
    display: block;
}

.score-circle {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 30px;
    font-size: 3rem;
    font-weight: 800;
    color: white;
}

.score-excellent { background: linear-gradient(135deg, #28a745 0%, #20c997 100%); }
.score-good { background: linear-gradient(135deg, #17a2b8 0%, #0dcaf0 100%); }
.score-pass { background: linear-gradient(135deg, #ffc107 0%, #fd7e14 100%); }
.score-fail { background: linear-gradient(135deg, #dc3545 0%, #e63757 100%); }

.retake-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 12px 30px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    margin-top: 20px;
}
