:root {
  --blauw: #2563eb;
  --groen: #16a34a;
  --rood: #dc2626;
  --grijs: #64748b;
  --bg: #f8fafc;
  --kaart: #ffffff;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: var(--bg);
  color: #0f172a;
}

header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  background: var(--kaart);
  border-bottom: 1px solid #e2e8f0;
  position: sticky;
  top: 0;
  flex-wrap: wrap;
  gap: 8px;
}

h1 { font-size: 20px; margin: 0; }

nav { display: flex; gap: 8px; flex-wrap: wrap; }
.hidden { display: none !important; }

main {
  max-width: 560px;
  margin: 0 auto;
  padding: 16px;
}

.kaart {
  background: var(--kaart);
  border-radius: 14px;
  padding: 20px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
  margin-bottom: 16px;
}

label {
  display: block;
  font-weight: 600;
  margin: 14px 0 6px;
  font-size: 14px;
}

input[type=password], input[type=text], select {
  width: 100%;
  padding: 12px;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  font-size: 16px;
}

button {
  cursor: pointer;
  border: none;
  border-radius: 10px;
  font-size: 16px;
  font-weight: 600;
  padding: 12px 16px;
}

.primary {
  background: var(--blauw);
  color: white;
  width: 100%;
  margin-top: 16px;
}
.primary:disabled { background: #94a3b8; cursor: wait; }

.linkbtn {
  background: #eef2ff;
  color: var(--blauw);
  padding: 8px 12px;
  font-size: 14px;
}

.fout {
  color: var(--rood);
  font-size: 14px;
  margin-top: 8px;
}

.foto-upload {
  border: 2px dashed #cbd5e1;
  border-radius: 12px;
  padding: 20px;
  text-align: center;
  margin-top: 10px;
}

.thumbs { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.thumbs img { width: 70px; height: 70px; object-fit: cover; border-radius: 8px; border: 1px solid #cbd5e1; }

.laadtekst { text-align: center; color: var(--grijs); padding: 30px 0; }

.vraag-kop { font-size: 13px; color: var(--grijs); margin-bottom: 4px; }
.vraag-tekst { font-size: 18px; font-weight: 600; margin-bottom: 14px; line-height: 1.4; }

.opties { display: flex; flex-direction: column; gap: 10px; }
.optie {
  display: block;
  border: 2px solid #e2e8f0;
  border-radius: 10px;
  padding: 12px;
  cursor: pointer;
  font-size: 16px;
}
.optie.gekozen { border-color: var(--blauw); background: #eef2ff; }

textarea {
  width: 100%;
  min-height: 90px;
  padding: 12px;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  font-size: 16px;
  font-family: inherit;
}

.vooruitgang { font-size: 13px; color: var(--grijs); margin-bottom: 10px; }

.resultaat-item { border-bottom: 1px solid #e2e8f0; padding: 12px 0; }
.resultaat-item:last-child { border-bottom: none; }
.goed { color: var(--groen); font-weight: 700; }
.fout-antwoord { color: var(--rood); font-weight: 700; }
.feedback { font-size: 14px; color: var(--grijs); margin-top: 4px; }

.score-groot { font-size: 40px; font-weight: 800; text-align: center; margin: 10px 0; }

table { width: 100%; border-collapse: collapse; font-size: 14px; }
th, td { text-align: left; padding: 8px 6px; border-bottom: 1px solid #e2e8f0; }
