/* style.css */
* { box-sizing: border-box; }

body { font-family: 'Poppins', sans-serif; margin: 0; padding: 0; background-color: #f4f7f6; display: flex; flex-direction: column; min-height: 100vh; }

header { background: #fff; padding: 15px 40px; box-shadow: 0 2px 10px rgba(0,0,0,0.1); width: 100%; }
.logo { font-size: 26px; font-weight: 700; color: #4a90e2; margin: 0; }

.content-wrapper { flex: 1; padding: 20px; max-width: 1100px; margin: 0 auto; width: 100%; }
.quiz-wrapper { display: flex; gap: 20px; align-items: flex-start; flex-wrap: wrap; }

.quiz-container { flex: 3; background: #fff; padding: 30px; border-radius: 15px; box-shadow: 0 4px 10px rgba(0,0,0,0.1); min-width: 300px; }
.progress-box { flex: 1; min-width: 250px; background: #fff; padding: 20px; border-radius: 15px; box-shadow: 0 4px 10px rgba(0,0,0,0.1); position: sticky; top: 20px; }

.quiz-nav-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 15px; }
.nav-box { padding: 10px; border: 1px solid #ddd; text-align: center; border-radius: 5px; cursor: pointer; font-weight: bold; transition: 0.2s; }
.nav-box.active { border: 2px solid #4a90e2; background: #eef6ff; }
.nav-box.solved { background: #28a745; color: white; border-color: #28a745; }

.quiz-title { background: #f8f9fa; color: #2c3e50; padding: 20px; border-left: 6px solid #4a90e2; border-radius: 0 8px 8px 0; font-size: 24px; margin-bottom: 25px; }
.question-text { font-size: 18px; margin-bottom: 20px; font-weight: 600; }
.options { display: grid; gap: 10px; }

/* Option Buttons & A, B, C, D Labels */
.opt-btn { display: flex; align-items: center; background: #fff; border: 2px solid #e1e8ed; padding: 10px 15px; border-radius: 8px; cursor: pointer; text-align: left; transition: 0.2s; font-size: 16px; }
.opt-btn:hover:not([disabled]) { border-color: #4a90e2; background: #f0f7ff; }

.opt-label { display: inline-block; min-width: 30px; height: 30px; line-height: 30px; text-align: center; background: #eef6ff; color: #4a90e2; border-radius: 50%; margin-right: 12px; font-weight: bold; font-size: 14px; }

/* Correct/Wrong Colors */
.btn-correct { background: #d4edda !important; border-color: #28a745 !important; color: #155724; }
.btn-correct .opt-label { background: #28a745; color: #fff; }
.btn-wrong { background: #f8d7da !important; border-color: #dc3545 !important; color: #721c24; }
.btn-wrong .opt-label { background: #dc3545; color: #fff; }

.nav-container { display: flex; justify-content: space-between; margin-top: 25px; }
.btn-nav { padding: 12px 25px; border: none; border-radius: 8px; cursor: pointer; background: #4a90e2; color: white; font-weight: 600; }
.btn-nav:disabled { background: #ccc; cursor: not-allowed; }

footer { background: #333; color: #fff; text-align: center; padding: 15px; margin-top: auto; width: 100%; }

@media (max-width: 768px) { 
    .quiz-wrapper { flex-direction: column; } 
    .progress-box { width: 100%; order: 2; position: static; } 
    .quiz-container { order: 1; width: 100%; padding: 20px; } 
    header { padding: 15px 20px; text-align: center; }
}