/* ═══════════════════════════════════════════════════════════════
   settings.css — Settings-pagina Alimentatietool 2026
   ═══════════════════════════════════════════════════════════════ */

/* Erft de design-tokens van app.css (beide geladen op settings.html) */

.settings-wrapper {
  max-width: 960px;
  margin: 0 auto;
  padding: 16px;
}

/* ── Settings-header ─────────────────────────────────────────── */
.settings-header {
  background: var(--kleur-blauw);
  color: var(--kleur-wit);
  padding: 20px 32px;
  border-radius: var(--radius) var(--radius) 0 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.settings-header h1 { font-size: 1.2rem; font-weight: 700; }
.settings-header .terug-link {
  color: rgba(255,255,255,0.8);
  text-decoration: none;
  font-size: 0.9rem;
}
.settings-header .terug-link:hover { color: var(--kleur-wit); }

/* ── Tabs ─────────────────────────────────────────────────────── */
.settings-tabs {
  background: var(--kleur-primair-donker);
  display: flex;
  padding: 0 32px;
  overflow-x: auto;
  gap: 2px;
}
.settings-tab {
  padding: 10px 18px;
  color: rgba(255,255,255,0.65);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  border-bottom: 3px solid transparent;
  white-space: nowrap;
  background: none;
  border-top: none;
  border-left: none;
  border-right: none;
  font-family: var(--lettertype);
  transition: all 0.15s;
}
.settings-tab.actief {
  color: var(--kleur-wit);
  border-bottom-color: #7dffbc;
}
.settings-tab:hover:not(.actief) { color: rgba(255,255,255,0.85); }

/* ── Settings-inhoud ──────────────────────────────────────────── */
.settings-inhoud {
  background: var(--kleur-wit);
  border-radius: 0 0 var(--radius) var(--radius);
  padding: 32px;
  box-shadow: var(--schaduw);
}

.settings-sectie {
  display: none;
}
.settings-sectie.actief {
  display: block;
}

.settings-sectie-titel {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--kleur-blauw);
  margin-bottom: 6px;
}
.settings-sectie-beschrijving {
  color: var(--kleur-tekst-licht);
  font-size: 0.88rem;
  margin-bottom: 24px;
}

/* ── Settings-groepen ─────────────────────────────────────────── */
.settings-groep {
  border: 1px solid var(--kleur-rand);
  border-radius: var(--radius-klein);
  margin-bottom: 20px;
  overflow: hidden;
}
.settings-groep-titel {
  background: var(--kleur-achtergrond);
  padding: 10px 16px;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--kleur-tekst);
  border-bottom: 1px solid var(--kleur-rand);
}
.settings-groep-inhoud {
  padding: 16px;
}

/* ── Settings-rijen ───────────────────────────────────────────── */
.settings-rij {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid #f5f5f5;
}
.settings-rij:last-child { border-bottom: none; }
.settings-rij-label { font-size: 0.88rem; font-weight: 600; }
.settings-rij-toelichting { font-size: 0.78rem; color: var(--kleur-tekst-licht); margin-top: 2px; }
.settings-rij-invoer { display: flex; align-items: center; gap: 8px; }
.settings-rij-invoer input[type="number"],
.settings-rij-invoer input[type="text"],
.settings-rij-invoer select {
  padding: 6px 10px;
  border: 1.5px solid var(--kleur-rand);
  border-radius: var(--radius-klein);
  font-size: 0.88rem;
  font-family: var(--lettertype);
  width: 140px;
  text-align: right;
}
.settings-rij-invoer .eenheid {
  font-size: 0.82rem;
  color: var(--kleur-tekst-licht);
  white-space: nowrap;
}

/* ── Jaar-selector ────────────────────────────────────────────── */
.jaar-selector {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}
.jaar-knop {
  padding: 10px 20px;
  border: 2px solid var(--kleur-rand);
  border-radius: var(--radius-klein);
  background: var(--kleur-wit);
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s;
}
.jaar-knop.actief {
  background: var(--kleur-blauw);
  color: var(--kleur-wit);
  border-color: var(--kleur-blauw);
}
.jaar-knop:hover:not(.actief) { background: var(--kleur-blauw-licht); border-color: var(--kleur-blauw); }

/* ── JSON import/export ───────────────────────────────────────── */
.json-area {
  width: 100%;
  min-height: 200px;
  font-family: 'Courier New', monospace;
  font-size: 0.8rem;
  padding: 12px;
  border: 1.5px solid var(--kleur-rand);
  border-radius: var(--radius-klein);
  resize: vertical;
  background: #fafafa;
}
.json-actie-rij {
  display: flex;
  gap: 10px;
  margin-top: 10px;
  flex-wrap: wrap;
}

/* ── Statusmelding ────────────────────────────────────────────── */
.status-melding {
  padding: 10px 16px;
  border-radius: var(--radius-klein);
  font-size: 0.88rem;
  margin-bottom: 16px;
  display: none;
}
.status-melding.succes { background: #e8f7ed; color: #1e6b4a; border: 1px solid #a8d9b8; display: block; }
.status-melding.fout   { background: #fdf0ef; color: #c0392b; border: 1px solid #f5c6c4; display: block; }

/* ── Schijven-tabel ───────────────────────────────────────────── */
.schijven-tabel {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.87rem;
}
.schijven-tabel th {
  background: var(--kleur-achtergrond);
  padding: 8px 12px;
  font-weight: 700;
  border-bottom: 2px solid var(--kleur-rand);
  text-align: left;
}
.schijven-tabel td {
  padding: 8px 12px;
  border-bottom: 1px solid #f0f0f0;
}
.schijven-tabel td input {
  width: 120px;
  padding: 5px 8px;
  border: 1.5px solid var(--kleur-rand);
  border-radius: var(--radius-klein);
  text-align: right;
}

/* ── Reset-knop ───────────────────────────────────────────────── */
.btn-reset {
  background: #fdf0ef;
  color: #c0392b;
  border: 1.5px solid #f5c6c4;
  padding: 8px 16px;
  border-radius: var(--radius-klein);
  cursor: pointer;
  font-size: 0.85rem;
  font-family: var(--lettertype);
  transition: all 0.15s;
}
.btn-reset:hover { background: #fbdcda; }

@media (max-width: 600px) {
  .settings-inhoud { padding: 20px 16px; }
  .settings-rij { grid-template-columns: 1fr; }
  .settings-rij-invoer input { width: 100%; }
}
