:root {
  color-scheme: dark;
  --bg-body: #0b0f19;
  --bg-card: #131a2a;
  --bg-input: #1c2538;
  --border-color: #27324a;
  --text-main: #f1f5f9;
  --text-muted: #94a3b8;
  --accent-primary: #38bdf8;
  --accent-secondary: #f59e0b;
  --success: #10b981;
  --warning: #f59e0b;
  --danger: #ef4444;
  --radius: 12px;
}

:root[data-theme="light"] {
  color-scheme: light;
  --bg-body: #eef2f6;
  --bg-card: #ffffff;
  --bg-input: #f8fafc;
  --border-color: #cbd5e1;
  --text-main: #0f172a;
  --text-muted: #475569;
  --accent-primary: #2563eb;
  --accent-secondary: #d97706;
  --success: #059669;
  --warning: #d97706;
  --danger: #dc2626;
}

:root[data-theme="light"] .card {
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.05);
}

:root[data-theme="light"] .btn-primary {
  color: #ffffff;
}

:root[data-theme="light"] .btn-success {
  color: #ffffff;
}

:root[data-theme="light"] .alert-banner {
  color: #991b1b;
  background: rgba(239, 68, 68, 0.1);
}

:root[data-theme="light"] .alert-banner.priority {
  color: #92400e;
  background: rgba(245, 158, 11, 0.14);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  background-color: var(--bg-body);
  color: var(--text-main);
  line-height: 1.6;
  padding-bottom: 60px;
}

.container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 16px;
}

/* Navbar */
.navbar {
  background: var(--bg-card);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-color);
  position: sticky;
  top: 0;
  z-index: 100;
}

.nav-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 64px;
}

.brand {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-main);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 8px;
}

.brand span {
  color: var(--accent-primary);
}

.nav-links {
  display: flex;
  gap: 18px;
  align-items: center;
}

.nav-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 500;
  transition: color 0.2s;
}

.nav-links a:hover {
  color: var(--accent-primary);
}

.btn-admin-link {
  padding: 6px 12px;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  font-size: 0.85rem !important;
}

/* Hero */
.hero {
  text-align: center;
  padding: 48px 16px 32px;
}

.hero-badge {
  display: inline-block;
  background: rgba(56, 189, 248, 0.12);
  color: var(--accent-primary);
  border: 1px solid rgba(56, 189, 248, 0.3);
  padding: 4px 14px;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 600;
  margin-bottom: 14px;
}

.hero h1 {
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  font-weight: 800;
  margin-bottom: 12px;
}

.hero p {
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto;
}

/* Section & Card */
.section {
  margin-top: 36px;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 16px;
}

.section-title {
  font-size: 1.35rem;
  font-weight: 700;
}

.card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  padding: 20px;
}

/* Grid 2 kolom untuk Kalkulator & Tracker */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 20px;
}

/* Form & Inputs */
.form-group {
  margin-bottom: 14px;
}

.form-group label {
  display: block;
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-bottom: 6px;
}

input[type="text"],
input[type="password"],
input[type="email"],
input[type="number"],
input[type="date"],
input[type="month"],
textarea,
select {
  width: 100%;
  padding: 11px 14px;
  background: var(--bg-input);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  color: var(--text-main);
  font-size: 0.95rem;
  outline: none;
  transition: border-color 0.2s;
}

input:focus,
select:focus {
  border-color: var(--accent-primary);
}

/* Quick Preset Chips */
.preset-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}

.chip-btn {
  background: var(--bg-input);
  color: var(--text-muted);
  border: 1px solid var(--border-color);
  padding: 5px 11px;
  border-radius: 8px;
  font-size: 0.82rem;
  cursor: pointer;
  transition: all 0.2s;
}

.chip-btn:hover {
  border-color: var(--accent-primary);
  color: var(--accent-primary);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 18px;
  border-radius: 8px;
  font-size: 0.95rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: opacity 0.2s, transform 0.1s;
  white-space: nowrap;
}

.btn:active {
  transform: scale(0.98);
}

.btn-primary {
  background: var(--accent-primary);
  color: #0b0f19;
}

.btn-success {
  background: var(--success);
  color: #06281e;
  width: 100%;
}

.btn:hover {
  opacity: 0.9;
}

/* Calculator Output Box */
.calc-result {
  background: var(--bg-input);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  padding: 14px;
  margin-bottom: 16px;
}

.calc-row {
  display: flex;
  justify-content: space-between;
  padding: 6px 0;
  font-size: 0.92rem;
  border-bottom: 1px dashed var(--border-color);
}

.calc-row:last-child {
  border-bottom: none;
}

.calc-row strong {
  color: var(--accent-primary);
}

/* Search Bar */
.search-row {
  display: flex;
  gap: 10px;
}

.tracker-result {
  margin-top: 16px;
}

/* Badges */
.badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
}

.badge-info { background: rgba(56, 189, 248, 0.15); color: var(--accent-primary); }
.badge-warning { background: rgba(245, 158, 11, 0.15); color: var(--warning); }
.badge-success { background: rgba(16, 185, 129, 0.15); color: var(--success); }
.badge-danger { background: rgba(239, 68, 68, 0.15); color: var(--danger); }

/* Testimonials Grid */
.stats-pill {
  background: rgba(16, 185, 129, 0.15);
  color: var(--success);
  border: 1px solid rgba(16, 185, 129, 0.3);
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 600;
}

.testi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
}

.testi-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.testi-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 8px;
}

.testi-item {
  font-weight: 700;
  font-size: 1rem;
  color: var(--text-main);
}

.testi-meta {
  font-size: 0.83rem;
  color: var(--text-muted);
}

.testi-stars {
  color: var(--accent-secondary);
  font-size: 0.92rem;
  letter-spacing: 1px;
}

.testi-comment {
  font-size: 0.88rem;
  color: var(--text-main);
  background: var(--bg-input);
  padding: 10px;
  border-radius: 8px;
  font-style: italic;
}

.empty-state {
  text-align: center;
  padding: 28px;
  color: var(--text-muted);
  font-size: 0.92rem;
}

@media (max-width: 600px) {
  .nav-links a:not(.btn-admin-link) {
    display: none;
  }
}