/* public/css/app.css */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --navy: #0F1B35;
  --accent: #3B7EF6;
  --accent-glow: rgba(59,126,246,0.12);
  --teal: #00C4B4;
  --amber: #F59E0B;
  --rose: #F43F5E;
  --surface: #FFFFFF;
  --surface-2: #F4F6FB;
  --border: #DDE3F0;
  --text: #0F1B35;
  --text-mid: #4A5578;
  --text-muted: #8A94B0;
  --sidebar-w: 230px;
  --topbar-h: 56px;
  --radius: 10px;
  --shadow: 0 2px 12px rgba(15,27,53,0.08);
  --shadow-lg: 0 8px 32px rgba(15,27,53,0.14);
}

body { font-family: 'DM Sans', sans-serif; background: var(--surface-2); color: var(--text); }
a { color: inherit; text-decoration: none; }

/* ── LOGIN ── */
body.login-body { display: flex; align-items: center; justify-content: center; min-height: 100vh; background: linear-gradient(135deg,#1565C0,#1976D2 40%,#42A5F5 80%,#29B6F6); }
.login-card { background: white; border-radius: 16px; padding: 44px 48px; width: 100%; max-width: 480px; box-shadow: 0 24px 80px rgba(0,0,0,0.22); position: relative; animation: slideUp .5s ease; }
@keyframes slideUp { from{opacity:0;transform:translateY(20px)} to{opacity:1;transform:translateY(0)} }
.lang-badge { position: absolute; top: 18px; right: 18px; border: 1.5px solid var(--border); border-radius: 8px; padding: 6px 12px; font-size: 13px; font-weight: 600; color: var(--text-mid); cursor: pointer; }
.login-logo { text-align: center; margin-bottom: 24px; }
.login-logo h1 { font-size: 26px; font-weight: 300; }
.login-logo .logo-pill { font-weight: 800; border: 2px solid var(--navy); border-radius: 999px; padding: 0 6px; }
.login-title { text-align: center; font-size: 24px; font-weight: 600; margin-bottom: 24px; }
.alert { padding: 12px 16px; border-radius: 8px; margin-bottom: 16px; font-size: 13.5px; }
.alert-danger { background: rgba(244,63,94,0.1); color: var(--rose); border: 1px solid rgba(244,63,94,0.25); }
.field-group { margin-bottom: 16px; }
.field-group label { display: block; font-size: 13.5px; font-weight: 600; margin-bottom: 6px; }
.field-group input, .form-control { width: 100%; padding: 11px 14px; border: 1.5px solid var(--border); border-radius: 8px; font-size: 14px; font-family: inherit; color: var(--text); outline: none; transition: border-color .2s; }
.field-group input:focus, .form-control:focus { border-color: var(--accent); }
.input-with-icon { position: relative; }
.input-with-icon input { padding-right: 44px; }
.toggle-pw { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); background: none; border: none; cursor: pointer; font-size: 16px; }
.forgot-link { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--text-mid); margin-bottom: 20px; }
.info-icon { width: 16px; height: 16px; border-radius: 50%; border: 1.5px solid currentColor; display: inline-flex; align-items: center; justify-content: center; font-size: 10px; font-weight: 700; }
.forgot-link a { color: inherit; text-decoration: underline; }

