/* ── Reset & basis ─────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --kleur-primair: #1a56db;
  --kleur-primair-donker: #1344b4;
  --kleur-achtergrond: #f4f6fb;
  --kleur-wit: #ffffff;
  --kleur-tekst: #1e293b;
  --kleur-subtiel: #64748b;
  --kleur-rand: #e2e8f0;
  --kleur-grijs: #6b7280;
  --kleur-blauw: #1a56db;
  --kleur-groen: #16a34a;
  --kleur-rood: #dc2626;
  --radius: 12px;
  --schaduw: 0 1px 3px rgba(0,0,0,.08), 0 4px 16px rgba(0,0,0,.06);
}

body {
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  background: var(--kleur-achtergrond);
  color: var(--kleur-tekst);
  line-height: 1.6;
  min-height: 100vh;
}

/* ── Navigatie ─────────────────────────────────────────────────────────────── */
nav {
  background: var(--kleur-wit);
  border-bottom: 1px solid var(--kleur-rand);
  position: sticky;
  top: 0;
  z-index: 100;
}

.nav-inner {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 1.25rem;
  display: flex;
  align-items: center;
  gap: 2rem;
  height: 60px;
}

.nav-logo {
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--kleur-primair);
  text-decoration: none;
  white-space: nowrap;
}

.nav-logo span {
  color: var(--kleur-tekst);
  font-weight: 400;
  font-size: .85rem;
  display: block;
  line-height: 1;
}

.nav-links {
  display: flex;
  gap: .25rem;
  list-style: none;
  flex-wrap: wrap;
}

.nav-links a {
  text-decoration: none;
  color: var(--kleur-subtiel);
  font-size: .9rem;
  padding: .4rem .75rem;
  border-radius: 8px;
  transition: background .15s, color .15s;
}

.nav-links a:hover,
.nav-links a.actief {
  background: #eff6ff;
  color: var(--kleur-primair);
}

/* ── Pagina-wrapper ─────────────────────────────────────────────────────────── */
.pagina {
  max-width: 900px;
  margin: 0 auto;
  padding: 2rem 1.25rem 4rem;
}

.pagina-titel {
  font-size: 1.7rem;
  font-weight: 700;
  margin-bottom: .4rem;
}

.pagina-subtitel {
  color: var(--kleur-subtiel);
  margin-bottom: 2rem;
}

/* ── Kaart ──────────────────────────────────────────────────────────────────── */
.kaart {
  background: var(--kleur-wit);
  border-radius: var(--radius);
  box-shadow: var(--schaduw);
  padding: 2rem;
}

/* ── Formulier ──────────────────────────────────────────────────────────────── */
.formulier-groep {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.veld label {
  display: block;
  font-weight: 600;
  font-size: .9rem;
  margin-bottom: .4rem;
  color: var(--kleur-tekst);
}

.veld input,
.veld textarea {
  width: 100%;
  padding: .65rem .9rem;
  border: 1.5px solid var(--kleur-rand);
  border-radius: 8px;
  font-size: 1rem;
  font-family: inherit;
  color: var(--kleur-tekst);
  background: var(--kleur-wit);
  transition: border-color .15s, box-shadow .15s;
  resize: vertical;
}

.veld input:focus,
.veld textarea:focus {
  outline: none;
  border-color: var(--kleur-primair);
  box-shadow: 0 0 0 3px rgba(26, 86, 219, .12);
}

.veld textarea { min-height: 100px; }

/* ── Knoppen ────────────────────────────────────────────────────────────────── */
.knop {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  padding: .65rem 1.4rem;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  font-size: 1rem;
  font-weight: 600;
  font-family: inherit;
  transition: background .15s, transform .1s;
}

.knop:active { transform: scale(.97); }

.knop-primair {
  background: var(--kleur-primair);
  color: #fff;
}

.knop-primair:hover { background: var(--kleur-primair-donker); }

.knop-stem {
  background: transparent;
  border: 1.5px solid var(--kleur-rand);
  color: var(--kleur-subtiel);
  padding: .4rem .9rem;
  font-size: .9rem;
  font-weight: 500;
  border-radius: 999px;
}

.knop-stem:hover {
  border-color: var(--kleur-primair);
  color: var(--kleur-primair);
  background: #eff6ff;
}

.knop-stem.gestemd {
  background: #eff6ff;
  border-color: var(--kleur-primair);
  color: var(--kleur-primair);
  cursor: default;
}

/* ── Melding ────────────────────────────────────────────────────────────────── */
.melding {
  display: none;
  padding: 1rem 1.25rem;
  border-radius: 8px;
  margin-bottom: 1.5rem;
  font-weight: 500;
}

.melding.succes {
  background: #f0fdf4;
  color: #15803d;
  border: 1px solid #bbf7d0;
}

.melding.fout {
  background: #fef2f2;
  color: #b91c1c;
  border: 1px solid #fecaca;
}

.melding.zichtbaar { display: block; }

/* ── Idee-kaartjes ──────────────────────────────────────────────────────────── */
.ideeen-lijst {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.idee-kaart {
  background: var(--kleur-wit);
  border-radius: var(--radius);
  box-shadow: var(--schaduw);
  padding: 1.4rem 1.6rem;
}

.idee-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}

.idee-naam {
  font-weight: 700;
  font-size: 1rem;
}

.idee-datum {
  font-size: .8rem;
  color: var(--kleur-subtiel);
  margin-top: .1rem;
}

.idee-sectie {
  margin-bottom: .75rem;
}

.idee-sectie-label {
  font-size: .75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: var(--kleur-subtiel);
  margin-bottom: .2rem;
}

.idee-sectie-tekst {
  font-size: .95rem;
  color: var(--kleur-tekst);
}

.idee-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 1rem;
  flex-wrap: wrap;
  gap: .5rem;
}

