:root {
    --bg-color: #f8fafc;
    --card-bg: #ffffff;
    --text-main: #1e293b;
    --text-muted: #64748b;
    --primary: #10b981;
    --border-color: rgba(0,0,0,0.05);
}

.dark-mode {
    --bg-color: #0f172a;
    --card-bg: #1e293b;
    --text-main: #f1f5f9;
    --text-muted: #94a3b8;
    --border-color: rgba(255,255,255,0.05);
}

body {
    background-color: var(--bg-color);
    color: var(--text-main);
    font-family: 'Inter', sans-serif;
    margin: 0;
    transition: background 0.3s ease;
}

.app-container { max-width: 500px; margin: 0 auto; padding: 20px; }

/* Header */
.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; }

/* Rect Card Styles */
.game-grid { display: grid; gap: 16px; }
.rect-card {
    display: flex; align-items: center; gap: 15px;
    background: var(--card-bg);
    padding: 18px;
    border-radius: 18px;
    text-decoration: none;
    color: inherit;
    border: 1px solid var(--border-color);
    transition: transform 0.2s;
}
.rect-card:active { transform: scale(0.97); }

.card-icon {
    width: 50px; height: 50px; border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    color: white;
}
.blue { background: #3b82f6; }
.green { background: #10b981; }
.orange { background: #f59e0b; }
.purple { background: #8b5cf6; }

.card-info h3 { margin: 0; font-size: 1.1rem; }
.card-info p { margin: 4px 0 10px; font-size: 0.85rem; color: var(--text-muted); }

/* Progress Bar */
.progress-wrapper { display: flex; align-items: center; gap: 10px; }
.progress-bar-bg { flex-grow: 1; height: 6px; background: var(--border-color); border-radius: 10px; overflow: hidden; }
.progress-fill { height: 100%; background: var(--primary); transition: width 0.4s ease; }
.progress-text { font-size: 0.75rem; font-weight: 600; min-width: 45px; }

/* Utility */
.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;
}
.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;
}
/* --- LOGIKA TAMPILAN IKON TEMA (TAMBAHKAN INI) --- */
.sun-icon {
    display: none; /* Sembunyikan matahari saat mode terang */
}

.dark-mode .sun-icon {
    display: block; /* Tampilkan matahari saat mode gelap */
}

.dark-mode .moon-icon {
    display: none; /* Sembunyikan bulan saat mode gelap */
}