:root {
  --paars: #4B2E83;
  --teal: #2FBBB0;
  --geel: #F4C23D;
  --rood: #E4402F;
  --inkt: #201A2B;
  --wit: #FFFFFF;
  --grijs-licht: #F4F2F7;
  --grijs-lijn: #E1DCEA;
  --focus: #1E6E67;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: 'Inter', system-ui, sans-serif;
  background: var(--grijs-licht);
  color: var(--inkt);
  line-height: 1.5;
}

a, button, input, select, textarea { font-family: inherit; }

button {
  cursor: pointer;
  border: none;
  border-radius: 8px;
  font-weight: 600;
}
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
}

/* ---------- Kopzone: paars met diagonale teal-streeptextuur (Variant C) ---------- */

.kop-zone {
  background: var(--paars);
  background-image: repeating-linear-gradient(
    45deg,
    rgba(47, 187, 176, 0.35) 0px,
    rgba(47, 187, 176, 0.35) 10px,
    transparent 10px,
    transparent 22px
  );
  color: var(--wit);
  padding: 0 24px;
}

.kop-zone__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
  flex-wrap: wrap;
  gap: 12px;
}

.merk {
  display: flex;
  align-items: baseline;
  gap: 10px;
  font-family: 'Archivo Black', sans-serif;
  letter-spacing: 0.5px;
  font-size: 1.15rem;
}
.merk small {
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  font-size: 0.7rem;
  opacity: 0.85;
  letter-spacing: 0.3px;
}

.gebruiker-info {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.9rem;
}
.rol-badge {
  background: var(--geel);
  color: var(--inkt);
  padding: 3px 10px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.75rem;
}
.uitlog-knop {
  background: transparent;
  color: var(--wit);
  border: 1px solid rgba(255,255,255,0.5);
  padding: 6px 12px;
  border-radius: 8px;
}
.uitlog-knop:hover { background: rgba(255,255,255,0.12); }
#help-knop {
  width: 30px;
  height: 30px;
  padding: 0;
  border-radius: 50%;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.tabs {
  display: flex;
  gap: 4px;
  padding-bottom: 0;
}
.tab {
  background: rgba(255,255,255,0.12);
  color: var(--wit);
  padding: 10px 18px;
  border-radius: 10px 10px 0 0;
  font-weight: 600;
  font-size: 0.92rem;
}
.tab.actief { background: var(--wit); color: var(--paars); }
.tab:hover:not(.actief) { background: rgba(255,255,255,0.22); }

/* Gele tag-label voor paginatitels */
.paginatitel-wrap { display: flex; align-items: center; gap: 14px; margin: 28px 0 20px; flex-wrap: wrap; }
.tag-label {
  background: var(--geel);
  color: var(--inkt);
  font-weight: 700;
  font-size: 0.72rem;
  letter-spacing: 0.4px;
  padding: 4px 12px;
  border-radius: 4px;
  transform: rotate(-2deg);
  display: inline-block;
}
.paginatitel { font-family: 'Archivo Black', sans-serif; font-size: 1.4rem; margin: 0; }

main { max-width: 1100px; margin: 0 auto; padding: 8px 24px 48px; }

.kaart {
  background: var(--wit);
  border: 1px solid var(--grijs-lijn);
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 20px;
}
.kaart-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; flex-wrap: wrap; gap: 10px; }
.kaart-header h2 { font-family: 'Archivo Black', sans-serif; font-size: 1.05rem; margin: 0; }

