:root {
  --oranje: #EF6238;
  --oranje2: #F38056;
  --oranje3: #F59B75;
  --oranje4: #F9B895;
  --donker: #35363A;
  --grijs: #919092;
  --licht: #FAFAFA;
  --rand: #E4E2E2;
  --tint: #FEF1EB;
}
* { box-sizing: border-box; }
html { font-size: 16px; }
body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background: var(--licht);
  color: var(--donker);
  line-height: 1.45;
}
a { color: var(--oranje); text-decoration: none; }
a:hover { text-decoration: underline; }

.pagina { min-height: 100vh; }
.zijbalk {
  position: fixed; top: 0; left: 0; bottom: 0; width: 250px; z-index: 20;
  background: var(--donker); color: #fff;
  padding: 22px 18px; display: flex; flex-direction: column;
  overflow-y: auto;
}
.zijbalk .logo { display: block; margin-bottom: 26px; }
.zijbalk .logo img { width: 100%; height: auto; display: block; }
.zijbalk nav { display: flex; flex-direction: column; gap: 2px; flex: 1; }
.zijbalk nav a {
  color: #fff; padding: 10px 12px; border-radius: 6px;
  border-left: 4px solid transparent; font-weight: 500;
}
.zijbalk nav a:hover { background: rgba(255,255,255,.08); text-decoration: none; }
.zijbalk nav a.actief { background: rgba(239,98,56,.18); border-left-color: var(--oranje); }
.zijbalk .gebruiker { color: var(--grijs); font-size: .9rem; padding-top: 14px; border-top: 1px solid rgba(255,255,255,.12); }
.zijbalk .gebruiker a { color: var(--oranje4); }

main { margin-left: 250px; padding: 30px 36px 60px; max-width: 1430px; min-width: 0; }
h1 { margin: 0 0 22px; font-size: 1.7rem; }
h1::after { content: ""; display: block; width: 56px; height: 4px; background: var(--oranje); margin-top: 8px; border-radius: 2px; }
h2 { font-size: 1.15rem; margin: 0 0 12px; }

