/* =========================
   BASIS & RESET
========================= */
* {
  box-sizing: border-box;
}

:root {
  --primary: #0b4aa2;
  --primary-dark: #083578;
  --bg: #f4f6fb;
  --card: #ffffff;
  --border: #e5e7ef;
  --text: #111827;
  --muted: #6b7280;
  --ok-bg: #e8ffea;
  --ok-border: #bff2c5;
  --err-bg: #ffe5e5;
  --err-border: #ffb6b6;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
}

/* =========================
   LAYOUT
========================= */
.container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 20px;
}

.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 18px;
}

.brand {
  font-weight: 800;
  font-size: 20px;
}

/* =========================
   NAVIGATIE
========================= */
.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 16px;
}

.nav a {
  font-weight: 700;
  color: var(--primary);
  text-decoration: none;
}

.nav a:hover {
  text-decoration: underline;
}

/* =========================
   CARD
========================= */
.card {
  background: var(--card);
  border-radius: 16px;
  padding: 22px;
  box-shadow: 0 8px 24px rgba(0,0,0,.08);
  margin-bottom: 20px;
}

/* =========================
   TEKST
========================= */
h1 {
  font-size: 22px;
  margin: 0 0 14px;
}

h2 {
  font-size: 16px;
  margin: 20px 0 10px;
}

p {
  margin: 8px 0;
  line-height: 1.45;
}

.small {
  font-size: 13px;
  color: var(--muted);
}

/* =========================
   FORMULIEREN
========================= */
label {
  display: block;
  font-weight: 700;
  margin: 12px 0 6px;
}

input[type=text],
input[type=password],
input[type=number],
select {
  width: 100%;
  padding: 11px 14px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: #fff;
  font-size: 14px;
}

input:focus,
select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 2px rgba(11,74,162,.15);
}

/* =========================
   KNOPPEN
========================= */
button {
  padding: 11px 16px;
  border-radius: 14px;
  border: 0;
  cursor: pointer;
  font-weight: 800;
  background: var(--primary);
  color: #fff;
  margin-top: 14px;
}

button:hover {
  background: var(--primary-dark);
}

button.secondary {
  background: #e5e7eb;
  color: #111;
}

button.secondary:hover {
  background: #d1d5db;
}

/* =========================
   MELDINGEN
========================= */
.alert {
  padding: 12px 14px;
  border-radius: 14px;
  margin-bottom: 14px;
  font-weight: 600;
}

.alert.ok {
  background: var(--ok-bg);
  border: 1px solid var(--ok-border);
}

.alert.error {
  background: var(--err-bg);
  border: 1px solid var(--err-border);
}

/* =========================
   TABELLEN
========================= */
table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 10px;
}

th,
td {
  padding: 10px;
  text-align: left;
  border-bottom: 1px solid var(--border);
  font-size: 14px;
  vertical-align: top;
}

th {
  background: #f8f9fd;
  font-weight: 800;
}

/* =========================
   BADGES
========================= */
.badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 12px;
  background: #eef2ff;
  font-weight: 700;
}

/* =========================
   LINKS
========================= */
a {
  color: var(--primary);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* =========================
   MOBIEL
========================= */
@media (max-width: 720px) {
  .container {
    padding: 14px;
  }

  table,
  thead,
  tbody,
  th,
  td,
  tr {
    display: block;
  }

  th {
    display: none;
  }

  tr {
    margin-bottom: 14px;
  }

  td {
    border-bottom: none;
    padding: 6px 0;
  }
}
