/* assets/css/portaal.css — Waahan Ouderportaal */

:root {
  --groen:       #2C5F2E;
  --groen-dark:  #1A3D1C;
  --groen-light: #3d7a40;
  --goud:        #D4A843;
  --goud-light:  #e8c06a;
  --bg:          #111a12;
  --bg2:         #172018;
  --card:        #1e2d1f;
  --card2:       #243326;
  --border:      rgba(212,168,67,.18);
  --border2:     rgba(255,255,255,.07);
  --text:        #f0ead8;
  --text-muted:  #8fa891;
  --input-bg:    #162117;
  --badge-ok:    #2a6b2c;
  --badge-warn:  #7a5a10;
  --badge-red:   #6b2a2a;
  --sidebar-w:   240px;
  --topbar-h:    60px;
  --radius:      14px;
  --shadow:      0 4px 24px rgba(0,0,0,.45);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  font-size: 15px;
  /* Gebruik dynamic viewport height zodat adresbalk geen layout shift veroorzaakt */
  height: -webkit-fill-available;
}

body {
  font-family: 'Nunito', sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  min-height: -webkit-fill-available;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--goud); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ── Layout ─────────────────────────────────────────── */
.portaal-layout {
  display: flex;
  min-height: 100vh;
}

/* ── Sidebar ─────────────────────────────────────────── */
.sidebar {
  width: var(--sidebar-w);
  background: var(--groen-dark);
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0; left: 0;
  height: 100vh;
  z-index: 200;
  transition: transform .3s cubic-bezier(.4,0,.2,1);
  border-right: 1px solid rgba(255,255,255,.06);
}
.sidebar-logo {
  padding: 22px 20px 18px;
  border-bottom: 1px solid rgba(255,255,255,.07);
}
.sidebar-logo .bus { font-size: 28px; }
.sidebar-logo h1 {
  font-family: 'Baloo 2', sans-serif;
  font-size: 20px;
  color: var(--goud);
  line-height: 1.1;
}
.sidebar-logo p { font-size: 11px; color: var(--text-muted); }

.sidebar-nav { flex: 1; padding: 12px 0; overflow-y: auto; }

.nav-section {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--text-muted);
  padding: 14px 20px 6px;
}
.nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 20px;
  font-size: 14px;
  font-weight: 600;
  color: rgba(240,234,216,.7);
  cursor: pointer;
  border-left: 3px solid transparent;
  transition: all .15s;
  text-decoration: none;
}
.nav-item:hover { background: rgba(255,255,255,.06); color: var(--text); }
.nav-item.actief {
  border-left-color: var(--goud);
  background: rgba(212,168,67,.12);
  color: var(--goud);
}
.nav-item .ic { font-size: 16px; width: 20px; text-align: center; }

.sidebar-footer {
  padding: 16px 20px;
  border-top: 1px solid rgba(255,255,255,.06);
}
.sidebar-footer .ouder-naam {
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.sidebar-footer .logout-link {
  font-size: 12px;
  color: var(--text-muted);
  cursor: pointer;
  display: inline-block;
  margin-top: 4px;
}
.sidebar-footer .logout-link:hover { color: #ff8080; }
/* ── Topbar (mobile) ─────────────────────────────────── */
.topbar {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--topbar-h);

  background: var(--groen-dark);
  border-bottom: 1px solid rgba(255,255,255,.06);

  grid-template-columns: 1fr auto 1fr;
  align-items: center;

  padding: 0 12px;
  z-index: 300;
}

.topbar-left {
  justify-self: start;
  display: flex;
  align-items: center;
  gap: 4px;

  font-size: 11px;
  font-weight: 700;
  color: var(--text);

  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 120px;
}

.topbar-center {
    justify-self: center;
    text-align: center;
}

.topbar-brand-title {
    font-family: 'Baloo 2', sans-serif;
    font-size: 13px;
    font-weight: 600;
    color: var(--goud);
    line-height: 1;
}

.topbar-brand-subtitle {
    font-size: 9px;
    font-weight: 800;
    color: var(--text-muted);
    line-height: 1.1;
    margin-top: 2px;
}

.topbar-right {
  justify-self: end;
}

.topbar-right a {
  display: flex;
  align-items: center;
  gap: 4px;

  font-size: 11px;
  color: var(--text-muted);
  text-decoration: none;
  white-space: nowrap;
}

.topbar-right a:hover {
  color: var(--goud);
  text-decoration: none;
}

.topbar-left .foot-ic svg,
.topbar-right .foot-ic svg {
  width: 11px;
  height: 11px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.topbar-logo {
  height: 40px;
  width: auto;
  display: block;
}

/* Overlay */
.sidebar-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.6);
  z-index: 190;
}
.sidebar-overlay.zichtbaar { display: block; }
.sidebar.open { transform: translateX(0) !important; }