/* ── TOPBAR ── */
.topbar { position: fixed; top: 0; left: 0; right: 0; z-index: 100; height: var(--topbar-h); background: var(--navy); display: flex; align-items: center; box-shadow: 0 2px 12px rgba(0,0,0,.25); }
.topbar-logo { width: var(--sidebar-w); padding: 0 20px; flex-shrink: 0; }
.logo-text { font-size: 14px; font-weight: 300; color: rgba(255,255,255,.9); }
.logo-text strong, .logo-pill { font-weight: 800; color: white; border: 1.5px solid white; border-radius: 999px; padding: 0 4px; }
.topbar-center { flex: 1; display: flex; justify-content: center; }
.product-badge { background: white; border-radius: 8px; padding: 5px 16px; font-size: 15px; font-weight: 800; color: var(--navy); }
.product-badge em { font-style: italic; letter-spacing: -.2px; }
.dot-r{color:#E84040}.dot-b{color:#4080E8}.dot-g{color:#38C860}
.topbar-actions { display: flex; align-items: center; gap: 4px; padding-right: 16px; }
.topbar-icon-btn { width: 36px; height: 36px; border-radius: 8px; display: flex; align-items: center; justify-content: center; color: rgba(255,255,255,.7); cursor: pointer; font-size: 16px; border: none; background: transparent; position: relative; }
.topbar-icon-btn:hover { background: rgba(255,255,255,.12); color: white; }
.notif-badge { position: absolute; top: 4px; right: 4px; background: var(--rose); color: white; font-size: 10px; font-weight: 700; min-width: 16px; height: 16px; border-radius: 99px; display: flex; align-items: center; justify-content: center; padding: 0 4px; }
.user-chip { display: flex; align-items: center; gap: 8px; padding: 5px 12px; border-radius: 8px; cursor: pointer; color: white; font-size: 13.5px; font-weight: 500; border: none; background: transparent; }
.user-chip:hover { background: rgba(255,255,255,.1); }
.user-avatar { width: 28px; height: 28px; border-radius: 50%; background: linear-gradient(135deg,var(--teal),var(--accent)); display: flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 700; color: white; }

/* ── SIDEBAR ── */
.sidebar { position: fixed; top: var(--topbar-h); left: 0; bottom: 0; width: var(--sidebar-w); background: white; border-right: 1px solid var(--border); overflow-y: auto; z-index: 90; }
.sidebar-search { padding: 12px 12px 8px; }
.sidebar-search input { width: 100%; padding: 8px 12px; border: 1.5px solid var(--border); border-radius: 8px; font-size: 13px; font-family: inherit; background: var(--surface-2); outline: none; }
.sidebar-search input:focus { border-color: var(--accent); }
.nav-section-label { padding: 10px 16px 4px; font-size: 10.5px; font-weight: 700; letter-spacing: .8px; text-transform: uppercase; color: var(--text-muted); }
.nav-item { display: flex; align-items: center; gap: 10px; padding: 9px 14px; margin: 1px 8px; border-radius: 8px; cursor: pointer; font-size: 13.5px; font-weight: 500; color: var(--text-mid); transition: background .15s, color .15s; }
.nav-item:hover { background: var(--surface-2); color: var(--text); }
.nav-item.active { background: var(--accent-glow); color: var(--accent); font-weight: 600; }
.nav-icon { font-size: 15px; width: 18px; text-align: center; }
.nav-badge { margin-left: auto; background: var(--accent); color: white; font-size: 11px; font-weight: 700; min-width: 20px; height: 20px; border-radius: 99px; display: flex; align-items: center; justify-content: center; padding: 0 5px; }

/* ── MAIN ── */
.main { margin-left: var(--sidebar-w); padding: calc(var(--topbar-h) + 28px) 32px 40px; min-height: 100vh; }
.breadcrumb { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--text-muted); margin-bottom: 22px; flex-wrap: wrap; }
.breadcrumb a { color: var(--accent); }
.breadcrumb .current { color: var(--text); font-weight: 600; }
.breadcrumb-sub { margin-left: auto; font-weight: 500; color: var(--text-mid); }

/* ── CARDS ── */
.card { background: white; border-radius: var(--radius); box-shadow: var(--shadow); border: 1px solid var(--border); }
.card-header { padding: 16px 20px 12px; border-bottom: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; }
.card-title { font-size: 14px; font-weight: 700; }
.card-body { padding: 16px 20px; }
.card-body.p-0 { padding: 0; }

