:root {
    --bg-color: #f8fafc;
    --card-bg: #ffffff;
    --text-main: #1e293b;
    --text-muted: #64748b;
    --primary: #10b981; /* Hijau Utama */
    --border: rgba(0,0,0,0.05);
}

.dark-mode {
    --bg-color: #0f172a;
    --card-bg: #1e293b;
    --text-main: #f1f5f9;
    --text-muted: #94a3b8;
    --border: rgba(255,255,255,0.05);
}

body {
    background-color: var(--bg-color);
    color: var(--text-main);
    font-family: 'Inter', -apple-system, sans-serif;
    margin: 0;
    transition: background 0.3s ease, color 0.3s ease;
}

.app-container { max-width: 480px; margin: 0 auto; padding: 20px; }

/* Navigation */
.header-nav { display: flex; justify-content: space-between; align-items: center; margin-bottom: 25px; }
.btn-icon-nav { 
    background: var(--card-bg); border: 1px solid var(--border); 
    color: var(--text-main); padding: 10px; border-radius: 12px; 
    cursor: pointer; text-decoration: none; display: flex; align-items: center;
}
.header { margin-bottom: 30px; padding-top: 20px; }
.header-content { display: flex; justify-content: space-between; align-items: center; }
h1 { font-size: 1.8rem; margin: 0; }
.header-content p { color: var(--text-muted); font-size: 0.9rem; margin: 5px 0 0; }

/* Theme Icons */
body.dark-mode .moon-icon { display: none; }
body:not(.dark-mode) .sun-icon { display: none; }

/* Resume Card (Kembali Hijau) */
.resume-card {
    background: var(--primary); color: white; padding: 20px;
    border-radius: 20px; margin-bottom: 25px; display: flex;
    justify-content: space-between; align-items: center;
    box-shadow: 0 10px 15px -3px rgba(16, 185, 129, 0.2);
}
.badge { font-size: 0.65rem; font-weight: 800; opacity: 0.9; letter-spacing: 1px; }
.btn-play { background: white; color: var(--primary); border: none; padding: 12px; border-radius: 50%; cursor: pointer; display: flex; }

.btn-back { 
    display: flex; align-items: center; justify-content: center; gap: 8px;
    margin-top: 30px; padding: 15px; background: var(--card-bg);
    border-radius: 12px; text-decoration: none; color: var(--text-main); font-weight: 600;
}

/* Rect Cards */
.juz-grid { display: grid; gap: 15px; }
.rect-card {
    display: flex; align-items: center; justify-content: space-between;
    background: var(--card-bg); padding: 20px; border-radius: 20px;
    text-decoration: none; color: inherit; border: 1px solid var(--border);
    transition: transform 0.2s, box-shadow 0.2s;
}
.rect-card:active { transform: scale(0.97); }

.card-info h3 { margin: 0 0 10px 0; font-size: 1.1rem; font-weight: 700; }
.progress-wrapper { display: flex; align-items: center; gap: 12px; }
.progress-bar-bg { flex-grow: 1; width: 120px; height: 6px; background: var(--border); border-radius: 10px; overflow: hidden; }
.progress-fill { height: 100%; background: var(--primary); transition: width 0.4s ease-out; }
.progress-text { font-size: 0.75rem; font-weight: 600; color: var(--text-muted); min-width: 65px; }
.arrow-icon { color: var(--text-muted); opacity: 0.5; }


.score-highlight {
    color: var(--primary);
    font-weight: 800;
}

.status-text {
    margin-top: 10px;
    font-weight: 600;
    color: var(--primary);
}

/* Animasi sederhana saat nilai muncul */
.result-screen {
    animation: scaleIn 0.3s ease-out;
}

@keyframes scaleIn {
    from { transform: scale(0.9); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}