.knop-primair { background: var(--paars); color: var(--wit); padding: 10px 18px; }
.knop-primair:hover { background: #3c2468; }
.knop-secundair { background: var(--wit); color: var(--paars); border: 1.5px solid var(--paars); padding: 9px 16px; }
.knop-secundair:hover { background: var(--grijs-licht); }
.knop-teal { background: var(--teal); color: var(--inkt); padding: 9px 16px; }
.knop-teal:hover { background: #26a49a; }
.knop-gevaar { background: var(--rood); color: var(--wit); padding: 8px 14px; }
.knop-gevaar:hover { background: #c73325; }
.knop-klein { padding: 6px 12px; font-size: 0.85rem; border-radius: 6px; }

label { display: block; font-weight: 600; font-size: 0.88rem; margin-bottom: 5px; }
input[type=text], input[type=email], input[type=password], select, textarea {
  width: 100%;
  padding: 9px 11px;
  border: 1.5px solid var(--grijs-lijn);
  border-radius: 8px;
  font-size: 0.95rem;
  background: var(--wit);
}
textarea { resize: vertical; min-height: 90px; }
.veld { margin-bottom: 16px; }
.veld-rij { display: flex; gap: 14px; flex-wrap: wrap; }
.veld-rij > .veld { flex: 1; min-width: 200px; }

.melding { border: 1px solid var(--grijs-lijn); border-radius: 10px; padding: 14px 16px; margin-bottom: 10px; }
.melding-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; flex-wrap: wrap; }
.melding-meta { font-size: 0.82rem; color: #5b5468; margin-top: 4px; }
.melding-omschrijving { margin-top: 8px; }

.badge { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: 0.75rem; font-weight: 700; }
.badge-status-nieuw { background: #E8E4F2; color: var(--paars); }
.badge-status-in_behandeling { background: #D6F3F0; color: #157a72; }
.badge-status-afgerond { background: #DEF3DF; color: #1e7a24; }
.badge-status-wacht_op_onderdeel { background: #FCEBD3; color: #8a5a10; }
.badge-status-geparkeerd { background: #ECECEC; color: #555; }
.badge-status-wacht_op_melder { background: #FCEBD3; color: #8a5a10; }
.badge-status-geannuleerd { background: #F5D6D2; color: #942a1c; }

.badge-prio-laag { background: #ECECEC; color: #555; }
.badge-prio-normaal { background: #E8E4F2; color: var(--paars); }
.badge-prio-hoog { background: #FCEBD3; color: #8a5a10; }
.badge-prio-spoed { background: var(--rood); color: var(--wit); }

.melding.spoed { border-left: 5px solid var(--rood); }

.filters { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 16px; }
.filters select { width: auto; min-width: 150px; }

.fout { background: #FCEAE8; color: #942a1c; border: 1px solid #F3B7AF; border-radius: 8px; padding: 10px 14px; margin-bottom: 14px; font-size: 0.9rem; }
.succes { background: #E4F6E5; color: #1e6b23; border: 1px solid #B7DEB9; border-radius: 8px; padding: 10px 14px; margin-bottom: 14px; font-size: 0.9rem; }

.login-wrap {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--paars);
  background-image: repeating-linear-gradient(45deg, rgba(47,187,176,0.35) 0px, rgba(47,187,176,0.35) 10px, transparent 10px, transparent 22px);
}
.login-kaart {
  background: var(--wit);
  border-radius: 14px;
  padding: 36px 32px;
  width: 100%;
  max-width: 380px;
  box-shadow: 0 12px 32px rgba(0,0,0,0.25);
}
.login-titel { font-family: 'Archivo Black', sans-serif; font-size: 1.15rem; margin: 0 0 4px; }
.login-sub { color: #6b6478; font-size: 0.88rem; margin: 0 0 22px; }

.medewerker-formulier-wrap {
  max-width: 620px;
  margin: 32px auto 0;
}

table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
th, td { text-align: left; padding: 9px 10px; border-bottom: 1px solid var(--grijs-lijn); }
th { font-size: 0.78rem; text-transform: none; color: #6b6478; font-weight: 700; }

.historie-lijst { list-style: none; margin: 0; padding: 0; font-size: 0.85rem; }
.historie-lijst li { padding: 7px 0; border-bottom: 1px solid var(--grijs-lijn); }
.historie-lijst li:last-child { border-bottom: none; }
.historie-tijd { color: #8a8394; font-size: 0.78rem; }

.lege-staat { text-align: center; padding: 32px 12px; color: #6b6478; }

.checkbox-rij { display: flex; align-items: center; gap: 8px; margin-top: 10px; }
.checkbox-rij input { width: auto; }
.checkbox-rij label { margin: 0; font-weight: 500; }

@media (max-width: 640px) {
  main { padding: 8px 14px 40px; }
  .kop-zone { padding: 0 14px; }
  .tabs { overflow-x: auto; }
}
