/* ═══════════════════════════════════════════════
   Hulp met ICT – Portaal Stylesheet
   Inspired Creations · Steven van Gool · 2026
═══════════════════════════════════════════════ */

:root {
  --blauw: #1a3a5c;
  --lichtblauw: #e8f2ff;
  --accent: #f97316;
  --accentlicht: #fff4ed;
  --groen: #16a34a;
  --lichtgroen: #f0fdf4;
  --rood: #dc2626;
  --lichtgrijs: #f8fafc;
  --rand: #e2e8f0;
  --tekst: #1e293b;
  --subtekst: #64748b;
  --wit: #ffffff;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: 'DM Sans', sans-serif; color: var(--tekst); background: var(--lichtgrijs); font-size: 15px; line-height: 1.6; }
h1,h2,h3 { font-family: 'Fraunces', serif; line-height: 1.2; }
a { color: var(--blauw); }

/* ── NAV ── */
.portaal-nav {
  background: var(--blauw); padding: 0 2rem;
  display: flex; justify-content: space-between; align-items: center;
  position: sticky; top: 0; z-index: 100;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
  min-height: 56px; flex-wrap: wrap; gap: 0.5rem;
}
.nav-links-portaal { display: flex; align-items: center; gap: 0.25rem; flex-wrap: wrap; }
.nav-links-portaal a { color: rgba(255,255,255,0.75); text-decoration: none; padding: 0.5rem 0.9rem; border-radius: 6px; font-size: 0.88rem; font-weight: 500; transition: all 0.2s; }
.nav-links-portaal a:hover, .nav-links-portaal a.actief { color: white; background: rgba(255,255,255,0.15); }
.logo { font-family: 'Fraunces', serif !important; font-size: 1.1rem !important; font-weight: 700 !important; color: white !important; padding: 0.5rem 0.9rem 0.5rem 0 !important; background: none !important; margin-right: 0.5rem; }
.logo span { color: #fdba74; }
.nav-rechts { display: flex; align-items: center; gap: 0.75rem; }
.nav-gebruiker { color: rgba(255,255,255,0.75); font-size: 0.82rem; }
.rol-badge { font-size: 0.68rem; font-weight: 700; padding: 0.2rem 0.6rem; border-radius: 20px; text-transform: uppercase; letter-spacing: 0.05em; }
.rol-badge.admin { background: #fdba74; color: var(--blauw); }
.rol-badge.medewerker { background: #86efac; color: #14532d; }
.uitloggen-btn { background: rgba(255,255,255,0.12); color: white !important; text-decoration: none; padding: 0.35rem 0.9rem; border-radius: 6px; font-size: 0.82rem; font-weight: 500; border: 1px solid rgba(255,255,255,0.2); transition: all 0.2s; }
.uitloggen-btn:hover { background: rgba(255,255,255,0.22); }

/* ── MAIN ── */
.portaal-main { max-width: 1100px; margin: 0 auto; padding: 2rem 1.5rem 4rem; }

/* ── PAGINAKOP ── */
.pagina-kop { margin-bottom: 1.75rem; display: flex; justify-content: space-between; align-items: flex-start; flex-wrap: wrap; gap: 1rem; }
.pagina-kop h1 { font-size: 1.6rem; color: var(--blauw); }
.pagina-kop p { color: var(--subtekst); font-size: 0.9rem; margin-top: 0.25rem; }

/* ── KAARTEN ── */
.kaart { background: white; border: 1px solid var(--rand); border-radius: 12px; padding: 1.5rem; margin-bottom: 1.25rem; }
.kaart-kop { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1.25rem; flex-wrap: wrap; gap: 0.75rem; }
.kaart-kop h2 { font-size: 1.05rem; color: var(--blauw); }
.kaart-kop h3 { font-family: 'DM Sans', sans-serif; font-size: 0.95rem; font-weight: 700; color: var(--blauw); }

/* ── STATISTIEKEN ── */
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 1rem; margin-bottom: 1.5rem; }
.stat-kaart { background: white; border: 1px solid var(--rand); border-radius: 10px; padding: 1.25rem; text-align: center; }
.stat-kaart .getal { font-family: 'Fraunces', serif; font-size: 2rem; color: var(--blauw); display: block; line-height: 1; margin-bottom: 0.25rem; }
.stat-kaart .getal.accent { color: var(--accent); }
.stat-kaart .getal.groen { color: var(--groen); }
.stat-kaart .getal.rood { color: var(--rood); }
.stat-kaart .label { font-size: 0.78rem; color: var(--subtekst); }

/* ── URENBALKEN ── */
.uren-balk-wrap { margin: 0.75rem 0 1rem; }
.uren-balk-info { display: flex; justify-content: space-between; font-size: 0.8rem; color: var(--subtekst); margin-bottom: 0.4rem; }
.uren-balk { background: var(--rand); border-radius: 20px; height: 10px; overflow: hidden; }
.uren-balk-fill { height: 100%; border-radius: 20px; background: linear-gradient(90deg, var(--groen), #22c55e); transition: width 0.6s ease; }
.uren-balk-fill.over { background: linear-gradient(90deg, var(--accent), #fb923c); }

/* ── TABELLEN ── */
.tabel-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
table { width: 100%; border-collapse: collapse; font-size: 0.88rem; }
thead th { background: var(--lichtgrijs); color: var(--subtekst); padding: 0.6rem 0.9rem; text-align: left; font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.05em; border-bottom: 2px solid var(--rand); font-weight: 600; }
tbody td { padding: 0.7rem 0.9rem; border-bottom: 1px solid var(--rand); vertical-align: middle; }
tbody tr:last-child td { border-bottom: none; }
tbody tr:hover td { background: #fafbfc; }

/* ── BADGES ── */
.badge { display: inline-block; font-size: 0.72rem; font-weight: 700; padding: 0.2rem 0.6rem; border-radius: 20px; text-transform: uppercase; letter-spacing: 0.04em; white-space: nowrap; }
.badge-open    { background: #fef3c7; color: #92400e; }
.badge-bezig   { background: var(--lichtblauw); color: var(--blauw); }
.badge-opgelost{ background: var(--lichtgroen); color: var(--groen); }
.badge-gesloten{ background: var(--lichtgrijs); color: var(--subtekst); }
.badge-hoog    { background: #fee2e2; color: var(--rood); }
.badge-normaal { background: #fef3c7; color: #92400e; }
.badge-laag    { background: var(--lichtgroen); color: var(--groen); }
.badge-betaald { background: var(--lichtgroen); color: var(--groen); }
.badge-concept { background: var(--lichtgrijs); color: var(--subtekst); }
.badge-verzonden { background: var(--lichtblauw); color: var(--blauw); }
.badge-te_laat { background: #fee2e2; color: var(--rood); }

/* ── FORMULIEREN ── */
.form-groep { margin-bottom: 1.1rem; }
.form-groep label { display: block; font-size: 0.85rem; font-weight: 600; color: var(--blauw); margin-bottom: 0.4rem; }
.form-groep input,
.form-groep select,
.form-groep textarea {
  width: 100%; padding: 0.65rem 0.9rem;
  border: 1.5px solid var(--rand); border-radius: 8px;
  font-family: 'DM Sans', sans-serif; font-size: 0.92rem;
  color: var(--tekst); background: white; transition: border-color 0.2s;
}
.form-groep input:focus,
.form-groep select:focus,
.form-groep textarea:focus { outline: none; border-color: var(--blauw); box-shadow: 0 0 0 3px rgba(26,58,92,0.08); }
.form-groep textarea { min-height: 100px; resize: vertical; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }

/* ── KNOPPEN ── */
.btn { display: inline-flex; align-items: center; gap: 0.4rem; padding: 0.6rem 1.2rem; border-radius: 8px; font-size: 0.88rem; font-weight: 600; text-decoration: none; cursor: pointer; border: none; transition: all 0.2s; font-family: 'DM Sans', sans-serif; }
.btn-primair { background: var(--blauw); color: white; }
.btn-primair:hover { background: #152e4d; }
.btn-accent { background: var(--accent); color: white; }
.btn-accent:hover { background: #ea6c0a; }
.btn-groen { background: var(--groen); color: white; }
.btn-groen:hover { background: #15803d; }
.btn-outline { background: white; color: var(--blauw); border: 1.5px solid var(--rand); }
.btn-outline:hover { background: var(--lichtgrijs); border-color: var(--blauw); }
.btn-rood { background: var(--rood); color: white; }
.btn-rood:hover { background: #b91c1c; }
.btn-sm { padding: 0.35rem 0.8rem; font-size: 0.8rem; }

/* ── FLASH BERICHTEN ── */
.flash { padding: 0.9rem 1.25rem; border-radius: 8px; margin-bottom: 1.25rem; font-size: 0.9rem; font-weight: 500; }
.flash-succes { background: var(--lichtgroen); color: var(--groen); border: 1px solid #86efac; }
.flash-fout   { background: #fee2e2; color: var(--rood); border: 1px solid #fca5a5; }
.flash-info   { background: var(--lichtblauw); color: var(--blauw); border: 1px solid #93c5fd; }
.flash-waarschuwing { background: #fef3c7; color: #92400e; border: 1px solid #fcd34d; }

/* ── LOGIN PAGINA ── */
.login-wrap { min-height: 100vh; display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg, var(--blauw), #2563a8); padding: 2rem; }
.login-kaart { background: white; border-radius: 16px; padding: 2.5rem; width: 100%; max-width: 420px; box-shadow: 0 20px 60px rgba(0,0,0,0.2); }
.login-logo { font-family: 'Fraunces', serif; font-size: 1.5rem; font-weight: 700; color: var(--blauw); text-align: center; margin-bottom: 0.25rem; }
.login-logo span { color: var(--accent); }
.login-sub { text-align: center; color: var(--subtekst); font-size: 0.88rem; margin-bottom: 2rem; }

/* ── LEGE STAAT ── */
.leeg { text-align: center; padding: 3rem 1rem; color: var(--subtekst); }
.leeg .leeg-icon { font-size: 3rem; display: block; margin-bottom: 0.75rem; }
.leeg p { font-size: 0.95rem; }

/* ── DETAIL SECTIE ── */
.detail-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 1.5rem; align-items: start; }
.info-rij { display: flex; justify-content: space-between; align-items: flex-start; padding: 0.55rem 0; border-bottom: 1px solid var(--rand); font-size: 0.88rem; gap: 1rem; }
.info-rij:last-child { border-bottom: none; }
.info-rij .label { color: var(--subtekst); flex-shrink: 0; }
.info-rij .waarde { font-weight: 500; text-align: right; }

/* ── FOOTER ── */
.portaal-footer { text-align: center; padding: 2rem; font-size: 0.82rem; color: var(--subtekst); border-top: 1px solid var(--rand); margin-top: 2rem; }
.portaal-footer a { color: var(--subtekst); }

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
  .portaal-nav { padding: 0.5rem 1rem; }
  .nav-links-portaal a { padding: 0.4rem 0.6rem; font-size: 0.82rem; }
  .portaal-main { padding: 1.25rem 1rem 3rem; }
  .form-grid { grid-template-columns: 1fr; }
  .detail-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .nav-gebruiker { display: none; }
}
@media (max-width: 480px) {
  .stats-grid { grid-template-columns: 1fr; }
}
