:root {
    --primary: #4A90E2;
    --primary-dark: #357ABD;
    --bg-color: #F8F9FA;
    --text-main: #2C3E50;
    --card-bg: #FFFFFF;
}

* { box-sizing: border-box; margin: 0; padding: 0; font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; }

body { background-color: var(--bg-color); color: var(--text-main); line-height: 1.6; }

.container { max-width: 900px; margin: 0 auto; padding: 20px; }

header { background: var(--primary); color: white; padding: 15px 0; box-shadow: 0 4px 6px rgba(0,0,0,0.1); }
.header-flex { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 15px; }

nav button {
    background: transparent; border: none; color: white; font-size: 16px; font-weight: bold; padding: 8px 15px; cursor: pointer; border-bottom: 3px solid transparent; transition: 0.3s;
}
nav button.active, nav button:hover { border-bottom: 3px solid #FFC107; }

.tab-content { display: none; animation: fadeIn 0.5s; }
.tab-content.active { display: block; }

@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

.card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 20px; margin-top: 20px; }
.card { background: var(--card-bg); padding: 20px; border-radius: 12px; box-shadow: 0 4px 15px rgba(0,0,0,0.05); cursor: pointer; transition: transform 0.2s; border-left: 5px solid var(--primary); }
.card:hover { transform: translateY(-5px); }

.content-box { background: var(--card-bg); padding: 30px; border-radius: 12px; margin-top: 25px; box-shadow: 0 4px 15px rgba(0,0,0,0.05); }

.btn-primary, .btn-secondary {
    background: var(--primary); color: white; border: none; padding: 12px 24px; border-radius: 8px; font-size: 16px; cursor: pointer; transition: 0.3s; margin-top: 15px; font-weight: bold;
}
.btn-primary:hover { background: var(--primary-dark); }
.btn-secondary { background: #6C757D; } .btn-secondary:hover { background: #5A6268; }

.status-bar { display: flex; justify-content: space-between; font-weight: bold; background: #FFF3CD; color: #856404; padding: 10px 15px; border-radius: 8px; margin-bottom: 20px; }

.option-label { display: block; background: #F1F3F5; padding: 12px; margin-bottom: 10px; border-radius: 8px; cursor: pointer; transition: 0.2s; }
.option-label:hover { background: #E9ECEF; }
input[type="radio"] { margin-right: 10px; }

.score-text { font-size: 24px; font-weight: bold; color: var(--primary); text-align: center; margin: 20px 0; }
.pembahasan-item { margin-bottom: 20px; padding-bottom: 20px; border-bottom: 1px solid #EEE; }
.pembahasan-item.benar { border-left: 5px solid #28A745; padding-left: 15px; }
.pembahasan-item.salah { border-left: 5px solid #DC3545; padding-left: 15px; }
/* --- GAYA TAMBAHAN UNTUK MATERI INTERAKTIF --- */
.materi-header {
    margin-bottom: 20px;
    border-bottom: 2px solid #E9ECEF;
    padding-bottom: 15px;
}
.subtitle { color: #6C757D; font-size: 0.95em; }

.level-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}
.tab-level {
    flex: 1;
    background: #E9ECEF;
    border: none;
    padding: 10px;
    border-radius: 8px;
    font-weight: bold;
    cursor: pointer;
    color: #495057;
    transition: 0.3s;
}
.tab-level.active {
    background: #28A745; /* Warna hijau penanda level materi */
    color: white;
}
.tab-level:hover { background: #CED4DA; color: #212529; }
.tab-level.active:hover { background: #218838; color: white; }

.topik-title {
    font-size: 1.2em;
    color: var(--primary-dark);
    margin-bottom: 15px;
}
.materi-block {
    background: #F8F9FA;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 15px;
    border-left: 4px solid #6C757D;
}
.materi-block h5 { margin-bottom: 5px; color: #343A40; font-size: 1em; }

.contoh-box {
    background: #E8F4FD;
    border-left: 4px solid var(--primary);
}
.trik-box {
    background: #E6F4EA;
    border-left: 4px solid #28A745;
}
.animation-fade {
    animation: fadeIn 0.4s ease-in-out;
}