/* ── Main content ────────────────────────────────────── */
.main {
  margin-left: var(--sidebar-w);
  flex: 1;
  padding: 28px 28px 80px;
  min-width: 0;
}

.pagina-titel {
  font-family: 'Baloo 2', sans-serif;
  font-size: 22px;
  color: var(--goud);
  margin-bottom: 20px;
  font-weight: 700;
}

/* ── Kaarten ─────────────────────────────────────────── */
.card {
  background: var(--card);
  border-radius: var(--radius);
  padding: 20px;
  border: 1px solid var(--border2);
  margin-bottom: 16px;
}
.card-titel {
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .8px;
  color: var(--text-muted);
  margin-bottom: 14px;
}

/* ── Kalender ────────────────────────────────────────── */
.week-nav {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}
.week-nav button {
  background: var(--card2);
  border: 1px solid var(--border2);
  color: var(--text);
  border-radius: 8px;
  padding: 6px 14px;
  font-size: 18px;
  cursor: pointer;
  transition: background .15s;
}
.week-nav button:hover { background: var(--groen); }
.week-label {
  font-size: 14px;
  font-weight: 700;
  color: var(--goud);
  flex: 1;
  text-align: center;
}

.kalender-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
}
.dag-cel {
  background: var(--card2);
  border-radius: 12px;
  padding: 10px 6px;
  text-align: center;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all .15s;
  min-height: 80px;
  position: relative;
  min-width: 0;
  overflow: hidden;
}
.dag-cel:hover { border-color: var(--groen-light); background: var(--groen-dark); }
.dag-cel.actief { border-color: var(--goud); background: rgba(212,168,67,.1); }
.dag-cel.vandaag { border-color: var(--groen-light); }
.dag-naam {
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .5px;
  color: var(--text-muted);
  margin-bottom: 4px;
}
.dag-datum {
  font-size: 18px;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 6px;
}
.dag-cel.vandaag .dag-datum { color: var(--goud); }
.dag-chips {
  display: flex;
  flex-direction: column;
  gap: 3px;
  align-items: stretch;
  min-width: 0;
  width: 100%;
}
.chip-kind {
  font-size: 10px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 8px;
  background: var(--groen);
  color: #fff;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  width: 100%;
}
.chip-kind.afgemeld { background: var(--badge-warn) !important; text-decoration: line-through !important; }
.chip-kind.niet-aanwezig { background: rgba(180,40,40,.3) !important; text-decoration: line-through !important; color: #f08080 !important; opacity: .7; }
.chip-kind.avond     { background: #4a3580; }
.chip-kind.uitgevoerd { background: #1a4a1c !important; opacity: .55; text-decoration: none !important; }

/* ── Dag detail panel ───────────────────────────────── */
.dag-panel {
  background: var(--card);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  padding: 20px;
  margin-top: 16px;
  animation: slideIn .2s ease;
}
@keyframes slideIn {
  from { opacity:0; transform: translateY(-8px); }
  to   { opacity:1; transform: translateY(0); }
}
.dag-panel-titel {
  font-family: 'Baloo 2', sans-serif;
  font-size: 17px;
  color: var(--goud);
  margin-bottom: 16px;
  font-weight: 700;
}
.rit-blok {
  background: var(--card2);
  border-radius: 10px;
  padding: 14px 16px;
  margin-bottom: 10px;
  border-left: 4px solid var(--groen);
  position: relative;
}
.rit-blok.middag { border-left-color: var(--goud); }
.rit-blok.avond  { border-left-color: #7c5cbf; }
.rit-blok.afgemeld { border-left-color: #8a4f10; opacity: .75; }
.rit-blok.uitgevoerd { border-left-color: #2a4a2c; opacity: .65; }
.rit-type-label {
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .8px;
  color: var(--text-muted);
  margin-bottom: 8px;
}
.rit-type-label.ochtend { color: var(--groen-light); }
.rit-type-label.middag  { color: var(--goud); }
.rit-type-label.avond   { color: #a080e0; }
.rit-info { display: flex; flex-wrap: wrap; gap: 12px; }
.rit-info-item { font-size: 14px; }
.rit-info-item .label { font-size: 11px; color: var(--text-muted); font-weight: 700; }
.rit-info-item .val   { font-size: 15px; font-weight: 700; color: var(--text); }
.rit-kind-naam { font-size: 15px; font-weight: 800; color: var(--goud); margin-bottom: 10px; }

.rit-status-badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .5px;
  margin-bottom: 8px;
}
.badge-gepland    { background: var(--badge-ok);   color: #a0e8a0; }
.badge-afgemeld   { background: var(--badge-warn);  color: #f0c060; }
.badge-uitgevoerd { background: #1a3d1c;            color: #70c070; }
.badge-geannuleerd{ background: var(--badge-red);   color: #f08080; }
.badge-bezig      { background:rgba(192,57,43,.2);color:#ff8080;border-color:rgba(192,57,43,.4); }

.btn-afmeld {
  margin-top: 10px;
  padding: 8px 16px;
  border-radius: 10px;
  border: 1.5px solid #8a4f10;
  background: rgba(138,79,16,.15);
  color: #f0a040;
  font-family: 'Nunito', sans-serif;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: background .15s;
}
.btn-afmeld:hover { background: rgba(138,79,16,.35); }

/* ── Modal ───────────────────────────────────────────── */
.modal-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.7);
  z-index: 500;
  align-items: center;
  justify-content: center;
  padding: 16px;
}
.modal-backdrop.open { display: flex; }
.modal-box {
  background: var(--card);
  border-radius: 20px;
  padding: 28px 24px;
  width: 100%;
  max-width: 440px;
  border: 1px solid var(--border);
  animation: modalIn .2s ease;
}
@keyframes modalIn {
  from { opacity:0; transform: scale(.94); }
  to   { opacity:1; transform: scale(1); }
}
.modal-titel {
  font-family: 'Baloo 2', sans-serif;
  font-size: 18px;
  color: var(--goud);
  margin-bottom: 16px;
}
.modal-body { margin-bottom: 20px; }
.modal-actions { display: flex; gap: 10px; justify-content: flex-end; }
.btn-cancel {
  padding: 9px 20px;
  border-radius: 10px;
  border: 1.5px solid var(--border2);
  background: transparent;
  color: var(--text-muted);
  font-family: 'Nunito', sans-serif;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
}
.btn-bevestig {
  padding: 9px 20px;
  border-radius: 10px;
  border: none;
  background: linear-gradient(135deg, #8a3010, #6b2010);
  color: #fff;
  font-family: 'Nunito', sans-serif;
  font-weight: 800;
  font-size: 14px;
  cursor: pointer;
  transition: opacity .15s;
}
.btn-bevestig:hover { opacity: .85; }

/* ── Formulieren ─────────────────────────────────────── */
.form-group { margin-bottom: 16px; }
.form-group label {
  display: block;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .5px;
  color: var(--text-muted);
  margin-bottom: 6px;
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  background: var(--input-bg);
  border: 1.5px solid var(--border2);
  border-radius: 10px;
  padding: 11px 14px;
  font-family: 'Nunito', sans-serif;
  font-size: 15px;
  color: var(--text);
  outline: none;
  transition: border-color .2s;
  -webkit-appearance: none;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus { border-color: var(--groen-light); }
.form-group select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M0 0l6 8 6-8z' fill='%238fa891'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; padding-right: 32px; }
.form-group textarea { min-height: 80px; resize: vertical; }

.form-sectie-titel {
  font-family: 'Baloo 2', sans-serif;
  font-size: 16px;
  color: var(--goud);
  margin: 24px 0 12px;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--border);
  font-weight: 700;
}
.form-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

.btn-save {
  padding: 12px 28px;
  border-radius: 12px;
  border: none;
  background: linear-gradient(135deg, var(--groen), var(--groen-dark));
  color: #fff;
  font-family: 'Nunito', sans-serif;
  font-size: 15px;
  font-weight: 800;
  cursor: pointer;
  transition: opacity .2s;
  margin-top: 8px;
}
.btn-save:hover { opacity: .88; }

.sukses-msg {
  background: rgba(44,95,46,.25);
  border: 1px solid rgba(44,95,46,.5);
  color: #90e090;
  border-radius: 10px;
  padding: 10px 14px;
  font-size: 14px;
  margin-bottom: 16px;
}

/* ── Kinderen tabs ───────────────────────────────────── */
.kind-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}
.kind-tab {
  padding: 7px 18px;
  border-radius: 20px;
  border: 1.5px solid var(--border2);
  background: var(--card2);
  color: var(--text-muted);
  font-family: 'Nunito', sans-serif;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: all .15s;
}
.kind-tab.actief {
  border-color: var(--goud);
  background: rgba(212,168,67,.15);
  color: var(--goud);
}

/* ── Bottom nav (mobile) ─────────────────────────────── */
.bottom-nav {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;

  background: var(--groen-dark);
  border-top: 1px solid rgba(255,255,255,.07);

  padding: 8px 0 calc(8px + env(safe-area-inset-bottom));

  z-index: 9999;

  justify-content: center;
  gap: 6px;

  /* iPhone Safari fixes */
  transform: translate3d(0,0,0);
  -webkit-transform: translate3d(0,0,0);
  will-change: transform;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

.bottom-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;

  padding: 4px 8px;

  color: rgba(255,255,255,.45);
  font-size: 10px;
  font-weight: 700;

  cursor: pointer;
  text-decoration: none;

  transition: color .18s;
  border-radius: 10px;
}

.bottom-nav-item .bn-ic {
  width: 22px;
  height: 22px;
  display: block;
}

.bottom-nav-item .bn-ic svg {
  width: 22px;
  height: 22px;
  stroke: rgba(255,255,255,.45);
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: stroke .18s;
}

.bottom-nav-item.actief {
  color: var(--goud);
}

.bottom-nav-item.actief .bn-ic svg {
  stroke: var(--goud);
}

.bottom-nav-item:hover {
  color: rgba(255,255,255,.8);
}

.bottom-nav-item:hover .bn-ic svg {
  stroke: rgba(255,255,255,.8);
}

/* ── Toast ───────────────────────────────────────────── */
.toast {
  position: fixed;
  bottom: 80px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: var(--groen);
  color: #fff;
  padding: 10px 22px;
  border-radius: 30px;
  font-weight: 700;
  font-size: 14px;
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s, transform .3s;
  white-space: nowrap;
  z-index: 999;
  box-shadow: 0 4px 20px rgba(0,0,0,.5);
}
.toast.toon { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ── Responsive ──────────────────────────────────────── */
@media (max-width: 1024px) {

  .sidebar {
    transform: translateX(calc(-1 * var(--sidebar-w)));
    box-shadow: var(--shadow);
  }

  .topbar {
    display: grid;
  }

  .main {
    margin-left: 0;
    padding: 80px 14px calc(95px + env(safe-area-inset-bottom));
  }

  .bottom-nav {
    display: flex;
  }

  .topbar-menu-btn,
  .sidebar-overlay {
    display: none !important;
  }

  .kalender-grid {
    grid-template-columns: repeat(5, 1fr);
    gap: 4px;
  }

  .dag-cel {
    padding: 8px 3px;
    min-height: 70px;
  }

  .dag-datum {
    font-size: 15px;
  }

  .form-grid-2 {
    grid-template-columns: 1fr;
  }

  .pagina-titel {
    font-size: 19px;
    margin-top: 4px;
  }
}

/* ── SVG icon helpers ─────────────────────────────────────── */
.btn-ic, .title-ic, .nav-ic, .foot-ic, .card-ic, .bus-icon {
  display: inline-flex;
  align-items: center;
  vertical-align: middle;
  flex-shrink: 0;
}
.btn-ic svg, .title-ic svg, .nav-ic svg, .foot-ic svg, .card-ic svg, .bus-icon svg {
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
/* Knop icoon */
.btn-ic svg { width: 15px; height: 15px; margin-right: 5px; }
/* Pagina titel */
.title-ic svg { width: 20px; height: 20px; margin-right: 6px; }
/* Sidebar nav item */
.nav-ic { margin-right: 8px; }
.nav-ic svg { width: 17px; height: 17px; }
/* Sidebar footer */
.foot-ic svg { width: 14px; height: 14px; margin-right: 4px; }
/* Card titel */
.card-ic svg { width: 14px; height: 14px; margin-right: 5px; }
/* Login bus */
.bus-icon svg { width: 42px; height: 42px; stroke: var(--goud); }
/* Sidebar logo bus */
.sidebar-logo .bus svg, .d-sidebar-logo .bus svg { width: 28px; height: 28px; stroke: var(--goud); fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
/* Topbar bus */
.topbar-title .title-ic svg { width: 18px; height: 18px; stroke: var(--goud); margin-right: 4px; }
/* Topbar menu button */
.topbar-menu-btn .btn-ic { margin-right: 0; }
.topbar-menu-btn .btn-ic svg { width: 20px; height: 20px; stroke: var(--text); }

/* ── Rit type icoon (ochtend/middag) ─────────────────────── */
.rit-ic {
  display: inline-flex;
  align-items: center;
  vertical-align: middle;
  margin-right: 4px;
}
.rit-ic svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ── Taalknopjes in sidebar ──────────────────────────────── */
.sidebar-lang { margin-bottom: 12px; gap: 6px; }
.sidebar-lang .lang-btn {
  padding: 4px 10px;
  font-size: 11px;
  border-color: rgba(255,255,255,.12);
  color: rgba(240,234,216,.5);
}
.sidebar-lang .lang-btn.actief {
  background: var(--groen-light);
  border-color: var(--groen-light);
  color: #fff;
}

/* ── Week tabs ────────────────────────────────────────────── */
.week-tab {
  padding: 7px 18px;
  border-radius: 20px;
  border: 1.5px solid var(--border2);
  background: var(--card2);
  color: var(--text-muted);
  font-family: 'Nunito', sans-serif;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  transition: all .15s;
  white-space: nowrap;
}
.week-tab:hover { border-color: var(--groen-light); color: var(--text); text-decoration: none; }
.week-tab.actief {
  border-color: var(--goud);
  background: rgba(212,168,67,.15);
  color: var(--goud);
}

/* ── Chip SVG icoon uitlijning ───────────────────────────── */
.chip-kind {
  display: flex;
  align-items: center;
  gap: 3px;
}

/* ── Taalknop fix — beide knoppen zelfde breedte en stijl ── */
.sidebar-lang {
  display: flex;
  gap: 6px;
  margin-bottom: 10px;
}
.sidebar-lang .lang-btn {
  flex: 1;
  text-align: center;
  justify-content: center;
  padding: 5px 8px;
  font-size: 11px;
  border: 1.5px solid rgba(255,255,255,.15);
  color: rgba(240,234,216,.5);
  background: transparent;
  border-radius: 16px;
  font-family: 'Nunito', sans-serif;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: all .2s;
}
.sidebar-lang .lang-btn.actief {
  background: var(--groen-light);
  border-color: var(--groen-light);
  color: #fff;
}
.sidebar-lang .lang-btn svg {
  stroke: currentColor;
}

/* ── Rit type icoon kleuren in chips ─────────────────────── */
.chip-kind.ochtend svg { stroke: #fff; fill: none; }
.chip-kind.middag  svg { stroke: #D4A843; fill: none; }
.chip-kind.avond   svg { fill: #D4A843; stroke: none; }

/* ── Rit type icoon kleuren in dagdetail labels ──────────── */
.rit-type-label.ochtend svg { stroke: #fff; fill: none; }
.rit-type-label.middag  svg { stroke: #D4A843; fill: none; }
.rit-type-label.avond   svg { fill: #D4A843; stroke: none; }

/* ── Chip SVG kleuren via class ──────────────────────────── */
.chip-svg { display:block; }
.ochtend-ic { fill: none; stroke: #fff; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.middag-ic  { fill: none; stroke: #D4A843; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.avond-ic   { fill: #D4A843; stroke: none; }

/* ── Niet aanwezig status ────────────────────────────────── */
.badge-niet_aanwezig { background: #c0392b !important; color: #fff !important; font-weight: 800; border-radius: 20px; padding: 3px 10px; display: inline-block; }
.rit-blok.niet-aanwezig { border-left-color: #c0392b; opacity: .75; }

/* ── Week navigatie pijlknoppen ──────────────────────────── */
.week-nav-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px; height: 34px;
  border-radius: 8px;
  background: var(--card2);
  border: 1.5px solid var(--border2);
  color: var(--text);
  text-decoration: none;
  flex-shrink: 0;
  transition: background .15s, border-color .15s;
}
.week-nav-btn:hover { background: var(--groen); border-color: var(--groen); color: #fff; text-decoration: none; }
.week-nav-btn.disabled { opacity: .3; cursor: default; pointer-events: none; }

/* ── Custom rit checkboxes ───────────────────────────────── */
.rit-check-label {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  padding: 10px 14px;
  border-radius: 10px;
  border: 1.5px solid var(--border2);
  background: var(--card2);
  font-size: 14px;
  font-weight: 600;
  color: var(--text-muted);
  transition: all .15s;
  user-select: none;
}
.rit-check-label:hover { border-color: var(--groen-light); color: var(--text); }
.rit-check-label.actief { border-color: var(--groen); background: rgba(44,95,46,.2); color: var(--text); }
.rit-check-label.actief-goud { border-color: var(--goud); background: rgba(212,168,67,.12); }

.rit-check-box {
  width: 22px; height: 22px;
  border-radius: 6px;
  border: 2px solid var(--border2);
  background: var(--inp);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all .15s;
}
.rit-check-label.actief .rit-check-box,
.rit-check-label.actief-goud .rit-check-box {
  background: var(--groen);
  border-color: var(--groen);
}
.rit-check-label.actief-goud .rit-check-box { background: var(--goud); border-color: var(--goud); }
.check-ic {
  width: 13px; height: 13px;
  fill: none; stroke: #fff;
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ── Vrije dag in kalender ───────────────────────────────── */
.dag-cel.vrij-dag {
  background: rgba(212,168,67,.07);
  border-color: rgba(212,168,67,.25);
  cursor: pointer;
}
.dag-cel.vrij-dag .dag-datum { color: var(--goud); }
.vrij-label {
  font-size: 8px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .3px;
  color: var(--goud);
  text-align: center;
  margin-top: 4px;
  line-height: 1.2;
  word-break: break-word;
}

/* ── Ziek en vakantie statussen ─────────────────────────── */
.badge-ziek     { background: #9b2020; color: #fff; font-weight: 800; }
.badge-vakantie { background: rgba(212,168,67,.2); color: var(--goud); font-weight: 800; }
.rit-blok.ziek     { border-left-color: #c0392b; opacity: .8; }
.rit-blok.vakantie { border-left-color: var(--goud); opacity: .8; }
.chip-kind.ziek     { background: rgba(180,40,40,.4) !important; text-decoration: line-through !important; color: #f08080 !important; opacity: .7; }
.chip-kind.vakantie { background: rgba(212,168,67,.2) !important; text-decoration: line-through !important; color: var(--goud) !important; opacity: .7; }

/* ── Loading overlay ─────────────────────────────────────── */
.loading-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(17,26,18,.85);
  z-index: 9999;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 16px;
}
.loading-overlay.actief { display: flex; }
.loading-spinner {
  width: 48px; height: 48px;
  border: 4px solid rgba(212,168,67,.2);
  border-top-color: var(--goud);
  border-radius: 50%;
  animation: spin .8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.loading-tekst {
  color: var(--goud);
  font-size: 14px;
  font-weight: 700;
  font-family: 'Nunito', sans-serif;
}

/* ── Custom confirm modal ────────────────────────────────── */
.confirm-modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(10,16,11,.8);
  z-index: 10000;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.confirm-modal.actief { display: flex; }
.confirm-box {
  background: var(--card);
  border-radius: 18px;
  padding: 28px 24px;
  max-width: 340px;
  width: 100%;
  border: 1px solid var(--border2);
  box-shadow: 0 16px 60px rgba(0,0,0,.5);
  text-align: center;
}
.confirm-icon { font-size: 32px; margin-bottom: 12px; }
.confirm-titel { font-size: 16px; font-weight: 800; color: var(--text); margin-bottom: 8px; }
.confirm-tekst { font-size: 13px; color: var(--text-muted); margin-bottom: 22px; line-height: 1.5; }
.confirm-knoppen { display: flex; gap: 10px; }
.confirm-ja   { flex: 1; padding: 12px; border-radius: 12px; border: none; background: linear-gradient(135deg,var(--groen),var(--groen-dark)); color: #fff; font-family: 'Nunito',sans-serif; font-size: 14px; font-weight: 800; cursor: pointer; }
.confirm-nee  { flex: 1; padding: 12px; border-radius: 12px; border: 1.5px solid var(--border2); background: transparent; color: var(--text-muted); font-family: 'Nunito',sans-serif; font-size: 14px; font-weight: 700; cursor: pointer; }
.confirm-ja:hover  { opacity: .9; }
.confirm-nee:hover { background: var(--card2); color: var(--text); }

/* ── Select dropdown styling ─────────────────────────────── */
.fg-select-wrap { position: relative; }
.fg-select-wrap::after {
  content: '';
  position: absolute;
  right: 12px; top: 50%;
  transform: translateY(-50%);
  width: 0; height: 0;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 6px solid var(--text-muted);
  pointer-events: none;
}
.fg-select-wrap select,
.form-group select {
  width: 100%;
  appearance: none;
  -webkit-appearance: none;
  background: var(--inp);
  border: 1.5px solid var(--border2);
  border-radius: 10px;
  padding: 11px 36px 11px 14px;
  font-family: 'Nunito', sans-serif;
  font-size: 14px;
  color: var(--text);
  outline: none;
  cursor: pointer;
}
.fg-select-wrap select:focus,
.form-group select:focus { border-color: var(--groen); }

/* ── Select option kleur fix ─────────────────────────────── */
.fg-select-wrap select option,
.form-group select option {
  background: #1e2d1f;
  color: #f0ead8;
}

/* ── Bottom nav user row (mobile) ───────────────────────── */
.bottom-nav-sep {
  width: 100%;
  height: 1px;
  background: var(--border);
  margin: 4px 0;
}
.bottom-nav-user {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 16px 2px;
  width: 100%;
}

/* ── Login pagina centrering ─────────────────────────────── */
body.login-page {
  min-height: 100dvh;
  overflow: hidden;
  background: #08100a;
}

body.login-page .login-wrap {
  height: 100dvh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 16px;
  overflow: hidden;
  position: relative;
}

body.login-page .login-card {
  max-height: calc(100dvh - 56px);
  overflow-y: auto;
}
body.login-page .login-footer {
  position: fixed;
  left: 0;
  right: 0;
  bottom: max(20px, env(safe-area-inset-bottom));
  text-align: center;
  font-size: 9px;
  line-height: 1;
  color: rgba(143,168,145,.55);
  font-weight: 600;
  letter-spacing: .2px;
  pointer-events: none;
}

/* ── WhatsApp-opmaak in berichten ────────────────────────── */
.msg-modal-inhoud strong {
  font-weight: 800;
  color: var(--text);
}

.msg-modal-inhoud em {
  font-style: italic;
}

.msg-modal-inhoud s {
  text-decoration: line-through;
}

.msg-modal-inhoud code {
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.08);
  padding: 2px 5px;
  border-radius: 5px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  font-size: .92em;
  color: var(--goud-light);
  white-space: pre-wrap;
}

.msg-modal-inhoud pre {
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 10px;
  padding: 10px 12px;
  margin: 8px 0;
  overflow-x: auto;
  white-space: pre-wrap;
}

.msg-modal-inhoud pre code {
  background: transparent;
  border: none;
  padding: 0;
  border-radius: 0;
  display: block;
}

.waahan-quote {
  border-left: 3px solid var(--goud);
  padding-left: 10px;
  margin: 8px 0;
  color: var(--text);
  opacity: .9;
}

.waahan-bullet,
.waahan-number {
  display: block;
  margin: 2px 0;
  padding-left: 2px;
}

.remember-pill{
    display:flex;
    align-items:center;
    justify-content:space-between;
    max-width:200px;
    width:100%;
    padding:12px 16px;
    border-radius:14px;
    background:var(--input-bg);
    border:2px solid var(--border2);
    cursor:pointer;
    user-select:none;
    transition:.2s;
    margin-top:14px;
}

.remember-pill:hover{
    border-color:var(--goud);
}

.remember-pill input{
    display:none;
}

.remember-text{
    display:flex;
    align-items:center;
    gap:7px;
    font-size:14px;
    font-weight:800;
    color:var(--text);
}

.remember-state{
    font-size:12px;
    font-weight:900;
    color:var(--text-muted);
}

.remember-pill input:not(:checked) ~ .remember-state::after{
    content:attr(data-off);
}

.remember-pill input:checked ~ .remember-state::after{
    content:attr(data-on);
    color:var(--goud);
}

.remember-pill:has(input:checked){
    border-color:var(--goud);
    background:rgba(212,168,67,.08);
}

.remember-lock{
    width:15px;
    height:15px;
    fill:none;
    stroke:currentColor;
    stroke-width:2;
    stroke-linecap:round;
    stroke-linejoin:round;
}