/* ===== Vonk AI dashboard - gedeelde stijl / shared style ===== */
@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700;800&display=swap');

:root {
  --bg: #080b14;
  --panel: #111726;
  --panel-2: #141b2e;
  --border: #1e2740;
  --accent: #4f9eff;
  --accent-2: #7c5cff;
  --text: #e6ecf7;
  --muted: #7d8aa5;
  --green: #34d399;
  --amber: #fbbf24;
  --red: #f87171;
  --shadow: 0 8px 30px rgba(0,0,0,.35);
}

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

body {
  background:
    radial-gradient(1100px 500px at 80% -10%, rgba(79,158,255,.10), transparent 60%),
    radial-gradient(900px 500px at -10% 10%, rgba(124,92,255,.08), transparent 55%),
    var(--bg);
  color: var(--text);
  font-family: 'DM Sans', system-ui, sans-serif;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent); text-decoration: none; }

.brand { display: flex; align-items: center; gap: 8px; font-weight: 800; font-size: 19px; letter-spacing: -.01em; }
.brand .spark { color: var(--accent); }

/* ---- Layout met sidebar ---- */
.shell { display: flex; min-height: 100vh; }
.sidebar {
  width: 244px; background: linear-gradient(180deg, #0f1422, #0c1019);
  border-right: 1px solid var(--border);
  padding: 24px 16px; display: flex; flex-direction: column; gap: 4px; position: sticky; top: 0; height: 100vh;
}
.sidebar .brand { margin-bottom: 26px; padding: 0 10px; }
.nav a {
  display: flex; align-items: center; gap: 12px; padding: 11px 13px; border-radius: 11px; color: var(--muted);
  font-weight: 500; font-size: 14.5px; transition: .15s;
}
.nav a svg { width: 19px; height: 19px; flex-shrink: 0; }
.nav a:hover { background: var(--panel-2); color: var(--text); }
.nav a.active { background: linear-gradient(90deg, rgba(79,158,255,.18), rgba(124,92,255,.08)); color: #fff;
  box-shadow: inset 2px 0 0 var(--accent); }

.sidebar .bottom { margin-top: auto; display: flex; flex-direction: column; gap: 10px; }
.langswitch { display: flex; gap: 6px; padding: 0 6px; }
.langswitch button { flex: 1; background: var(--panel-2); border: 1px solid var(--border); border-radius: 9px;
  padding: 7px 0; font-size: 15px; cursor: pointer; opacity: .55; transition: .12s; }
.langswitch button:hover { opacity: 1; }
.langswitch button.on { opacity: 1; border-color: var(--accent); background: rgba(79,158,255,.14); }
.cust { padding: 10px 12px; background: var(--panel-2); border-radius: 11px; }
.cust-name { font-size: 13px; font-weight: 600; }
.cust-plan { font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; margin-top: 2px; }
.sidebar .logout { color: var(--muted); font-size: 13px; cursor: pointer; padding: 8px 12px; border-radius: 9px; }
.sidebar .logout:hover { color: var(--red); background: rgba(248,113,113,.08); }

.main { flex: 1; padding: 36px 44px; max-width: 1180px; }
.main h1 { font-size: 28px; font-weight: 800; margin-bottom: 5px; letter-spacing: -.02em; }
.main .sub { color: var(--muted); margin-bottom: 28px; font-size: 14.5px; }

/* ---- Cards / grids ---- */
.grid { display: grid; gap: 18px; }
.grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
.card {
  background: linear-gradient(180deg, rgba(255,255,255,.02), transparent), var(--panel);
  border: 1px solid var(--border); border-radius: 16px; padding: 22px; box-shadow: var(--shadow);
}

/* ---- Stat-kaarten met icoon ---- */
.stat { display: flex; flex-direction: column; gap: 12px; position: relative; overflow: hidden; }
.stat .stat-icon { width: 42px; height: 42px; border-radius: 12px; display: flex; align-items: center; justify-content: center;
  background: rgba(79,158,255,.14); color: var(--accent); }
.stat .stat-icon svg { width: 21px; height: 21px; }
.stat.green .stat-icon { background: rgba(52,211,153,.14); color: var(--green); }
.stat.amber .stat-icon { background: rgba(251,191,36,.14); color: var(--amber); }
.stat.violet .stat-icon { background: rgba(124,92,255,.16); color: var(--accent-2); }
.stat .stat-label { color: var(--muted); font-size: 13px; }
.stat .stat-value { font-size: 30px; font-weight: 800; line-height: 1; letter-spacing: -.02em; }
.stat .stat-value small { font-size: 15px; color: var(--muted); font-weight: 600; }

.metric .label { color: var(--muted); font-size: 13px; margin-bottom: 8px; }
.metric .value { font-size: 32px; font-weight: 800; }
.metric .value small { font-size: 15px; color: var(--muted); font-weight: 500; }

.card-title { font-size: 15px; font-weight: 700; margin-bottom: 16px; }

/* ---- Forms ---- */
label { display: block; font-size: 13px; color: var(--muted); margin: 14px 0 6px; }
input, textarea, select {
  width: 100%; background: var(--panel-2); border: 1px solid var(--border); border-radius: 10px;
  padding: 11px 13px; color: var(--text); font-size: 14px; font-family: inherit; outline: none;
}
input:focus, textarea:focus, select:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(79,158,255,.12); }
textarea { resize: vertical; min-height: 80px; }

