/* Reset Dasar */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: #f0f2f5; /* Abu-abu muda lembut */
    color: #333;
    display: flex;
    justify-content: center;
    min-height: 100vh;
}

/* Container Utama (Biar rapi di tengah) */
.app-container {
    width: 100%;
    max-width: 800px; /* Lebar maksimal kayak kertas ujian */
    background: white;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 0 20px rgba(0,0,0,0.05);
}

/* Header */
.top-bar {
    background: #ffffff;
    padding: 15px 20px;
    border-bottom: 2px solid #e0e0e0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 100;
}

.timer-box {
    font-weight: 700;
    font-size: 1.2rem;
    color: #d93025; /* Merah untuk timer */
    background: #fff0f0;
    padding: 5px 12px;
    border-radius: 20px;
}

.progress-box {
    font-weight: 600;
    color: #555;
}

/* Area Soal */
.question-card {
    flex: 1; /* Isi ruang kosong */
    padding: 20px;
    overflow-y: auto; /* Scroll kalau soalnya panjang */
}

/* Multimedia (Gambar & Audio) */
.media-area {
    margin-bottom: 20px;
    text-align: center;
}

#soal-img {
    max-width: 100%;
    max-height: 300px; /* Batasi tinggi biar gak menuhin layar */
    border-radius: 8px;
    border: 1px solid #ddd;
}

#audio-container {
    background: #eef3ff;
    padding: 15px;
    border-radius: 10px;
    display: inline-block;
    width: 100%;
}

.audio-label {
    font-size: 0.9rem;
    margin-bottom: 5px;
    color: #444;
}

audio {
    width: 100%;
    height: 40px;
}

/* Teks Pertanyaan */
.question-text {
    font-size: 1.15rem;
    font-weight: 600;
    margin-bottom: 25px;
    line-height: 1.5;
}

/* Grid Pilihan Jawaban */
.options-grid {
    display: grid;
    gap: 12px;
}

/* Tombol Jawaban Biasa */
.option-btn {
    background: #fff;
    border: 2px solid #ddd;
    padding: 15px;
    text-align: left;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.2s;
    color: #444;
}

.option-btn:hover {
    background: #f9f9f9;
    border-color: #bbb;
}

/* Tombol Jawaban Pas Dipilih */
.option-btn.selected {
    background: #e8f0fe;
    border-color: #1a73e8; /* Biru Google */
    color: #1a73e8;
    font-weight: bold;
}

/* Tombol Jawaban Khusus Gambar (Listening) */
.option-btn img {
    max-width: 100px;
    display: block;
    margin: 0 auto;
}

/* Footer Navigasi */
.nav-bar {
    background: white;
    padding: 15px 20px;
    border-top: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-btn {
    padding: 10px 20px;
    border-radius: 6px;
    border: none;
    font-weight: 600;
    cursor: pointer;
    font-size: 0.95rem;
}

.nav-btn.secondary {
    background: #f0f0f0;
    color: #555;
}

.nav-btn.primary {
    background: #1a73e8;
    color: white;
}

.nav-btn.finish {
    background: #188038; /* Hijau sukses */
    color: white;
}

.nav-btn:hover {
    opacity: 0.9;
}

/* Responsive: Kalau di layar besar, container ada bayangan */
@media (min-width: 801px) {
    .app-container {
        margin: 20px auto;
        border-radius: 12px;
        min-height: calc(100vh - 40px);
    }
}

/* --- STYLE TAMBAHAN UNTUK BERANDA --- */

.welcome-card {
    padding: 40px;
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.welcome-card h1 {
    color: #1a73e8;
    margin-bottom: 10px;
    font-size: 2rem;
}

.subtitle {
    color: #666;
    margin-bottom: 30px;
    font-size: 1.1rem;
}

.rules-box {
    background: #f8f9fa;
    border: 1px solid #e0e0e0;
    padding: 25px;
    border-radius: 12px;
    text-align: left;
    margin-bottom: 30px;
}

.rules-box h3 {
    margin-bottom: 15px;
    color: #333;
}

.rules-box ul {
    list-style: none;
    padding: 0;
}

.rules-box li {
    margin-bottom: 12px;
    font-size: 1rem;
    color: #444;
}

.rules-box .note {
    margin-top: 20px;
    font-size: 0.9rem;
    color: #d93025; /* Merah peringatan */
    font-weight: 600;
}

.big-btn {
    width: 100%;
    padding: 15px;
    font-size: 1.2rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 4px 6px rgba(26, 115, 232, 0.2);
    transition: transform 0.2s;
}

.big-btn:hover {
    transform: translateY(-2px); /* Efek tombol naik dikit pas dihover */
}