/* ── Status-badges ──────────────────────────────────────────────────────────── */
.badge {
  display: inline-block;
  padding: .25rem .75rem;
  border-radius: 999px;
  font-size: .78rem;
  font-weight: 600;
}

.badge-grijs   { background: #f1f5f9; color: var(--kleur-grijs); }
.badge-blauw   { background: #dbeafe; color: #1e40af; }
.badge-groen   { background: #dcfce7; color: #15803d; }
.badge-rood    { background: #fee2e2; color: #b91c1c; }

/* ── Lege staat ─────────────────────────────────────────────────────────────── */
.leeg {
  text-align: center;
  padding: 4rem 1rem;
  color: var(--kleur-subtiel);
}

.leeg-icoon { font-size: 3rem; margin-bottom: 1rem; }

/* ── Admin tabel ────────────────────────────────────────────────────────────── */
.tabel-wrapper {
  overflow-x: auto;
  border-radius: var(--radius);
  box-shadow: var(--schaduw);
}

table {
  width: 100%;
  border-collapse: collapse;
  background: var(--kleur-wit);
  font-size: .92rem;
}

thead tr {
  background: #f8fafc;
  border-bottom: 2px solid var(--kleur-rand);
}

th {
  padding: .85rem 1rem;
  text-align: left;
  font-weight: 700;
  color: var(--kleur-subtiel);
  font-size: .8rem;
  text-transform: uppercase;
  letter-spacing: .04em;
  white-space: nowrap;
}

td {
  padding: .9rem 1rem;
  border-bottom: 1px solid var(--kleur-rand);
  vertical-align: top;
}

tr:last-child td { border-bottom: none; }
tr:hover td { background: #fafafa; }

.tabel-naam  { font-weight: 600; }
.tabel-tekst { max-width: 220px; color: var(--kleur-subtiel); font-size: .88rem; }

select.status-select {
  padding: .35rem .6rem;
  border: 1.5px solid var(--kleur-rand);
  border-radius: 6px;
  font-size: .88rem;
  font-family: inherit;
  cursor: pointer;
  background: var(--kleur-wit);
  color: var(--kleur-tekst);
  transition: border-color .15s;
}

select.status-select:focus {
  outline: none;
  border-color: var(--kleur-primair);
}

/* ── Responsief ─────────────────────────────────────────────────────────────── */
@media (max-width: 600px) {
  .nav-inner { gap: 1rem; }
  .pagina-titel { font-size: 1.4rem; }
  .kaart { padding: 1.25rem; }
  .idee-kaart { padding: 1rem 1.1rem; }
  th, td { padding: .7rem .75rem; }
}