button, .btn {
  background: linear-gradient(180deg, var(--accent), #3b87ee); color: #fff; border: 0; border-radius: 10px; padding: 11px 18px;
  font-weight: 600; font-size: 14px; cursor: pointer; font-family: inherit; transition: .15s;
}
button:hover, .btn:hover { filter: brightness(1.08); transform: translateY(-1px); }
button.ghost { background: transparent; border: 1px solid var(--border); color: var(--text); }
button:disabled { opacity: .5; cursor: default; transform: none; }

/* ---- Tabel ---- */
table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: 13px 14px; border-bottom: 1px solid var(--border); font-size: 14px; }
th { color: var(--muted); font-weight: 600; font-size: 11.5px; text-transform: uppercase; letter-spacing: .05em; }
tbody tr:last-child td { border-bottom: 0; }
tr:hover td { background: var(--panel-2); }

.badge { display: inline-block; padding: 3px 10px; border-radius: 20px; font-size: 12px; font-weight: 600; }
.badge.nieuw, .badge.new, .badge.neu { background: rgba(79,158,255,.15); color: var(--accent); }
.badge.gebeld, .badge.contact, .badge.called, .badge.angerufen { background: rgba(251,191,36,.15); color: var(--amber); }
.badge.geboekt, .badge.booked, .badge.gebucht { background: rgba(52,211,153,.15); color: var(--green); }
.badge.afgerond { background: rgba(124,92,255,.16); color: var(--accent-2); }
.badge.afgewezen, .badge.spoed, .badge.rejected, .badge.abgelehnt { background: rgba(248,113,113,.15); color: var(--red); }

/* ---- Login scherm ---- */
.center { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 20px; }
.login-box { width: 100%; max-width: 390px; }
.login-box .brand { justify-content: center; margin-bottom: 8px; font-size: 24px; }
.login-box .tag { text-align: center; color: var(--muted); margin-bottom: 26px; font-size: 14px; }
.error { background: rgba(248,113,113,.12); color: var(--red); padding: 11px 14px; border-radius: 10px;
  font-size: 13px; margin-top: 14px; display: none; }
.error.show { display: block; }
.ok { background: rgba(52,211,153,.12); color: var(--green); padding: 11px 14px; border-radius: 10px;
  font-size: 13px; margin-top: 14px; }

/* ---- Code box ---- */
.codebox { background: #060912; border: 1px solid var(--border); border-radius: 12px; padding: 18px;
  font-family: ui-monospace, 'Courier New', monospace; font-size: 13px; color: #b9c7e6;
  white-space: pre-wrap; word-break: break-all; line-height: 1.6; }

@media (max-width: 760px) {
  .shell { flex-direction: column; }
  .sidebar { width: 100%; height: auto; position: static; flex-direction: row; flex-wrap: wrap; align-items: center; }
  .sidebar .brand { margin: 0 16px 0 0; }
  .sidebar .bottom { margin: 0 0 0 auto; flex-direction: row; align-items: center; }
  .cust { display: none; }
  .nav { display: flex; flex-wrap: wrap; gap: 4px; }
  .nav a span { display: none; }
  .main { padding: 22px; }
  .grid.cols-3, .grid.cols-2 { grid-template-columns: 1fr; }
}
