/* Reset & Basic */
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    line-height: 1.6;
    background-color: #f4f7f6;
    color: #333;
    margin: 0;
    padding: 20px;
}
/* ... (kode CSS Anda dari baris 10-67 tidak diubah) ... */
.container {
    max-width: 800px;
    margin: 20px auto;
    padding: 30px;
    background-color: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

h1, h2, h3, h4 {
    color: #2c3e50;
    margin-top: 0;
}

h1 {
    border-bottom: 2px solid #e0e0e0;
    padding-bottom: 15px;
    margin-bottom: 25px;
    text-align: center;
}

/* Tombol */
.btn {
    display: inline-block;
    padding: 12px 24px;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin: 5px;
    text-align: center;
}

.btn-primary {
    background-color: #3498db;
    color: #ffffff;
}
.btn-primary:hover {
    background-color: #2980b9;
}

.btn-secondary {
    background-color: #bdc3c7;
    color: #ffffff;
}
.btn-secondary:hover {
    background-color: #a0a6ab;
}

.btn-danger {
    background-color: #ff0000;
    color: #ffffff;
}
.btn-danger:hover {
    background-color: #aa0000;
}

.btn-submit {
    background-color: #2ecc71;
    color: #ffffff;
    width: 100%;
    font-size: 18px;
    padding: 15px;
    margin-top: 20px;
}
.btn-submit:hover {
    background-color: #27ae60;
}

/* Halaman Awal */
.welcome-screen {
/* ... (kode CSS Anda dari baris 70-76 tidak diubah) ... */
    text-align: center;
    padding: 40px 0;
}
.welcome-screen p {
    font-size: 1.1em;
}

/* Form Kuis */
.question-block {
/* ... (kode CSS Anda dari baris 79-91 tidak diubah) ... */
    margin-bottom: 30px;
    padding: 20px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    background-color: #fafafa;
}
.question-block h4 {
    font-size: 1.2em;
    margin-bottom: 15px;
}

.options-list {
/* ... (kode CSS Anda dari baris 93-97 tidak diubah) ... */
    list-style-type: none;
    padding: 0;
    margin: 0;
}

.option-item {
/* ... (kode CSS Anda dari baris 99-118 tidak diubah) ... */
    display: flex;
    align-items: center;
    padding: 12px;
    margin-bottom: 8px;
    border-radius: 6px;
    border: 1px solid #ddd;
    background: #fff;
    cursor: pointer;
    transition: background-color 0.2s, box-shadow 0.2s;
}
.option-item:hover {
    background-color: #f0f5ff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}
.option-item input[type="radio"] {
    margin-right: 15px;
    flex-shrink: 0;
    width: 18px;
    height: 18px;
}
.option-item .option-key {
    font-weight: 600;
    margin-right: 8px;
}

/* Halaman Hasil */
.result-summary {
/* ... (kode CSS Anda dari baris 121-132 tidak diubah) ... */
    text-align: center;
    padding: 20px;
    background-color: #eaf5ff;
    border: 1px solid #b3d7ff;
    border-radius: 8px;
    margin-bottom: 30px;
}
.result-summary h2 {
    color: #2980b9;
    margin-bottom: 10px;
}

.result-review .question-block.review {
/* ... (kode CSS Anda dari baris 134-177 tidak diubah) ... */
    background-color: #fff;
}
.result-review .options-list {
    margin-bottom: 15px;
    font-size: 0.95em;
    color: #555;
}
.result-review .options-list li {
    padding: 5px 0;
}

.summary-box {
    border-top: 1px dashed #ccc;
    padding-top: 15px;
    margin-top: 15px;
}
.summary-box span {
    display: block;
    font-size: 1.1em;
    font-weight: 600;
    padding: 8px 12px;
    border-radius: 6px;
    margin-bottom: 8px;
}

.summary-box .user-choice.correct {
    background-color: #e6f7e9;
    color: #27ae60;
    border: 1px solid #b6e8c0;
}
.summary-box .user-choice.incorrect {
    background-color: #fbe9e8;
    color: #e74c3c;
    border: 1px solid #f5c4c0;
}
.summary-box .user-choice.neutral {
    background-color: #f4f4f4;
    color: #777;
    border: 1px solid #ddd;
}
.summary-box .suggested {
    background-color: #eaf5ff;
    color: #3498db;
    border: 1px solid #b3d7ff;
}
.summary-box .correct {
    background-color: #e6f7e9;
    color: #27ae60;
    border: 1px solid #b6e8c0;
}


/* --- CSS BARU UNTUK PAGINASI --- */

.quiz-progress {
    text-align: center;
    font-size: 1.1em;
    color: #555;
    margin-bottom: 20px;
    padding: 10px;
    background-color: #fafafa;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
}

.quiz-navigation {
    display: flex;
    justify-content: space-between; /* Membuat tombol "Prev" di kiri dan "Next" di kanan */
    align-items: center;
    margin-top: 30px;
    border-top: 1px solid #e0e0e0;
    padding-top: 20px;
}

/* Mengatur agar tombol submit kuis (terakhir) tetap di kanan */
.quiz-navigation .btn-submit {
    width: auto; /* Hapus width 100% agar tidak memenuhi layar */
    margin-top: 0;
    margin-left: auto; /* Dorong ke paling kanan */
}

/* Mengatur agar tombol Next/Prev seimbang */
.quiz-navigation .btn-primary,
.quiz-navigation .btn-secondary {
    min-width: 120px; /* Lebar minimum agar tombol seimbang */
}

/* --- PERBAIKAN CSS HALAMAN HASIL --- */
.question-block.result-correct {
    background-color: #f0fff4;
    border-color: #b6e8c0;
}
.question-block.result-incorrect {
    background-color: #fff0f0;
    border-color: #f5c4c0;
}
.question-block.result-skipped {
    background-color: #f9f9f9;
    border-color: #ddd;
}

.answer-details {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px dashed #ccc;
}
/* PERUBAHAN: Menghapus style umum 'p' */
.answer-details p {
    padding: 0; /* Hapus padding lama */
    margin: 10px 0; /* Beri jarak antar jawaban */
    border-radius: 0;
    font-weight: normal; /* Kembalikan ke normal */
    background: none; /* Hapus background lama */
    border: none; /* Hapus border lama */
    color: #333; /* Kembalikan warna teks */
    font-size: 1.1em; /* Buat sedikit lebih besar */
}
.answer-details .correct-answer {
    /* Style ini tidak diperlukan lagi di <p> */
}
.answer-details .warning-answer {
    /* Style ini tidak diperlukan lagi di <p> */
}
.answer-details .warning-text {
    font-size: 0.9em;
    color: #e74c3c;
    background: none;
    padding: 0;
    border: none;
}

/* --- STYLE BARU UNTUK OPSI DI HALAMAN HASIL --- */
.review-options {
    margin-top: 20px;
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.review-options .option-item {
    display: block; /* Buat jadi blok penuh */
    padding: 10px;
    border-radius: 6px;
    border: 1px solid #ddd;
    background: #f9f9f9;
    cursor: default; /* Bukan tombol radio lagi */
}
/* Menyorot jawaban yg salah dipilih pengguna */
.review-options .option-item.is-incorrect {
    background-color: #fff0f0;
    border-color: #f5c4c0;
    color: #e74c3c;
    font-weight: 600;
}
/* Menyorot jawaban yang benar */
.review-options .option-item.is-correct {
    background-color: #f0fff4;
    border-color: #b6e8c0;
    color: #27ae60;
    font-weight: 600;
}

/* --- STYLE BARU UNTUK BLOK JAWABAN (STRONG) --- */
.answer-details p strong {
    display: block; /* Membuat jawaban di baris baru agar rapi */
    margin-top: 5px;
    padding: 10px 12px;
    border-radius: 6px;
    font-weight: 600;
    border: 1px solid #ddd;
}
/* Jawaban Pengguna (Benar) */
.answer-details p.is-correct strong {
    background-color: #e6f7e9;
    color: #27ae60;
    border-color: #b6e8c0;
}
/* Jawaban Pengguna (Salah) */
.answer-details p.is-incorrect strong {
    background-color: #fbe9e8;
    color: #e74c3c;
    border-color: #f5c4c0;
}
/* Jawaban Pengguna (Tidak Dijawab) */
.answer-details p.is-skipped strong {
    background-color: #f4f4f4;
    color: #777;
    border-color: #ddd;
}
/* Style untuk Suggested & Final (strong) */
.answer-details p.correct-answer strong {
    background-color: #e6f7e9;
    color: #27ae60;
    border-color: #b6e8c0;
}
.answer-details p.warning-answer strong {
    background-color: #eaf5ff;
    color: #3498db;
    border-color: #b3d7ff;
}

/* =========================================
   TAMBAHAN KHUSUS LAYOUT QUIZ (1-by-1)
   ========================================= */

/* Header Progress Bar (Soal X dari Y) */
.header-bar { 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    border-bottom: 2px solid #f0f0f0; 
    padding-bottom: 15px; 
    margin-bottom: 20px; 
}
.progress-badge { 
    background: #3498db; 
    color: white; 
    padding: 5px 12px; 
    border-radius: 15px; 
    font-size: 0.9em; 
    font-weight: bold; 
}

/* Card & Teks Soal */
.question-card { margin-bottom: 20px; }
.question-text { 
    font-size: 1.15em; 
    margin-bottom: 20px; 
    line-height: 1.5; 
    font-weight: 600;
}

/* Pilihan Ganda (Interactive Label) */
.option-label { 
    display: block; 
    margin-bottom: 10px; 
    padding: 12px 15px; 
    border: 1px solid #ddd; 
    border-radius: 6px; 
    cursor: pointer; 
    transition: all 0.2s; 
    font-weight: normal; /* Reset font weight jika perlu */
}
.option-label:hover { 
    background-color: #f9f9f9; 
    border-color: #bbb; 
}
/* Style saat radio button dipilih */
.option-label.selected { 
    background-color: #e3f2fd; 
    border-color: #2196f3; 
}
.option-label input { 
    margin-right: 10px; 
    transform: scale(1.2); 
}

/* Area Tombol Navigasi (Bawah Soal) */
.nav-buttons { 
    display: flex; 
    justify-content: space-between; 
    margin-top: 30px; 
    padding-top: 20px; 
    border-top: 1px solid #eee; 
}

/* Warna-Warni Tombol Spesifik */
/* Note: .btn base style sudah ada di style.css asli, kita hanya override warna */
.btn-prev { background-color: #95a5a6; color: white; }
.btn-prev:hover { background-color: #7f8c8d; }

.btn-next { background-color: #3498db; color: white; }
.btn-next:hover { background-color: #2980b9; }

.btn-finish { background-color: #27ae60; color: white; }
.btn-finish:hover { background-color: #2ecc71; }

.btn-restart { 
    background-color: #e74c3c; 
    color: white; 
    width: 100%; 
    text-align: center; 
    margin-top: 20px;
	box-sizing: border-box;
}
.btn:disabled { opacity: 0.5; cursor: not-allowed; }

/* Tampilan Hasil (Result Page) */
.score-box { 
    text-align: center; 
    background: #e8f4fd; 
    padding: 20px; 
    border-radius: 8px; 
    margin-bottom: 30px; 
}

.result-item { 
    font-size: 1em; 
    border: 1px solid #eee; 
    padding: 15px; 
    margin-bottom: 15px; 
    border-radius: 5px; 
    background: #fff; 
}
.result-item.correct { 
    border-left: 5px solid #27ae60; 
    background-color: #f9fff9; 
}
.result-item.wrong { 
    border-left: 5px solid #e74c3c; 
    background-color: #fff5f5; 
}