/* ── STATS ── */
.stat-row { display: grid; grid-template-columns: repeat(4,1fr); gap: 16px; margin-bottom: 24px; }
.stat-card { background: white; border-radius: var(--radius); padding: 20px 22px; box-shadow: var(--shadow); display: flex; align-items: center; gap: 14px; border: 1px solid var(--border); }
.stat-icon { width: 46px; height: 46px; border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 20px; }
.stat-icon.blue{background:rgba(59,126,246,.12)} .stat-icon.teal{background:rgba(0,196,180,.12)} .stat-icon.amber{background:rgba(245,158,11,.12)} .stat-icon.rose{background:rgba(244,63,94,.12)}
.stat-label { font-size: 12.5px; color: var(--text-muted); font-weight: 500; }
.stat-value { font-size: 28px; font-weight: 700; line-height: 1; margin-top: 2px; }
.grid-3 { display: grid; grid-template-columns: repeat(3,1fr); gap: 20px; margin-bottom: 20px; }

/* ── SHORTCUTS ── */
.shortcut-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 10px; }
.shortcut-btn { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 16px 10px; border-radius: 10px; border: 1.5px solid var(--border); background: var(--surface-2); cursor: pointer; text-align: center; text-decoration: none; transition: all .15s; }
.shortcut-btn:hover { border-color: var(--accent); background: var(--accent-glow); }
.sc-icon { font-size: 22px; }
.sc-label { font-size: 12px; font-weight: 600; color: var(--text-mid); }

/* ── DOSSIER LIST ── */
.dossier-list {} 
.dossier-rij { display: flex; align-items: center; justify-content: space-between; padding: 12px 0; border-bottom: 1px solid var(--border); cursor: pointer; }
.dossier-rij:last-child { border-bottom: none; }
.dossier-rij:hover { background: var(--surface-2); margin: 0 -20px; padding: 12px 20px; border-radius: 6px; }
.dossier-naam { font-size: 14px; font-weight: 600; }
.dossier-sub { font-size: 12px; color: var(--text-muted); margin-top: 2px; }
.dossier-dagen { font-size: 14px; font-weight: 700; color: var(--text-mid); display: flex; align-items: center; gap: 8px; }

/* ── AGENDA ── */
.agenda-rij { display: flex; gap: 14px; padding: 10px 0; border-bottom: 1px solid var(--border); align-items: flex-start; }
.agenda-rij:last-child { border-bottom: none; }
.agenda-tijd { font-size: 12px; font-weight: 700; color: var(--accent); min-width: 60px; }
.agenda-naam { font-size: 13.5px; font-weight: 600; }
.agenda-type { font-size: 12px; color: var(--text-muted); }

