@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&family=DM+Sans:wght@300;400;500&display=swap');
 
/* ─── Reset ─── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
 
:root {
  --orange: #FF6F00;
  --orange-light: #FF8F00;
  --orange-pale: #FFF3E0;
  --orange-glow: rgba(255,111,0,0.12);
  --dark: #1A1A2E;
  --text: #1e293b;
  --muted: #64748b;
  --muted2: #94a3b8;
  --white: #ffffff;
  --bg: #F5F6FA;
  --surface: #ffffff;
  --border: #E8ECF0;
  --border-light: #F1F4F8;
  --radius: 14px;
  --radius-sm: 8px;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
  --shadow: 0 4px 16px rgba(0,0,0,0.07);
  --shadow-md: 0 8px 32px rgba(0,0,0,0.1);
}
 
html { scroll-behavior: smooth; }
 
body {
  font-family: 'DM Sans', sans-serif;
  background: var(--bg);
  color: var(--text);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
 
/* ─── Inlogpagina ─── */
.auth-page {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  background: linear-gradient(135deg, #FFF8EE 0%, var(--bg) 100%);
}
 
.auth-box {
  background: var(--surface);
  padding: 48px 40px;
  border-radius: 20px;
  box-shadow: var(--shadow-md);
  width: 100%;
  max-width: 420px;
  border: 1px solid var(--border);
}
 
.auth-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 32px;
}
.auth-logo-mark {
  width: 36px; height: 36px;
  background: var(--orange);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px;
}
.auth-logo span {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 800;
  font-size: 18px;
  color: var(--dark);
}
 
.auth-box h1 {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 4px;
  color: var(--dark);
}
 
.subtitle {
  color: var(--muted);
  font-size: 14px;
  margin-bottom: 28px;
}
 
/* ─── Formulier ─── */
.form-group { margin-bottom: 18px; }
 
.form-group label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 7px;
  color: var(--text);
}
 
.form-group input {
  width: 100%;
  padding: 11px 14px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-family: 'DM Sans', sans-serif;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  background: var(--bg);
  color: var(--text);
}
 
.form-group input:focus {
  border-color: var(--orange);
  box-shadow: 0 0 0 3px var(--orange-glow);
  background: white;
}
 
/* ─── Knoppen ─── */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 13px 20px;
  background: var(--orange);
  color: white;
  border: none;
  border-radius: var(--radius-sm);
  font-size: 15px;
  font-weight: 600;
  font-family: 'DM Sans', sans-serif;
  cursor: pointer;
  margin-top: 8px;
  transition: all 0.2s;
  box-shadow: 0 4px 14px rgba(255,111,0,0.3);
}
 
.btn-primary:hover {
  background: var(--orange-light);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(255,111,0,0.4);
}
 
.btn-primary:disabled {
  background: #FFCC80;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}
 
.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 16px;
  background: transparent;
  color: var(--muted);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 500;
  font-family: 'DM Sans', sans-serif;
  cursor: pointer;
  transition: all 0.2s;
}
 
.btn-secondary:hover {
  border-color: var(--orange);
  color: var(--orange);
  background: var(--orange-pale);
}
 
/* ─── Foutmelding ─── */
.error-msg {
  background: #FEF2F2;
  color: #DC2626;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  margin-bottom: 16px;
  border: 1px solid #FECACA;
}
 
/* ─── Dashboard layout ─── */
.dashboard-layout {
  display: flex;
  min-height: 100vh;
}
 
/* ─── Sidebar ─── */
.sidebar {
  width: 240px;
  background: var(--dark);
  padding: 24px 16px;
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0; left: 0;
  height: 100vh;
  z-index: 10;
}
 
.sidebar-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 4px 8px;
  margin-bottom: 36px;
}
.sidebar-brand-mark {
  width: 32px; height: 32px;
  background: var(--orange);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-size: 16px;
  flex-shrink: 0;
}
.sidebar-brand span {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 800;
  font-size: 16px;
  color: white;
}
 
.sidebar-section-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.25);
  padding: 0 12px;
  margin-bottom: 8px;
}
 
.sidebar nav a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 10px;
  text-decoration: none;
  color: rgba(255,255,255,0.55);
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 2px;
  transition: all 0.2s;
}
 
.sidebar nav a .nav-icon {
  width: 18px;
  text-align: center;
  font-size: 15px;
  opacity: 0.7;
}
 
.sidebar nav a:hover {
  background: rgba(255,255,255,0.07);
  color: white;
}
 
.sidebar nav a.active {
  background: rgba(255,111,0,0.2);
  color: white;
}
 
.sidebar nav a.active .nav-icon {
  opacity: 1;
}
 
.sidebar-footer {
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid rgba(255,255,255,0.08);
}
 
