/* Konfigurasi Warna Terang (Light Mode) */
:root {
    --primary: #6366f1;
    --primary-hover: #4f46e5;
    --bg: #f8fafc;
    --card: #ffffff;
    --text-main: #1e293b;
    --text-muted: #64748b;
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;
    --border-color: #e2e8f0;
    --hover-bg: #f5f3ff;
}

/* Konfigurasi Warna Gelap (Dark Mode) */
body.dark-mode {
    --bg: #0f172a;
    --card: #1e293b;
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --border-color: #334155;
    --hover-bg: #312e81;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body { 
    font-family: 'Inter', sans-serif; 
    background-color: var(--bg); 
    color: var(--text-main); 
    line-height: 1.6; 
    padding: 20px; 
    transition: background-color 0.3s ease, color 0.3s ease; 
}

.container { 
    max-width: 700px; 
    margin: 40px auto; 
    background: var(--card); 
    padding: 32px; 
    border-radius: 16px; 
    box-shadow: 0 10px 25px -5px rgba(0,0,0,0.1); 
    position: relative; 
    transition: background-color 0.3s ease; 
}

/* Language & Dark Mode Toggle Buttons */
.lang-toggle, .dark-mode-toggle { 
    position: absolute; 
    top: 24px; 
    background: var(--border-color); 
    color: var(--text-main);
    border: none; 
    padding: 6px 12px; 
    border-radius: 20px; 
    font-weight: 600; 
    cursor: pointer; 
    transition: 0.2s; 
    font-size: 0.85rem; 
}
.lang-toggle { right: 24px; }
.dark-mode-toggle { right: 90px; }
.lang-toggle:hover, .dark-mode-toggle:hover { filter: brightness(0.9); }

/* Menu Grid */
.menu-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 16px; margin-top: 24px; margin-bottom: 24px; }
.menu-card { padding: 16px; border: 2px solid var(--border-color); border-radius: 12px; cursor: pointer; transition: all 0.2s; text-align: center; color: var(--text-main); }
.menu-card:hover { border-color: var(--primary); background: var(--hover-bg); transform: translateY(-2px); }
.menu-card span { font-size: 2rem; display: block; margin-bottom: 8px; }
.menu-card h3 { font-size: 0.95rem; }

.hidden { display: none !important; }
.progress-container { height: 8px; background: var(--border-color); border-radius: 4px; margin: 24px 0; overflow: hidden; }
#progress-bar { height: 100%; background: var(--primary); width: 0%; transition: width 0.3s ease; }

.question-text { font-size: 1.1rem; font-weight: 600; margin-bottom: 24px; }
.options-grid { display: grid; gap: 12px; }
.option-btn { padding: 14px; border: 1px solid var(--border-color); border-radius: 8px; background: var(--card); color: var(--text-main); cursor: pointer; text-align: left; transition: 0.2s; font-size: 0.95rem; }
.option-btn:hover { background: var(--hover-bg); border-color: var(--primary); }

.score-circle { width: 100px; height: 100px; border-radius: 50%; display: flex; align-items: center; justify-content: center; margin: 24px auto; font-size: 2rem; font-weight: 700; color: white; }
.dimension-summary { margin-top: 24px; text-align: left; background: var(--bg); padding: 16px; border-radius: 8px; }
.dimension-item { display: flex; justify-content: space-between; margin-bottom: 8px; font-size: 0.9rem; border-bottom: 1px solid var(--border-color); padding-bottom: 4px; }
.recommendation-box { margin-top: 24px; padding: 20px; border-left: 5px solid var(--primary); background: var(--hover-bg); border-radius: 4px; text-align: left; }

.btn-primary { margin-top: 24px; padding: 12px 24px; background: var(--primary); color: white; border: none; border-radius: 8px; cursor: pointer; font-weight: 600; width: 100%; transition: 0.2s; }
.btn-primary:hover { background: var(--primary-hover); }
.btn-secondary { padding: 12px 24px; background: var(--border-color); color: var(--text-main); border: none; border-radius: 8px; cursor: pointer; font-weight: 600; width: 100%; transition: 0.2s; }
.btn-secondary:hover { filter: brightness(0.9); }

.history-list { margin-top: 20px; text-align: left; }
.history-item { background: var(--bg); border: 1px solid var(--border-color); padding: 16px; border-radius: 8px; margin-bottom: 12px; }
.history-header { display: flex; justify-content: space-between; font-weight: 600; margin-bottom: 8px; }
.history-details { font-size: 0.85rem; color: var(--text-muted); }

.disclaimer { font-size: 0.75rem; color: var(--text-muted); margin-top: 20px; text-align: center; }
.seo-section { margin-top: 40px; padding: 20px; background: var(--bg); border: 1px solid var(--border-color); border-radius: 8px; font-size: 0.9rem; color: var(--text-muted); text-align: left;}
.seo-section h2 { font-size: 1.1rem; color: var(--text-main); margin-bottom: 12px; }
.seo-section ul { margin-left: 20px; margin-bottom: 12px; line-height: 1.6; }