.kaart { background: #fff; border: 1px solid var(--rand); border-radius: 10px; padding: 20px 22px; margin-bottom: 22px; }
.kaarten { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 18px; margin-bottom: 22px; }
.kaarten .kaart { margin-bottom: 0; }
.groot { font-size: 1.5rem; font-weight: 700; }
.klein { color: var(--grijs); font-size: .9rem; }

.melding { padding: 11px 14px; border-radius: 8px; margin-bottom: 14px; border-left: 5px solid; background: #fff; }
.melding.ok { border-color: #2E7D32; background: #EEF7EE; }
.melding.fout { border-color: #C62828; background: #FCEEEE; }
.melding.waarschuwing { border-color: #E39B16; background: #FFF6E0; }

table { width: 100%; border-collapse: collapse; background: #fff; }
.tabel-wrap { overflow-x: auto; border: 1px solid var(--rand); border-radius: 10px; background: #fff; margin-bottom: 22px; }
.tabel-wrap table { margin: 0; }
th { text-align: left; font-size: .8rem; text-transform: uppercase; letter-spacing: .04em; color: var(--donker); background: var(--oranje4); padding: 10px 12px; white-space: nowrap; }
td { padding: 10px 12px; border-top: 1px solid var(--rand); vertical-align: top; }
tr:hover td { background: var(--tint); }
tr.dagkop td { background: var(--donker); color: #fff; font-weight: 700; border-top: 0; }
tr.dagkop:hover td { background: var(--donker); }

.badge { display: inline-block; padding: 2px 9px; border-radius: 99px; font-size: .78rem; font-weight: 600; border: 1px solid var(--grijs); color: var(--donker); background: #fff; }
.badge.stream { background: var(--oranje); border-color: var(--oranje); color: #fff; }
.badge.studio { background: var(--donker); border-color: var(--donker); color: #fff; }
.badge.locatie { background: var(--oranje2); border-color: var(--oranje2); color: #fff; }
.badge.opname { background: var(--oranje4); border-color: var(--oranje4); }
.badge.uit { background: #eee; color: var(--grijs); }
.probleem { color: #C62828; font-weight: 600; }
.stip { display: inline-block; width: 11px; height: 11px; border-radius: 50%; margin-right: 6px; background: #C62828; }
.stip.aan { background: #2E7D32; }

form.rij { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 14px 18px; align-items: end; }
label { display: block; font-weight: 600; font-size: .9rem; margin-bottom: 4px; }
input[type=text], input[type=password], input[type=time], input[type=search], input[type=url], select, textarea {
  width: 100%; padding: 9px 10px; border: 1px solid #C9C7C7; border-radius: 7px; font: inherit; background: #fff; color: var(--donker);
}
input:focus, select:focus, textarea:focus { outline: 2px solid var(--oranje3); border-color: var(--oranje); }
.vink { display: flex; align-items: center; gap: 8px; padding-bottom: 9px; }
.vink input { width: 18px; height: 18px; accent-color: var(--oranje); }
.vink label { margin: 0; }
.breed { grid-column: 1 / -1; }

button, .knop {
  display: inline-block; font: inherit; font-weight: 600; cursor: pointer;
  background: var(--oranje); color: #fff; border: 0; border-radius: 7px; padding: 9px 16px;
}
button:hover, .knop:hover { background: var(--oranje2); text-decoration: none; }
button.zacht, .knop.zacht { background: #fff; color: var(--donker); border: 1px solid #C9C7C7; }
button.zacht:hover, .knop.zacht:hover { background: var(--tint); }
button.gevaar { background: #fff; color: #C62828; border: 1px solid #C62828; }
button.gevaar:hover { background: #FCEEEE; }
.acties { white-space: nowrap; }
.acties form { display: inline; }
.acties button, .acties .knop { padding: 4px 10px; font-size: .85rem; }

.tabs { display: flex; gap: 8px; margin-bottom: 14px; flex-wrap: wrap; }
.paginering { display: flex; gap: 8px; align-items: center; margin-top: 4px; }
.chips { display: flex; gap: 6px; flex-wrap: wrap; margin: 8px 0 14px; }
.chip { padding: 4px 12px; border-radius: 99px; background: var(--oranje4); font-weight: 600; font-size: .85rem; }
.chip.jingle { background: var(--donker); color: #fff; }

pre.log { background: var(--donker); color: #EDEDED; padding: 14px 16px; border-radius: 10px; overflow-x: auto; font-size: .82rem; line-height: 1.5; margin: 0; }
pre.log .fout { color: #FF8A80; font-weight: 700; }
pre.log .gebeurtenis { color: var(--oranje4); }

body.inlog { background: var(--donker); display: flex; align-items: center; justify-content: center; min-height: 100vh; padding: 20px; }
.inlogkaart { width: 100%; max-width: 400px; }
.inlogkaart img { width: 100%; height: auto; display: block; margin-bottom: 26px; }
.inlogkaart .kaart { border: 0; }

.zijbalk .gebruiker .rol { color: var(--oranje4); font-weight: 600; }
form.inline { display: flex; gap: 6px; align-items: center; }
form.inline select { min-width: 190px; }
.vinkenlijst { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 6px 16px; margin-top: 6px; }
.vinkitem { display: flex; align-items: center; gap: 8px; font-weight: 500; margin: 0; }
.vinkitem input { width: 18px; height: 18px; accent-color: var(--oranje); }
audio { width: 300px; max-width: 100%; height: 36px; }
code { background: #F1EFEF; padding: 1px 6px; border-radius: 4px; font-size: .9em; }

@media (max-width: 860px) {
  .zijbalk { width: 188px; padding: 14px 10px; }
  .zijbalk nav a { padding: 8px 8px; font-size: .92rem; }
  .zijbalk .gebruiker { font-size: .8rem; }
  main { margin-left: 188px; padding: 18px 12px 50px; }
  audio { width: 220px; }
}