/* ─── Main content ─── */
.main-content {
  flex: 1;
  margin-left: 240px;
  padding: 32px 36px;
  min-height: 100vh;
}
 
/* ─── Topbar ─── */
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 32px;
}
 
.topbar-left h1 {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 22px;
  font-weight: 700;
  color: var(--dark);
}
 
.topbar-left p {
  font-size: 13px;
  color: var(--muted);
  margin-top: 2px;
}
 
.topbar-right {
  display: flex;
  align-items: center;
  gap: 12px;
}
 
/* ─── Stats ─── */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 28px;
}
 
.stat-kaart {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 22px 24px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 6px;
}
 
.stat-icon {
  width: 44px; height: 44px;
  border-radius: 12px;
  background: var(--orange-pale);
  display: flex; align-items: center; justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}
 
.stat-info {}
 
.stat-label {
  font-size: 14px;
  color: var(--muted);
  font-weight: 500;
  margin-bottom: 4px;
}
 
.stat-waarde {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 28px;
  font-weight: 800;
  color: var(--dark);
  line-height: 1;
}
 
/* ─── Sectie header ─── */
.sectie-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}
 
.sectie-header h2 {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 16px;
  font-weight: 700;
  color: var(--dark);
}
 
.sectie-header a {
  font-size: 13px;
  color: var(--orange);
  text-decoration: none;
  font-weight: 500;
}
 
/* ─── Gesprekken lijst ─── */
.gesprekken-lijst {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
 
.gesprek-kaart {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 16px 20px;
  cursor: pointer;
  border: 1.5px solid var(--border);
  transition: all 0.2s;
  text-decoration: none;
  color: inherit;
  display: flex;
  align-items: center;
  gap: 16px;
  box-shadow: var(--shadow-sm);
}
 
.gesprek-kaart:hover {
  border-color: rgba(255,111,0,0.3);
  box-shadow: var(--shadow);
  transform: translateY(-1px);
}
 
.gesprek-kaart.nieuw {
  border-left: 3px solid var(--orange);
}
 
.gesprek-avatar {
  width: 42px; height: 42px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--orange), var(--orange-light));
  display: flex; align-items: center; justify-content: center;
  color: white;
  font-weight: 700;
  font-size: 15px;
  flex-shrink: 0;
}
 
.gesprek-avatar.grijs {
  background: var(--border);
  color: var(--muted);
}
 
.gesprek-body {
  flex: 1;
  min-width: 0;
}
 
.gesprek-naam {
  font-weight: 600;
  font-size: 14px;
  color: var(--dark);
  margin-bottom: 3px;
}
 
.gesprek-preview {
  font-size: 13px;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
 
.gesprek-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
  flex-shrink: 0;
}
 
.gesprek-tijd {
  font-size: 12px;
  color: var(--muted2);
}
 
.badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 9px;
  border-radius: 100px;
  font-size: 11px;
  font-weight: 700;
}
 
.badge-nieuw {
  background: var(--orange-pale);
  color: var(--orange);
}
 
.badge-gelezen {
  background: var(--border-light);
  color: var(--muted);
}
 
.badge-nieuw-lead {
  background: #DCFCE7;
  color: #16A34A;
}
 
/* ─── Pagina header ─── */
.page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
}
 
.page-header h1 {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 22px;
  font-weight: 700;
  color: var(--dark);
}
 
/* ─── Gesprek detail ─── */
.gesprek-detail {
  display: flex;
  flex-direction: column;
  height: calc(100vh - 100px);
  background: var(--surface);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
 
.gesprek-detail-header {
  padding: 16px 24px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 12px;
  background: white;
}
 
.gesprek-detail-avatar {
  width: 38px; height: 38px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--orange), var(--orange-light));
  display: flex; align-items: center; justify-content: center;
  color: white;
  font-weight: 700;
  font-size: 14px;
}
 
.gesprek-detail-naam {
  font-weight: 600;
  font-size: 15px;
  color: var(--dark);
}
 
.gesprek-detail-sub {
  font-size: 12px;
  color: var(--muted);
}
 
.berichten-lijst {
  flex: 1;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 24px;
  background: var(--bg);
}
 
.bericht-wrap {
  display: flex;
  flex-direction: column;
}
 
.bericht-wrap.right { align-items: flex-end; }
.bericht-wrap.left { align-items: flex-start; }
 
.bericht {
  max-width: 68%;
  padding: 11px 15px;
  border-radius: 16px;
  font-size: 14px;
  line-height: 1.55;
}
 
.bericht.user {
  background: white;
  color: var(--text);
  border-bottom-left-radius: 4px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
}
 
.bericht.assistant {
  background: var(--orange);
  color: white;
  border-bottom-right-radius: 4px;
}
 
.bericht.ondernemer {
  background: #F0FDF4;
  color: #166534;
  border-bottom-right-radius: 4px;
  border: 1px solid #BBF7D0;
}
 
