/* ============================================================
   MvA Intelligence — Gedeelde Dashboard Stijl
   Alle dashboards onder mva-dashboards.netlify.app gebruiken
   dit bestand voor consistent uiterlijk en huisstijl.
   ============================================================ */

:root {
  --navy: #1A2B5F;
  --navy-dark: #15234e;
  --oranje: #E8500A;
  --oranje-light: #ff6600;
  --groen: #10b981;
  --groen-light: #d1fae5;
  --rood: #dc2626;
  --rood-light: #fee2e2;
  --geel: #f59e0b;
  --geel-light: #fef3c7;
  --blauw-zacht: #3b82f6;
  --blauw-zacht-bg: #dbeafe;
  --wit: #ffffff;
  --grijs-bg: #f4f5f8;
  --grijs-mid: #e5e7eb;
  --grijs-tekst: #6b7280;
  --grijs-donker: #374151;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }

body {
  font-family: 'Roboto', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--grijs-bg);
  color: var(--navy);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

/* ── HEADER (overal hetzelfde) ── */
.mva-header {
  background: var(--navy);
  color: white;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  position: sticky;
  top: 0;
  z-index: 100;
}
.mva-header-logo { display: flex; align-items: center; gap: 12px; }
.mva-header-logo .dot {
  width: 36px; height: 36px;
  background: var(--oranje);
  color: white;
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700;
  font-size: 18px;
}
.mva-header-title { font-size: 16px; font-weight: 600; line-height: 1.2; }
.mva-header-sub { font-size: 12px; opacity: 0.8; }
.mva-header-actions { display: flex; gap: 10px; align-items: center; }
.mva-header-btn {
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.25);
  color: white;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 13px;
  font-family: inherit;
  cursor: pointer;
  transition: background .15s;
  text-decoration: none;
  display: inline-block;
}
.mva-header-btn:hover { background: rgba(255,255,255,0.25); }

/* ── CONTAINER ── */
.mva-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 20px;
}

/* ── SECTIE-BLOK ── */
.mva-sectie {
  background: white;
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 20px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}
.mva-sectie-titel {
  font-size: 15px;
  font-weight: 600;
  color: var(--navy);
  margin: 0 0 16px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.mva-sectie-sub {
  font-size: 12px;
  color: var(--grijs-tekst);
  font-weight: 400;
}

/* ── KNOPPEN ── */
.mva-btn-primary {
  padding: 14px 24px;
  background: var(--oranje);
  color: white;
  border: none;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: background 0.2s, transform 0.1s;
}
.mva-btn-primary:hover { background: var(--oranje-light); }
.mva-btn-primary:active { transform: scale(0.98); }

.mva-btn-icon {
  background: var(--grijs-bg);
  border: 1px solid var(--grijs-mid);
  color: var(--navy);
  width: 32px; height: 32px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 14px;
  display: flex; align-items: center; justify-content: center;
  transition: background .15s;
}
.mva-btn-icon:hover { background: var(--grijs-mid); }

/* ── FORM ELEMENTEN ── */
.mva-input {
  width: 100%;
  padding: 14px 16px;
  border: 2px solid var(--grijs-mid);
  border-radius: 10px;
  font-size: 16px;
  font-family: inherit;
  color: var(--navy);
  background: white;
  outline: none;
  transition: border-color 0.2s;
}
.mva-input:focus { border-color: var(--navy); }
.mva-label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: var(--navy);
  margin-bottom: 6px;
}

/* ── FEEDBACK-MELDINGEN ── */
.mva-fout {
  background: var(--rood-light);
  color: var(--rood);
  padding: 14px 18px;
  border-radius: 10px;
  font-size: 14px;
  border-left: 4px solid var(--rood);
  margin-bottom: 16px;
}

.mva-laden {
  text-align: center;
  padding: 60px 20px;
  color: var(--grijs-tekst);
}
.mva-laden-spinner {
  display: inline-block;
  width: 24px; height: 24px;
  border: 3px solid var(--grijs-mid);
  border-top-color: var(--navy);
  border-radius: 50%;
  animation: mva-spin 0.8s linear infinite;
  margin-bottom: 12px;
}
@keyframes mva-spin { to { transform: rotate(360deg); } }

/* ── LOGIN MODAL ── */
.mva-login-overlay {
  position: fixed;
  inset: 0;
  background: rgba(26, 43, 95, 0.95);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}
.mva-login-card {
  background: white;
  padding: 36px 32px;
  border-radius: 16px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.2);
  max-width: 380px;
  width: 90%;
  text-align: center;
}
.mva-login-card h2 {
  color: var(--navy);
  margin: 0 0 8px 0;
  font-size: 22px;
}
.mva-login-card p {
  color: var(--grijs-tekst);
  font-size: 14px;
  margin: 0 0 24px 0;
}
.mva-login-form { text-align: left; }
.mva-login-error {
  color: var(--rood);
  font-size: 13px;
  margin-top: 12px;
  text-align: center;
  min-height: 18px;
}
.mva-login-btn {
  width: 100%;
  margin-top: 16px;
}

/* ── MOBILE ── */
@media (max-width: 720px) {
  .mva-container { padding: 12px; }
  .mva-header { padding: 12px 14px; }
}
