:root {
    --bg: #f8fafc;
    --surface: #ffffff;
    --text: #1e293b;
    --muted: #64748b;
    --primary: #10b981; /* Hijau Konsisten */
    --border: rgba(0,0,0,0.05);
}

.dark-mode {
    --bg: #0f172a;
    --surface: #1e293b;
    --text: #f1f5f9;
    --muted: #94a3b8;
    --border: rgba(255,255,255,0.05);
}

body {
    background-color: var(--bg);
    color: var(--text);
    font-family: 'Inter', sans-serif;
    margin: 0;
    transition: 0.3s;
}

.app-container { max-width: 480px; margin: 0 auto; padding: 20px; min-height: 100vh; display: flex; flex-direction: column; }

/* Navigation */
.nav-top { display: flex; justify-content: space-between; margin-bottom: 20px; }
.btn-nav { background: var(--surface); border: 1px solid var(--border); color: var(--text); padding: 10px; border-radius: 12px; cursor: pointer; text-decoration: none; display: flex; }

body.dark-mode .moon-icon { display: none; }
body:not(.dark-mode) .sun-icon { display: none; }

/* Progress */
.progress-info { display: flex; justify-content: space-between; font-size: 0.85rem; font-weight: 600; margin-bottom: 8px; color: var(--muted); }
.progress-bar-bg { height: 8px; background: var(--border); border-radius: 10px; overflow: hidden; }
.progress-fill { height: 100%; background: var(--primary); transition: width 0.4s; }

/* Question Card */
.question-card { margin-top: 30px; }
h2 { font-size: 1.25rem; line-height: 1.6; margin-bottom: 25px; }

.options-grid { display: grid; gap: 12px; }
.btn-option {
    background: var(--surface); border: 1px solid var(--border);
    padding: 18px; border-radius: 15px; text-align: left;
    font-size: 1rem; color: var(--text); cursor: pointer; transition: 0.2s;
}

.btn-option.correct { background: var(--primary) !important; color: white; border-color: var(--primary); }
.btn-option.wrong { background: #ef4444 !important; color: white; border-color: #ef4444; }

.btn-primary {
    width: 100%; padding: 16px; background: var(--primary); color: white;
    border: none; border-radius: 15px; font-weight: 700; cursor: pointer; margin-top: 20px;
}

/* Tampilan Hasil Akhir */
.result-screen {
    text-align: center;
    padding: 20px 0;
    animation: fadeIn 0.5s ease;
}

.score-circle {
    width: 150px;
    height: 150px;
    border: 8px solid var(--primary);
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin: 0 auto 30px;
    background: var(--surface);
}

.score-value {
    font-size: 3rem;
    font-weight: 800;
    color: var(--primary);
}

.score-label {
    font-size: 0.8rem;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.result-detail {
    margin-bottom: 30px;
    font-size: 1.1rem;
}

.btn-outline {
    width: 100%;
    padding: 16px;
    background: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
    border-radius: 15px;
    font-weight: 700;
    cursor: pointer;
    margin-top: 10px;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}