.bericht-tijd {
  font-size: 11px;
  color: var(--muted2);
  margin-top: 4px;
  padding: 0 4px;
}
 
/* ─── Ingrijpen input ─── */
.ingrijpen-area {
  padding: 16px 20px;
  border-top: 1px solid var(--border);
  display: flex;
  gap: 10px;
  background: white;
}
 
.ingrijpen-area input {
  flex: 1;
  padding: 11px 16px;
  border: 1.5px solid var(--border);
  border-radius: 100px;
  font-size: 14px;
  font-family: 'DM Sans', sans-serif;
  outline: none;
  transition: border-color 0.2s;
  background: var(--bg);
}
 
.ingrijpen-area input:focus {
  border-color: var(--orange);
  background: white;
}
 
.btn-send {
  width: 42px; height: 42px;
  border-radius: 50%;
  background: var(--orange);
  border: none;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  color: white;
  font-size: 16px;
  transition: all 0.2s;
  flex-shrink: 0;
}
 
.btn-send:hover {
  background: var(--orange-light);
  transform: scale(1.05);
}
 
/* ─── Dag scheiding ─── */
.dag-scheiding {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 8px 0;
  color: var(--muted2);
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
 
.dag-scheiding::before,
.dag-scheiding::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}
 
/* ─── Leads ─── */
.leads-grid {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
 
.lead-kaart {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 18px 22px;
  border: 1.5px solid var(--border);
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: center;
  gap: 16px;
  transition: all 0.2s;
}
 
.lead-kaart:hover {
  border-color: rgba(255,111,0,0.25);
  box-shadow: var(--shadow);
}
 
.lead-avatar {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, #667eea, #764ba2);
  display: flex; align-items: center; justify-content: center;
  color: white;
  font-weight: 700;
  font-size: 15px;
  flex-shrink: 0;
}
 
.lead-info {
  flex: 1;
  min-width: 0;
}
 
.lead-naam {
  font-weight: 700;
  font-size: 15px;
  color: var(--dark);
  margin-bottom: 3px;
}
 
.lead-contact {
  font-size: 13px;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 12px;
}
 
.lead-contact span {
  display: flex;
  align-items: center;
  gap: 4px;
}
 
.lead-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
}
 
.lead-datum {
  font-size: 12px;
  color: var(--muted2);
}
 
.lead-acties {
  display: flex;
  gap: 8px;
}
 
.btn-actie {
  padding: 6px 14px;
  border-radius: 100px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  font-family: 'DM Sans', sans-serif;
  transition: all 0.2s;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
 
.btn-actie-primary {
  background: var(--orange-pale);
  color: var(--orange);
}
.btn-actie-primary:hover { background: var(--orange); color: white; }
 
.btn-actie-ghost {
  background: var(--bg);
  color: var(--muted);
  border: 1px solid var(--border);
}
.btn-actie-ghost:hover { border-color: var(--orange); color: var(--orange); }
 
/* ─── Status badges leads ─── */
.status-nieuw { background: var(--orange-pale); color: var(--orange); }
.status-opgevolgd { background: #DCFCE7; color: #16A34A; }
.status-gesloten { background: var(--border-light); color: var(--muted); }
 
/* ─── Leeg state ─── */
.leeg-state {
  text-align: center;
  padding: 80px 20px;
  color: var(--muted2);
}
 
.leeg-state .leeg-icon {
  font-size: 48px;
  margin-bottom: 16px;
  opacity: 0.5;
}
 
.leeg-state p {
  font-size: 15px;
  color: var(--muted);
}
 
/* ─── Filter bar ─── */
.filter-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 20px;
}
 
.filter-btn {
  padding: 7px 16px;
  border-radius: 100px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  border: 1.5px solid var(--border);
  background: white;
  color: var(--muted);
  font-family: 'DM Sans', sans-serif;
  transition: all 0.2s;
}
 
.filter-btn:hover, .filter-btn.active {
  border-color: var(--orange);
  color: var(--orange);
  background: var(--orange-pale);
}
 
/* ─── Zoekbalk ─── */
.zoekbalk {
  position: relative;
  margin-left: auto;
}
 
.zoekbalk input {
  padding: 8px 14px 8px 36px;
  border: 1.5px solid var(--border);
  border-radius: 100px;
  font-size: 13px;
  font-family: 'DM Sans', sans-serif;
  outline: none;
  background: white;
  color: var(--text);
  transition: border-color 0.2s;
  width: 200px;
}
 
.zoekbalk input:focus { border-color: var(--orange); }
 
.zoekbalk::before {
  content: '🔍';
  position: absolute;
  left: 12px; top: 50%;
  transform: translateY(-50%);
  font-size: 12px;
  pointer-events: none;
}