/* ── TABLES ── */
.data-table { width: 100%; border-collapse: collapse; }
.data-table thead th { padding: 10px 16px; text-align: left; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .6px; color: var(--text-muted); background: var(--surface-2); border-bottom: 1px solid var(--border); }
.data-table tbody td { padding: 13px 16px; border-bottom: 1px solid var(--border); font-size: 13.5px; }
.data-table tbody tr:hover { background: var(--surface-2); cursor: pointer; }
.data-table tbody tr:last-child td { border-bottom: none; }
.pill { display: inline-flex; align-items: center; gap: 4px; padding: 3px 10px; border-radius: 20px; font-size: 12px; font-weight: 600; }
.pill.active { background: rgba(34,197,94,.12); color: #16A34A; }
.pill.ziek { background: rgba(244,63,94,.12); color: var(--rose); }
.pill.herstel { background: rgba(245,158,11,.12); color: #B07A00; }

/* ── BUTTONS ── */
.btn-primary { width: 100%; padding: 14px; background: #5B73E8; color: white; border: none; border-radius: 8px; font-size: 14px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; cursor: pointer; font-family: inherit; transition: background .2s; }
.btn-primary:hover { background: #4A61D6; }
.btn-accent { padding: 9px 18px; background: var(--accent); color: white; border: none; border-radius: 8px; font-size: 13.5px; font-weight: 600; font-family: inherit; cursor: pointer; display: flex; align-items: center; gap: 6px; }
.btn-accent:hover { background: #2B6EE6; }
.btn-outline-sm { padding: 7px 14px; border-radius: 7px; border: 1.5px solid var(--border); background: white; font-size: 12.5px; font-weight: 600; color: var(--text-mid); cursor: pointer; display: flex; align-items: center; gap: 6px; font-family: inherit; }
.btn-outline-sm:hover { border-color: var(--accent); color: var(--accent); }
.btn-danger-sm { padding: 7px 14px; border-radius: 7px; border: 1.5px solid rgba(244,63,94,.3); background: rgba(244,63,94,.06); font-size: 12.5px; font-weight: 600; color: var(--rose); cursor: pointer; display: flex; align-items: center; gap: 6px; font-family: inherit; }
.btn-add { display: flex; align-items: center; gap: 5px; padding: 6px 12px; border-radius: 20px; background: rgba(34,197,94,.12); color: #16A34A; border: 1.5px solid rgba(34,197,94,.3); font-size: 12.5px; font-weight: 600; cursor: pointer; font-family: inherit; }

/* ── DOSSIER DETAIL ── */
.dossier-tabs { display: flex; border-bottom: 1px solid var(--border); padding: 0 20px; gap: 0; }
.dossier-tab { padding: 14px 18px; font-size: 13.5px; font-weight: 600; color: var(--text-muted); cursor: pointer; border-bottom: 2.5px solid transparent; border: none; background: none; font-family: inherit; transition: color .15s, border-color .15s; }
.dossier-tab.active { color: var(--accent); border-bottom: 2.5px solid var(--accent); }
.tab-badge { background: var(--accent); color: white; border-radius: 99px; padding: 1px 6px; font-size: 11px; margin-left: 4px; }
.tab-content { }
.dossier-grid { display: grid; grid-template-columns: 280px 1fr 280px; gap: 20px; padding: 24px; }
.timeline-wrap { padding: 10px 20px 6px; }
.timeline-bar { height: 16px; border-radius: 6px; background: var(--surface-2); overflow: hidden; margin-bottom: 4px; position: relative; }
.timeline-fill { height: 100%; background: linear-gradient(90deg,#FF6B35,#FFB020 20%,var(--accent)); border-radius: 6px; }
.timeline-labels { display: flex; justify-content: space-between; font-size: 10.5px; color: var(--text-muted); }
.client-card-mini { background: #3D3D3D; border-radius: 10px; padding: 16px; color: white; }
.client-name { font-size: 15px; font-weight: 700; margin-bottom: 4px; }
.client-dob { font-size: 12px; opacity: .75; margin-bottom: 10px; }
.client-detail { display: flex; align-items: center; gap: 8px; font-size: 12.5px; opacity: .85; margin-bottom: 4px; }
.client-detail.small { font-size: 11px; opacity: .6; }
.traject-badge { margin-top: 14px; background: rgba(59,126,246,.15); border: 1.5px solid rgba(59,126,246,.4); border-radius: 8px; padding: 10px 12px; }
.t-name { font-size: 13px; font-weight: 700; color: #90BBFF; }
.t-row { font-size: 12px; display: flex; gap: 6px; margin-top: 4px; }
.t-label { opacity: .7; color: rgba(255,255,255,.7); }
.t-val { font-weight: 600; color: white; }
.form-grid { display: grid; gap: 12px; margin-bottom: 20px; }
.form-row { display: grid; grid-template-columns: 140px 1fr; align-items: center; gap: 12px; }
.form-row label { font-size: 13px; font-weight: 600; color: var(--text-mid); }
.form-input { display: flex; align-items: center; gap: 8px; padding: 9px 12px; border: 1.5px solid var(--border); border-radius: 8px; background: white; }
.form-input input { border: none; outline: none; font-size: 13.5px; font-family: inherit; color: var(--text); width: 100%; background: transparent; }
.sectie-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.vd-empty { border: 2px dashed var(--border); border-radius: 10px; min-height: 80px; display: flex; align-items: center; justify-content: center; color: var(--text-muted); font-size: 13px; cursor: pointer; }
.vd-empty:hover { border-color: var(--accent); color: var(--accent); }
.notitie-kaart { border: 1px solid var(--border); border-radius: 8px; padding: 14px; margin-bottom: 10px; }
.notitie-header { display: flex; gap: 10px; margin-bottom: 8px; font-size: 12px; color: var(--text-muted); }
.notitie-type { background: var(--surface-2); padding: 2px 8px; border-radius: 4px; font-weight: 600; }
.notitie-titel { font-weight: 700; margin-bottom: 6px; }
.notitie-inhoud { font-size: 13.5px; line-height: 1.6; }
.kpi-circles { display: flex; gap: 12px; margin-bottom: 18px; }
.kpi-circle { flex: 1; aspect-ratio: 1; border-radius: 50%; display: flex; flex-direction: column; align-items: center; justify-content: center; font-size: 11px; font-weight: 600; text-align: center; line-height: 1.2; color: white; }
.kpi-circle.blue{background:var(--accent)} .kpi-circle.amber{background:var(--amber)} .kpi-circle.rose{background:var(--rose)}
.kpi-num { font-size: 22px; font-weight: 800; }
.action-btns { display: flex; gap: 8px; justify-content: flex-end; margin-bottom: 14px; }
.afspraak-type-btns { display: flex; gap: 8px; margin-bottom: 12px; flex-wrap: wrap; }
.afspraak-btn { display: flex; align-items: center; gap: 5px; padding: 6px 12px; border-radius: 20px; font-size: 12px; font-weight: 600; cursor: pointer; font-family: inherit; }
.afspraak-btn.online { border: 1.5px solid var(--accent); color: var(--accent); background: var(--accent-glow); }
.afspraak-btn.offline { border: 1.5px solid var(--teal); color: var(--teal); background: rgba(0,196,180,.08); }
.afspraak-btn.verr { border: 1.5px solid var(--amber); color: var(--amber); background: rgba(245,158,11,.08); }
.afspraak-rij { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--border); font-size: 13px; }
.afspraak-rij:last-child { border-bottom: none; }
.afspraak-datum { font-weight: 700; min-width: 70px; color: var(--text-mid); }
.afspraak-type { flex: 1; }
.verzuim-table { width: 100%; border-collapse: collapse; font-size: 12.5px; }
.verzuim-table th { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--border); font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .5px; color: var(--text-muted); }
.verzuim-table td { padding: 10px; border-bottom: 1px solid var(--border); }
.status-dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; margin-right: 4px; }
.status-dot.green{background:#22C55E} .status-dot.amber{background:var(--amber)}

/* ── MODALS ── */
.modal-overlay { position: fixed; inset: 0; background: rgba(0,0,0,.5); z-index: 500; display: flex; align-items: center; justify-content: center; }
.modal { background: white; border-radius: 12px; width: 100%; max-width: 480px; box-shadow: 0 24px 80px rgba(0,0,0,.25); }
.modal-header { display: flex; align-items: center; justify-content: space-between; padding: 18px 22px 14px; border-bottom: 1px solid var(--border); }
.modal-header h3 { font-size: 16px; font-weight: 700; }
.modal-header button { background: none; border: none; font-size: 18px; cursor: pointer; color: var(--text-muted); }
.modal-body { padding: 20px 22px; display: grid; gap: 14px; }
.modal-footer { display: flex; justify-content: flex-end; gap: 10px; padding: 14px 22px 18px; border-top: 1px solid var(--border); }
.form-control { width: 100%; padding: 9px 12px; border: 1.5px solid var(--border); border-radius: 8px; font-size: 13.5px; font-family: inherit; outline: none; }
.form-control:focus { border-color: var(--accent); }
select.form-control { cursor: pointer; }
textarea.form-control { resize: vertical; }

/* ── MISC ── */
.hidden { display: none !important; }
.leeg-tekst { color: var(--text-muted); font-size: 13px; text-align: center; padding: 20px; }
.flash { padding: 12px 20px; border-radius: 8px; margin-bottom: 16px; font-size: 13.5px; }
.flash-success { background: rgba(34,197,94,.1); color: #16A34A; border: 1px solid rgba(34,197,94,.25); }
.flash-danger { background: rgba(244,63,94,.1); color: var(--rose); border: 1px solid rgba(244,63,94,.25); }

::-webkit-scrollbar { width: 5px; } ::-webkit-scrollbar-track { background: transparent; } ::-webkit-scrollbar-thumb { background: var(--border); border-radius: 99px; }
