﻿@charset "UTF-8";
/* =============================================================================
 * bil.scss — UI styling voor BI
 *
 * Brand-thema wisselen: zet op <html> het data-brand attribuut.
 *   <html data-brand="logisz">  ← default
 *   <html data-brand="berdal">
 *
 * Een nieuw merk toevoegen = één [data-brand="…"] blok toevoegen met alleen
 * de variabelen die anders moeten zijn dan LOGISZ. Hercompileer bil.scss
 * (Web Compiler) of edit bil.css direct.
 * ============================================================================= */
/* ── Minimale reset (Bootstrap reboot is niet meer geladen) ──────────────── */
*, *::before, *::after {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  height: 100%;
  min-height: 100%;
}

/* ── Brand: LOGISZ (default) ─────────────────────────────────────────────── */
:root,
[data-brand=logisz] {
  /* Universeel — bruikbaar op elke pagina */
  --accent: #FFBF00; /* brand-accent (amber); was #FFFFFF */
  /* Legacy/classic-admin tokens (stonden in site.css op `*`) */
  --background: #F7F7F7;
  --white: #FFFFFF;
  --black: #000000;
  --logisz-amber: var(--accent, #FFBF00); /* alias — switcht mee met brand */
  --on-accent: #111827;
  --heading-color: #FFFFFF;
  --text: #ffffff;
  --text-muted: rgba(255, 255, 255, 0.7);
  --bg-color: #000000;
  --card-bg: rgba(20, 20, 20, 0.7);
  --card-bg-fallback: rgba(20, 20, 20, 0.97); /* zonder backdrop-filter */
  --card-border: rgba(255, 255, 255, 0.12);
  --card-shadow: 0 24px 60px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.05);
  --chrome-bg: #000000; /* sidebar + blade — bij LOGISZ = bg-color */
  --text-on-body: #ffffff; /* tekst die op body-bg zweeft (page-header, empty-state) */
  --text-muted-on-body: rgba(255, 255, 255, 0.7);
  --surface-bg: rgba(255, 255, 255, 0.04); /* sidebar, panel-vlakken */
  --surface-bg-hover: rgba(255, 255, 255, 0.08); /* hover op lijstitems, icon-buttons */
  --bg-elev: #0c0c0c; /* composer-, topbar-niveau */
  --bg-elev-2: #161616; /* hover surfaces, user-bubble fallback */
  --bg-elev-3: #222222; /* sterkere hover */
  --border-subtle: rgba(255, 255, 255, 0.06); /* glass-border, topbar separator */
  --text-faint: #9a9a9a; /* derde tier (zwakker dan --text-muted) */
  --accent-hover: #ffd33d; /* hover-state op --accent */
  --accent-soft: rgba(255, 191, 0, 0.14); /* zachte accent-wash */
  --pill-border: rgba(255, 255, 255, 0.18); /* nav-pill default */
  --pill-border-hover: rgba(255, 255, 255, 0.32);
  --pill-border-active: rgba(255, 255, 255, 0.45);
  --pill-bg-hover: rgba(255, 255, 255, 0.06);
  --pill-bg-active: rgba(255, 255, 255, 0.14);
  --pill-text-active: #ffffff;
  --glass-bg: rgba(0, 0, 0, 0.22); /* topbar */
  --glass-bg-soft: rgba(0, 0, 0, 0.08);
  --user-bubble: rgba(0, 0, 0, 0.45);
  --user-bubble-border: rgba(255, 255, 255, 0.18);
  --user-bubble-text: #ffffff;
  --danger: #e06b5e; /* zacht rood, voor destructieve acties */
  --logo-bg: #000000;
  --logo-image: url("/images/logisz/logo.webp");
  --logo-shadow: 0 12px 28px rgba(0, 0, 0, 0.5);
  --font-family: "Poppins", sans-serif;
  --font-mono: "Poppins", sans-serif; /*'Consolas', 'Monaco', monospace;*/ /* monospace: code, timestamps, tool-tags */
  /* Chat-specifiek — alleen op de chat-pagina */
  --chat-bubble-user-bg: rgba(255, 255, 255, 0.10);
  --chat-bubble-user-text: var(--text);
  --chat-bubble-assistant-bg: transparent;
  /* Chat-page energizer-positionering: shift mee met de sidebar zodat
     de foto visueel midden in het chat-paneel komt, niet in het viewport */
  --chat-bg-position: calc(50% + 136px) center; /* sidebar open: 136px = halve sidebar */
  --chat-bg-position-collapsed: center center; /* sidebar dicht: viewport-center */
  /* Login-specifiek — alleen op de login-splash */
  --login-bg-image: url("/images/logisz/background.jpg");
  --login-bg-size: cover;
  --login-bg-position: center center;
  --login-vignette: rgba(0, 0, 0, 0.35);
  --login-pill-bg: #000000;
  --login-pill-text: #ffffff;
  --login-pill-border: rgba(255, 255, 255, 0.18);
  --login-pill-shadow: 0 10px 32px rgba(0, 0, 0, 0.42);
  --login-pill-shadow-hover: 0 16px 42px rgba(0, 0, 0, 0.55);
  --login-glow: #ffffff;
}

/* ── Brand: Aurora — dark navy-purple thema met mint accent ──────────────── */
[data-brand=aurora] {
  /* Universeel — bruikbaar op elke pagina */
  --accent: #34d399; /* mint/emerald 400 */
  --on-accent: #022c22; /* deep emerald-black voor text-on-mint */
  --accent-hover: #6ee7b7; /* lighter mint voor hover */
  --accent-soft: rgba(52, 211, 153, 0.16); /* zachte mint wash */
  --heading-color: #f1f5f9; /* slate-100, bijna wit */
  --text: #e2e8f0; /* slate-200 */
  --text-muted: rgba(226, 232, 240, 0.7);
  --text-faint: #94a3b8; /* slate-400 */
  --bg-color: #1a1d2e; /* deep navy-purple */
  --card-bg: rgba(36, 38, 58, 0.7); /* iets opgehoogd, glassy */
  --card-bg-fallback: rgba(36, 38, 58, 0.97);
  --card-border: rgba(241, 245, 249, 0.12);
  --card-shadow: 0 24px 60px rgba(0, 0, 0, 0.55), inset 0 1px 0 rgba(241, 245, 249, 0.05);
  --chrome-bg: #14172a; /* darker dan body, voor sidebar+blade */
  --text-on-body: #f1f5f9;
  --text-muted-on-body: rgba(241, 245, 249, 0.72);
  --surface-bg: rgba(241, 245, 249, 0.04);
  --surface-bg-hover: rgba(241, 245, 249, 0.08);
  --bg-elev: #0f1120;
  --bg-elev-2: #1d2034;
  --bg-elev-3: #252944;
  --border-subtle: rgba(241, 245, 249, 0.06);
  --pill-border: rgba(241, 245, 249, 0.18);
  --pill-border-hover: rgba(241, 245, 249, 0.32);
  --pill-border-active: rgba(241, 245, 249, 0.45);
  --pill-bg-hover: rgba(241, 245, 249, 0.06);
  --pill-bg-active: rgba(241, 245, 249, 0.14);
  --pill-text-active: #ffffff;
  --glass-bg: rgba(0, 0, 0, 0.28);
  --glass-bg-soft: rgba(0, 0, 0, 0.10);
  --user-bubble: rgba(0, 0, 0, 0.45);
  --user-bubble-border: rgba(52, 211, 153, 0.30); /* mint-getinte rand — Aurora signature */
  --user-bubble-text: #f1f5f9;
  --danger: #f87171; /* rose-400 voor variatie t.o.v. LOGISZ */
  --logo-bg: #14172a;
  /* Inline SVG: mint cirkel met "A"-mountain. Geen externe asset nodig. */
  --logo-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'><circle cx='50' cy='50' r='44' fill='%2334d399'/><path d='M30 68 L50 28 L70 68 L60 68 L50 48 L40 68 Z' fill='%23022c22'/></svg>");
  --logo-shadow: 0 12px 28px rgba(0, 0, 0, 0.55);
  --font-family: "Poppins", sans-serif;
  /* Chat-specifiek */
  --chat-bubble-user-bg: rgba(52, 211, 153, 0.14);
  --chat-bubble-user-text: var(--text);
  --chat-bubble-assistant-bg: rgba(36, 38, 58, 0.92); /* dark — gebruikt in [data-brand="aurora"] override hieronder */
  /* Login-splash: aurora-effect via twee radial gradients (mint + indigo) */
  --login-bg-image: radial-gradient(ellipse 70% 60% at 20% 25%, rgba(52, 211, 153, 0.22), transparent 60%),
                              radial-gradient(ellipse 60% 70% at 85% 75%, rgba(99, 102, 241, 0.20), transparent 65%);
  --login-bg-size: cover;
  --login-bg-position: center center;
  --login-vignette: rgba(0, 0, 0, 0.40);
  --login-pill-bg: #14172a;
  --login-pill-text: #f1f5f9;
  --login-pill-border: rgba(241, 245, 249, 0.18);
  --login-pill-shadow: 0 10px 32px rgba(0, 0, 0, 0.50);
  --login-pill-shadow-hover: 0 16px 42px rgba(0, 0, 0, 0.60);
  --login-glow: #34d399; /* mint comet-glow rondom de pill */
  /* Chat-bg shift: standaard 136px op sidebar-open, terug naar center bij collapsed */
  --chat-bg-position: calc(50% + 136px) center;
  --chat-bg-position-collapsed: center center;
}

/* ── Brand: Niels Golstein — sunset coral op deep ocean teal ─────────────── */
[data-brand=niels] {
  /* Universeel */
  --accent: #fb7185; /* coral / rose-400 */
  --on-accent: #1f0e10; /* deep wine — AAA contrast op coral */
  --accent-hover: #fda4af; /* lighter coral / rose-300 */
  --accent-soft: rgba(251, 113, 133, 0.16);
  --heading-color: #e0f2f1; /* zacht teal-wit */
  --text: #cbd5e1; /* slate-300 — warm wit */
  --text-muted: rgba(203, 213, 225, 0.7);
  --text-faint: #94a3b8; /* slate-400 */
  --bg-color: #0a1f2c; /* deep ocean teal-navy */
  --card-bg: rgba(15, 35, 50, 0.72); /* glassy deep teal */
  --card-bg-fallback: rgba(15, 35, 50, 0.97);
  --card-border: rgba(224, 242, 241, 0.12);
  --card-shadow: 0 24px 60px rgba(0, 0, 0, 0.55), inset 0 1px 0 rgba(224, 242, 241, 0.05);
  --chrome-bg: #06141d; /* darker dan body */
  --text-on-body: #e0f2f1;
  --text-muted-on-body: rgba(224, 242, 241, 0.72);
  --surface-bg: rgba(224, 242, 241, 0.04);
  --surface-bg-hover: rgba(224, 242, 241, 0.08);
  --bg-elev: #061821;
  --bg-elev-2: #102634;
  --bg-elev-3: #1a3243;
  --border-subtle: rgba(224, 242, 241, 0.06);
  --pill-border: rgba(224, 242, 241, 0.18);
  --pill-border-hover: rgba(224, 242, 241, 0.32);
  --pill-border-active: rgba(224, 242, 241, 0.45);
  --pill-bg-hover: rgba(224, 242, 241, 0.06);
  --pill-bg-active: rgba(224, 242, 241, 0.14);
  --pill-text-active: #ffffff;
  --glass-bg: rgba(0, 0, 0, 0.28);
  --glass-bg-soft: rgba(0, 0, 0, 0.10);
  --user-bubble: rgba(0, 0, 0, 0.45);
  --user-bubble-border: rgba(251, 113, 133, 0.30); /* coral-getinte rand — Niels signature */
  --user-bubble-text: #e0f2f1;
  --danger: #f87171; /* rose-400 voor consistentie met thema */
  --logo-bg: #06141d;
  /* Inline SVG: coral cirkel met witte "N" path */
  --logo-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'><circle cx='50' cy='50' r='44' fill='%23fb7185'/><path d='M32 28 L32 72 L40 72 L40 44 L60 72 L68 72 L68 28 L60 28 L60 56 L40 28 Z' fill='%23e0f2f1'/></svg>");
  --logo-shadow: 0 12px 28px rgba(0, 0, 0, 0.55);
  --font-family: "Poppins", sans-serif;
  /* Chat-specifiek */
  --chat-bubble-user-bg: rgba(251, 113, 133, 0.12); /* coral-tinted */
  --chat-bubble-user-text: var(--text);
  --chat-bubble-assistant-bg: rgba(15, 35, 50, 0.92);
  /* Login: sunset over ocean — coral glow boven, cyan glow rechtsonder */
  --login-bg-image: radial-gradient(ellipse 80% 60% at 50% 0%, rgba(251, 113, 133, 0.28), transparent 65%),
                              radial-gradient(ellipse 60% 70% at 85% 95%, rgba(56, 189, 248, 0.20), transparent 65%);
  --login-bg-size: cover;
  --login-bg-position: center center;
  --login-vignette: rgba(0, 0, 0, 0.40);
  --login-pill-bg: #06141d;
  --login-pill-text: #e0f2f1;
  --login-pill-border: rgba(224, 242, 241, 0.18);
  --login-pill-shadow: 0 10px 32px rgba(0, 0, 0, 0.55);
  --login-pill-shadow-hover: 0 16px 42px rgba(0, 0, 0, 0.65);
  --login-glow: #fb7185; /* coral comet-glow rond de pill */
  --chat-bg-position: calc(50% + 136px) center;
  --chat-bg-position-collapsed: center center;
}

/* ── Brand: Berdal — alleen de waardes die afwijken ──────────────────────── */
[data-brand=berdal] {
  --accent: #FFC600;
  --on-accent: #00426A;
  --heading-color: #00426A;
  --text: #000000;
  --text-muted: rgba(0, 0, 0, 0.7);
  --bg-color: #00426A;
  --card-bg: rgba(255, 255, 255, 0.7);
  --card-bg-fallback: rgba(255, 255, 255, 0.97);
  --card-shadow: 0 24px 60px rgba(0, 0, 0, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.4);
  /* Chrome — sidebar + blade worden lichte glas-vlakken, niet brand-blauw */
  --chrome-bg: rgba(247, 247, 247, 0.95);
  /* text-on-body blijft wit, want body is bij Berdal nog steeds donkerblauw (met bg-image) */
  --text-on-body: #ffffff;
  --text-muted-on-body: rgba(255, 255, 255, 0.78);
  --surface-bg: rgba(0, 0, 0, 0.04);
  --surface-bg-hover: rgba(0, 0, 0, 0.08);
  /* Glass-tokens kantelen — wit-getint i.p.v. zwart-getint */
  --glass-bg: rgba(255, 255, 255, 0.5);
  --glass-bg-soft: rgba(255, 255, 255, 0.3);
  /* Border-subtle: donkere haarlijn op lichte achtergrond */
  --border-subtle: rgba(0, 0, 0, 0.10);
  /* Pill-tokens: donkere borders + dark-wash i.p.v. licht-wash */
  --pill-border: rgba(0, 0, 0, 0.14);
  --pill-border-hover: rgba(0, 0, 0, 0.28);
  --pill-border-active: rgba(0, 0, 0, 0.40);
  --pill-bg-hover: rgba(0, 0, 0, 0.04);
  --pill-bg-active: rgba(0, 0, 0, 0.10);
  --pill-text-active: #00426A;
  --accent-hover: #ffd633;
  --accent-soft: rgba(255, 198, 0, 0.18);
  --user-bubble: rgba(255, 255, 255, 0.10);
  --user-bubble-border: rgba(255, 255, 255, 0.28);
  --logo-bg: #00426A;
  --logo-image: url("/images/berdal/logo.svg");
  --chat-bubble-user-bg: rgba(255, 198, 0, 0.18); /* gele tint i.p.v. wit */
  --login-bg-image: url("/images/berdal/background.svg");
  --login-bg-size: 980px 950px;
  --login-bg-position: right -367px bottom -237px;
  /* Berdal heeft een vaste offscreen-positie — niet meeschuiven met sidebar */
  --chat-bg-position: var(--login-bg-position);
  --chat-bg-position-collapsed: var(--login-bg-position);
  --login-vignette: transparent;
  --login-pill-bg: #00426A;
  --login-pill-text: #FFFFFF;
  --login-glow: #FFC600;
}

/* ── Poppins webfonts (lokaal in wwwroot/webfonts) ───────────────────────── */
@font-face {
  font-family: "Poppins";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../webfonts/poppins-v21-latin-regular.woff2") format("woff2");
}
@font-face {
  font-family: "Poppins";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../webfonts/poppins-v21-latin-500.woff2") format("woff2");
}
@font-face {
  font-family: "Poppins";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../webfonts/poppins-v21-latin-700.woff2") format("woff2");
}
@font-face {
  font-family: "Poppins";
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url("../webfonts/poppins-v21-latin-800.woff2") format("woff2");
}
@font-face {
  font-family: "Poppins";
  font-style: normal;
  font-weight: 900;
  font-display: swap;
  src: url("../webfonts/poppins-v21-latin-900.woff2") format("woff2");
}
/* =============================================================================
 * Login pagina
 * Class wordt gezet via ViewData["BodyClass"] = "bil-login" in Login.cshtml.
 * ============================================================================= */
body.bil-login {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background-color: var(--bg-color);
  background-image: var(--login-bg-image);
  background-size: var(--login-bg-size);
  background-position: var(--login-bg-position);
  background-repeat: no-repeat;
  font-family: var(--font-family);
  color: var(--text);
  position: relative;
}

/* Vignet zodat de card visueel ploft op de energizer */
body.bil-login::before {
  content: "";
  position: fixed;
  inset: 0;
  background: radial-gradient(ellipse 80% 60% at 50% 50%, transparent 0%, var(--login-vignette) 100%);
  pointer-events: none;
  z-index: 0;
}

/* _Layout footer verbergen op de login (fullscreen splash, geen © daaronder) */
body.bil-login footer {
  display: none;
}

/* ── Card ────────────────────────────────────────────────────────────────── */
.bil-login-card {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 420px;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 16px;
  padding: 64px 36px 40px; /* extra top voor de overlappende logo */
  text-align: center;
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  box-shadow: var(--card-shadow);
  display: flex;
  flex-direction: column;
  align-items: center;
  animation: bil-fade-in 0.5s ease-out both;
}

@keyframes bil-fade-in {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.bil-login-logo {
  position: absolute;
  top: -44px; /* 50% boven de card-rand */
  left: 50%;
  transform: translateX(-50%);
  width: 88px;
  height: 88px;
  padding: 8px; /* inset zodat logo niet de cirkelrand raakt */
  margin: 0;
  background-color: var(--logo-bg);
  background-image: var(--logo-image);
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
  background-origin: content-box; /* logo respecteert de padding-inset */
  border: 1px solid var(--card-border); /* zelfde rand als de card */
  border-radius: 50%;
  box-shadow: var(--logo-shadow);
}

.bil-login-eyebrow {
  display: inline-block;
  margin: 0 0 14px;
  padding: 4px 12px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  background: color-mix(in srgb, var(--text-muted) 12%, transparent);
  border-radius: 999px;
}

.bil-login-heading {
  margin: 0 0 14px;
  font-size: 28px;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.2;
  color: var(--heading-color);
  text-transform: none; /* override h1.screamer uit logisz.css */
  padding-bottom: 0; /* override h1.screamer uit logisz.css */
}

.bil-login-subhead {
  margin: 0 0 28px;
  font-size: 14px;
  line-height: 1.5;
  color: var(--text-muted);
  max-width: 280px;
  font-weight: 400;
}

/* ── Pill knop met roterende comet-glow ──────────────────────────────────── */
@property --bil-pill-angle {
  syntax: "<angle>";
  inherits: false;
  initial-value: 0deg;
}
.bil-login-pill-wrapper {
  position: relative;
  display: inline-block;
  transition: transform 0.15s ease;
}

.bil-login-pill-wrapper:hover {
  transform: scale(1.03);
}

.bil-login-pill-wrapper:active {
  transform: scale(0.98);
}

.bil-login-pill {
  position: relative;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: var(--login-pill-bg);
  color: var(--login-pill-text);
  border: 1px solid var(--login-pill-border);
  border-radius: 999px;
  padding: 13px 26px 13px 20px;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.1px;
  text-decoration: none;
  box-shadow: var(--login-pill-shadow);
  transition: box-shadow 0.2s ease;
  white-space: nowrap;
}

.bil-login-pill-wrapper:hover .bil-login-pill {
  box-shadow: var(--login-pill-shadow-hover);
}

.bil-login-pill:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}

.bil-login-pill-ms {
  width: 18px;
  height: 18px;
  display: block;
  flex-shrink: 0;
}

.bil-login-pill-spinner {
  width: 18px;
  height: 18px;
  font-size: 16px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* ── Trust signal onder de pill ──────────────────────────────────────────── */
.bil-login-trust {
  margin: 22px 0 0;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  line-height: 1;
  color: var(--text-muted);
}

.bil-login-trust i {
  font-size: 11px;
}

/* Scherpe ring direct op de pill-rand (mask = alleen border zichtbaar) */
.bil-login-pill-glow {
  position: absolute;
  inset: 0;
  border-radius: 999px;
  pointer-events: none;
  z-index: 3;
}

.bil-login-pill-glow::before {
  content: "";
  position: absolute;
  inset: -2px;
  padding: 2px;
  border-radius: inherit;
  background: conic-gradient(from var(--bil-pill-angle, 0deg), transparent 0deg, color-mix(in srgb, var(--login-glow) 20%, transparent) 10deg, color-mix(in srgb, var(--login-glow) 70%, transparent) 24deg, var(--login-glow) 35deg, color-mix(in srgb, var(--login-glow) 70%, transparent) 46deg, color-mix(in srgb, var(--login-glow) 20%, transparent) 60deg, transparent 75deg, transparent 360deg);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  animation: bil-pill-spin 6s linear infinite;
}

/* Zachte halo achter de pill (blur, leakt buiten de pill-rand) */
.bil-login-pill-wrapper::before {
  content: "";
  position: absolute;
  inset: -6px;
  border-radius: 999px;
  background: conic-gradient(from var(--bil-pill-angle, 0deg), transparent 0deg, color-mix(in srgb, var(--login-glow) 30%, transparent) 25deg, color-mix(in srgb, var(--login-glow) 60%, transparent) 45deg, color-mix(in srgb, var(--login-glow) 30%, transparent) 65deg, transparent 80deg, transparent 360deg);
  filter: blur(10px);
  opacity: 0.7;
  z-index: 0;
  pointer-events: none;
  animation: bil-pill-spin 6s linear infinite;
}

@keyframes bil-pill-spin {
  to {
    --bil-pill-angle: 360deg;
  }
}
/* ── Mobile ──────────────────────────────────────────────────────────────── */
@media (max-width: 520px) {
  .bil-login-card {
    padding: 52px 24px 30px;
  }
  .bil-login-heading {
    font-size: 24px;
  }
  .bil-login-logo {
    width: 72px;
    height: 72px;
    top: -36px;
    padding: 6px;
  }
  .bil-login-pill {
    padding: 11px 20px 11px 16px;
    font-size: 14px;
  }
}
/* ── Fallback: geen backdrop-filter (oudere browsers) ────────────────────── */
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .bil-login-card {
    background: var(--card-bg-fallback);
  }
}
/* ── Reduced transparency (Windows / macOS toegankelijkheid) ─────────────── */
@media (prefers-reduced-transparency: reduce) {
  .bil-login-card {
    background: var(--card-bg-fallback);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
}
/* ── Reduced motion ──────────────────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  .bil-login-card {
    animation: none;
  }
  .bil-login-pill-glow::before,
  .bil-login-pill-wrapper::before {
    animation: none;
    background: var(--login-glow);
    opacity: 0.25;
  }
}
/* =============================================================================
 * Chat pagina
 * Layout: body.chat-layout met sidebar (links) + main (rechts).
 * Topbar en composer drijven absoluut over de scrollende messages heen.
 * ============================================================================= */
/* Alpine.js cloak — verbergt elementen tot Alpine geïnitialiseerd is */
[x-cloak] {
  display: none !important;
}

body.chat-layout {
  display: flex;
  height: 100vh;
  overflow: hidden;
  background-color: var(--bg-color);
  background-image: var(--login-bg-image);
  background-size: var(--login-bg-size);
  background-position: var(--chat-bg-position);
  background-repeat: no-repeat;
  color: var(--text);
  font-family: var(--font-family);
  transition: background-position 0.25s ease; /* schuift mee met sidebar-collapse */
}

/* Sidebar volledig dicht → bg terug naar collapsed-positie (LOGISZ centreert;
   Berdal blijft op z'n offscreen-plek omdat beide tokens daar hetzelfde zijn) */
body.chat-layout:has(.chat-sidebar.collapsed) {
  background-position: var(--chat-bg-position-collapsed);
}

body.chat-layout main.chat-main {
  flex: 1;
  min-width: 0;
  min-height: 0;
  max-width: unset;
  margin: 0;
  background: transparent; /* energizer-bg schijnt door */
  display: flex;
  flex-direction: column;
  overflow: hidden;
  position: relative; /* anker voor absoluut-positioned topbar + composer */
}

/* ── Topbar ──────────────────────────────────────────────────────────────── */
.chat-topbar {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  padding: 10px 16px; /* content-driven; geen vaste hoogte */
  display: flex;
  align-items: center;
  gap: 12px;
  z-index: 10;
  background: var(--glass-bg);
  backdrop-filter: blur(14px) saturate(150%);
  -webkit-backdrop-filter: blur(14px) saturate(150%);
  border-bottom: 1px solid var(--border-subtle);
}

.chat-topbar-toggle {
  background: var(--pill-bg-hover);
  color: var(--text);
  border: 1px solid var(--pill-border);
  border-radius: 999px;
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 13px;
  transition: background 0.12s ease, border-color 0.12s ease;
  flex-shrink: 0;
}

.chat-topbar-toggle:hover {
  background: var(--pill-bg-active);
  border-color: var(--pill-border-hover);
}

.chat-topbar-spacer {
  flex: 1;
}

/* ── Custom dropdown (vervangt native <select>) ──────────────────────────── */
.bil-dropdown {
  position: relative;
  display: inline-block;
}

.bil-dropdown-trigger {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 34px;
  padding: 0 14px;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  color: var(--text);
  border-radius: 999px;
  font-family: var(--font-family);
  font-size: 13px;
  font-weight: 500;
  line-height: 1;
  cursor: pointer;
  outline: none;
  box-sizing: border-box;
  backdrop-filter: blur(14px) saturate(150%);
  -webkit-backdrop-filter: blur(14px) saturate(150%);
  transition: background-color 0.15s, border-color 0.15s;
}

.bil-dropdown-trigger:hover {
  border-color: var(--pill-border-hover);
}

.bil-dropdown-trigger.is-open {
  border-color: var(--pill-border-active);
}

.bil-dropdown-trigger-label {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.bil-dropdown-trigger i {
  font-size: 9px;
  color: var(--text-muted);
  transition: transform 0.15s ease;
  flex-shrink: 0;
}

.bil-dropdown-trigger.is-open i {
  transform: rotate(180deg);
}

.bil-dropdown-menu {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  min-width: 100%;
  max-width: 320px;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 12px;
  padding: 4px;
  box-shadow: var(--card-shadow);
  backdrop-filter: blur(14px) saturate(150%);
  -webkit-backdrop-filter: blur(14px) saturate(150%);
  z-index: 200;
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.bil-dropdown-item {
  display: block;
  width: 100%;
  text-align: left;
  background: transparent;
  border: none;
  color: var(--text);
  padding: 8px 12px;
  border-radius: 8px;
  font-family: var(--font-family);
  font-size: 13px;
  line-height: 1.4;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.12s, color 0.12s;
}

.bil-dropdown-item:hover {
  background: var(--pill-bg-hover);
}

.bil-dropdown-item.is-active {
  background: var(--accent-soft);
  color: var(--text);
  font-weight: 500;
}

.bil-dropdown-item:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: -2px;
}

/* ── Sidebar ─────────────────────────────────────────────────────────────── */
.chat-sidebar {
  width: 272px;
  min-width: 272px;
  transition: width 0.2s ease, min-width 0.2s ease;
  background: var(--chrome-bg); /* brand-aware: zwart op LOGISZ, licht op Berdal */
  color: var(--text);
  display: flex;
  flex-direction: column;
  height: 100vh;
  border-right: 1px solid var(--border-subtle);
  position: relative;
  z-index: 10;
}

.chat-new-btn {
  position: relative;
  width: 100%;
  display: flex;
  align-items: center;
  text-align: left;
  padding: 7px 16px 7px 40px; /* extra left voor de icon-badge */
  background: var(--accent);
  color: var(--on-accent);
  border: none;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  font-family: var(--font-family);
  cursor: pointer;
  min-height: 34px;
  transition: background 0.15s ease, transform 0.1s ease;
}

.chat-new-btn:hover {
  background: var(--accent-hover);
}

.chat-new-btn:active {
  transform: scale(0.97);
}

/* In de topbar moet de knop niet full-width zijn */
.chat-topbar .chat-new-btn {
  width: auto;
  flex-shrink: 0;
}

.chat-new-btn-icon {
  position: absolute;
  left: 6px;
  top: 50%;
  transform: translateY(-50%);
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--on-accent);
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 10px;
}

.chat-sidebar-list {
  flex: 1;
  overflow-y: auto;
  padding: 4px 8px 8px;
}

.chat-sidebar-list::-webkit-scrollbar {
  width: 4px;
}

.chat-sidebar-list::-webkit-scrollbar-track {
  background: transparent;
}

.chat-sidebar-list::-webkit-scrollbar-thumb {
  background: var(--pill-bg-active);
  border-radius: 2px;
}

/* Nav-items (link naar andere pagina's) */
.chat-sidebar-nav-item {
  position: relative;
  display: flex;
  align-items: center;
  padding: 7px 16px 7px 40px;
  margin-bottom: 6px;
  min-height: 34px;
  border-radius: 999px;
  border: 1px solid var(--pill-border);
  background: transparent;
  color: var(--text);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.chat-sidebar-nav-item:hover {
  background: var(--pill-bg-hover);
  border-color: var(--pill-border-hover);
  color: var(--text); /* overschrijft eventuele globale a:hover */
}

.chat-sidebar-nav-item.active {
  background: var(--pill-bg-active);
  border-color: var(--pill-border-active);
  color: var(--pill-text-active);
  font-weight: 600;
}

.chat-sidebar-nav-item.active:hover {
  color: var(--pill-text-active);
}

.chat-sidebar-nav-icon {
  position: absolute;
  left: 6px;
  top: 50%;
  transform: translateY(-50%);
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--on-accent);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 10px;
}

.chat-sidebar-nav-label {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.chat-sidebar-section-label {
  padding: 12px 10px 6px;
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-faint);
}

/* Recente chats */
.chat-sidebar-item {
  position: relative;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 4px 8px 4px 16px;
  margin-bottom: 6px;
  min-height: 34px;
  border-radius: 999px;
  border: 1px solid var(--pill-border);
  background: transparent;
  color: var(--text);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}

.chat-sidebar-item:hover {
  background: var(--pill-bg-hover);
  border-color: var(--pill-border-hover);
}

.chat-sidebar-item.active {
  background: var(--pill-bg-active);
  border-color: var(--pill-border-active);
  color: var(--pill-text-active);
  font-weight: 600;
}

.chat-sidebar-item-title {
  flex: 1;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Pin- en delete-knop: hover-only, muted styling */
.chat-sidebar-item-pin,
.chat-sidebar-item-delete {
  opacity: 0;
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  background: transparent;
  border: none;
  color: var(--text-faint);
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
  font-size: 11px;
  transition: opacity 0.12s, color 0.12s, background 0.12s;
}

.chat-sidebar-item:hover .chat-sidebar-item-pin,
.chat-sidebar-item:hover .chat-sidebar-item-delete,
.chat-sidebar-item.active .chat-sidebar-item-delete {
  opacity: 1;
}

/* Pin altijd zichtbaar als chat gepind is — verhuist naar links (state-indicator) */
.chat-sidebar-item.is-pinned .chat-sidebar-item-pin {
  opacity: 1;
  color: var(--accent);
  order: -1;
  margin-left: -8px; /* 8px van links, match delete rechts */
  margin-right: 2px;
}

.chat-sidebar-item-pin:hover {
  background: var(--pill-bg-active);
  color: var(--accent);
}

/* Delete hover → zacht rode wash + danger-kleur */
.chat-sidebar-item-delete:hover {
  background: color-mix(in srgb, var(--danger) 18%, transparent);
  color: var(--danger);
}

.chat-sidebar-empty {
  padding: 16px 8px;
  font-size: 13px;
  color: var(--text-faint);
  text-align: center;
}

.chat-sidebar-footer {
  padding: 12px;
  border-top: 1px solid var(--border-subtle);
  flex-shrink: 0;
}

.chat-sidebar-user {
  display: flex;
  align-items: center;
  gap: 10px;
}

.chat-sidebar-avatar {
  width: 32px;
  height: 32px;
  min-width: 32px;
  background: var(--accent);
  color: var(--on-accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
}

.chat-sidebar-user-info {
  flex: 1;
  min-width: 0;
}

.chat-sidebar-user-name {
  font-size: 13px;
  font-weight: 500;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.chat-sidebar-user-sub {
  font-size: 11px;
  color: var(--text-muted);
}

.chat-logout-btn {
  background: transparent;
  border: 1px solid transparent;
  color: var(--text-faint);
  cursor: pointer;
  padding: 6px 7px;
  border-radius: 999px;
  font-size: 14px;
  transition: color 0.15s, background 0.15s, border-color 0.15s;
}

.chat-logout-btn:hover {
  color: var(--text);
  background: var(--pill-bg-hover);
  border-color: var(--pill-border);
}

/* Sidebar collapsed state — volledig dicht (POC-gedrag) */
.chat-sidebar.collapsed {
  width: 0;
  min-width: 0;
  border-right: none;
  overflow: hidden;
}

.chat-sidebar.collapsed > * {
  visibility: hidden;
  pointer-events: none;
}

/* ── Empty state ─────────────────────────────────────────────────────────── */
.chat-empty-state {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 84px 24px 200px; /* clear topbar + composer + adem */
  text-align: center;
}

.chat-welcome-title {
  font-size: 30px;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.2;
  color: var(--text-on-body);
  text-transform: none;
  padding: 0;
  margin: 0 0 4px;
  animation: welcomeFade 0.6s ease-out both;
}

.chat-welcome-sub {
  font-size: 15px;
  color: var(--text-muted-on-body);
  line-height: 1.5;
  margin: 0 auto 24px;
  max-width: 520px;
  animation: welcomeFade 0.6s 0.1s ease-out both;
}

@keyframes welcomeFade {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
/* ── Chat-stage: 680×330 canvas met bubbles om de centrale pill ──────────── */
.chat-stage {
  position: relative;
  width: 100%;
  height: 330px;
  max-width: 680px;
  margin: 0 auto;
}

/* Subtle radial glow achter de stage — spotlight rond de pill */
.chat-stage::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 55% 55% at 50% 50%, color-mix(in srgb, var(--accent) 14%, transparent) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

/* ── Prompt-bubbles ──────────────────────────────────────────────────────── */
.chat-prompt-bubble {
  position: absolute;
  z-index: 1;
  background: var(--card-bg);
  color: var(--text);
  padding: 22px 26px;
  text-align: left;
  border: 1px solid var(--card-border);
  cursor: pointer;
  font-family: var(--font-family);
  font-size: 14px;
  line-height: 1.45;
  font-weight: 500;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(12px) saturate(150%);
  -webkit-backdrop-filter: blur(12px) saturate(150%);
  transition: box-shadow 0.2s ease, transform 0.2s ease;
  animation: bubbleEntrance 0.55s ease-out both, bubbleFloat 6s ease-in-out infinite;
}

.chat-prompt-bubble:hover {
  transform: scale(1.03);
  box-shadow: 0 20px 42px rgba(0, 0, 0, 0.42);
  animation-play-state: running, paused; /* float pauzeert op hover */
  z-index: 4;
}

.chat-prompt-bubble:active {
  transform: scale(1.01);
}

@keyframes bubbleEntrance {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes bubbleFloat {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-7px);
  }
}
/* Drie bubbles met positie + scherpe corner (tail richting pill) */
.chat-prompt-bubble-0 {
  width: 240px;
  top: 0;
  left: 50%;
  margin-left: -260px; /* links boven */
  border-radius: 22px 22px 4px 22px; /* corner bottom-right */
  animation-delay: 0.45s, 1.2s;
}

.chat-prompt-bubble-1 {
  width: 240px;
  top: 0;
  left: 50%;
  margin-left: 20px; /* rechts boven */
  border-radius: 22px 22px 22px 4px; /* corner bottom-left */
  animation-delay: 0.6s, 2.3s;
}

.chat-prompt-bubble-2 {
  width: 280px;
  bottom: 0;
  left: 50%;
  margin-left: -140px; /* onder, gecentreerd */
  border-radius: 22px 4px 22px 22px; /* corner top-right */
  animation-delay: 0.75s, 3.1s;
}

/* ── Centrale pill met rotating comet-glow ───────────────────────────────── */
.chat-welcome-pill-wrapper {
  position: absolute;
  z-index: 2;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: inline-block;
  animation: pillEntrance 0.7s 0.35s ease-out both;
}

@keyframes pillEntrance {
  from {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.85);
  }
  to {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
  }
}
.chat-welcome-pill {
  position: relative;
  z-index: 2;
  background: var(--login-pill-bg);
  color: var(--login-pill-text);
  border: 1px solid var(--login-pill-border);
  border-radius: 999px;
  padding: 13px 30px;
  font-size: 15px;
  font-family: var(--font-family);
  font-weight: 500;
  letter-spacing: 0.1px;
  cursor: pointer;
  white-space: nowrap;
  box-shadow: var(--login-pill-shadow);
  transition: transform 0.15s ease, box-shadow 0.2s ease;
}

.chat-welcome-pill-wrapper:hover .chat-welcome-pill {
  transform: scale(1.03);
  box-shadow: var(--login-pill-shadow-hover);
}

.chat-welcome-pill:active {
  transform: scale(0.99);
}

/* Crisp glow-ring direct op de pill-rand */
.chat-welcome-pill-glow {
  position: absolute;
  inset: 0;
  border-radius: 999px;
  pointer-events: none;
  z-index: 3;
}

.chat-welcome-pill-glow::before {
  content: "";
  position: absolute;
  inset: -2px;
  padding: 2px;
  border-radius: inherit;
  background: conic-gradient(from var(--bil-pill-angle, 0deg), transparent 0deg, color-mix(in srgb, var(--login-glow) 20%, transparent) 10deg, color-mix(in srgb, var(--login-glow) 70%, transparent) 24deg, var(--login-glow) 35deg, color-mix(in srgb, var(--login-glow) 70%, transparent) 46deg, color-mix(in srgb, var(--login-glow) 20%, transparent) 60deg, transparent 75deg, transparent 360deg);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  animation: bil-pill-spin 6s linear infinite;
}

/* Zachte halo achter de pill (blur, leakt erbuiten) */
.chat-welcome-pill-wrapper::before {
  content: "";
  position: absolute;
  inset: -8px;
  border-radius: 999px;
  background: conic-gradient(from var(--bil-pill-angle, 0deg), transparent 0deg, color-mix(in srgb, var(--login-glow) 25%, transparent) 15deg, color-mix(in srgb, var(--login-glow) 55%, transparent) 35deg, color-mix(in srgb, var(--login-glow) 25%, transparent) 55deg, transparent 75deg, transparent 360deg);
  filter: blur(10px);
  opacity: 0.7;
  z-index: 0;
  pointer-events: none;
  animation: bil-pill-spin 6s linear infinite;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .chat-welcome-title,
  .chat-welcome-sub,
  .chat-welcome-pill-wrapper,
  .chat-prompt-bubble {
    animation: none;
  }
  .chat-welcome-pill-glow::before,
  .chat-welcome-pill-wrapper::before {
    animation: none;
    background: var(--login-glow);
    opacity: 0.25;
  }
}
/* Mobiel: bubbles passen niet in stage-breedte — verberg ze. Pill blijft. */
@media (max-width: 640px) {
  .chat-prompt-bubble {
    display: none;
  }
  .chat-stage {
    height: 160px;
  }
}
/* ── Messages ────────────────────────────────────────────────────────────── */
.chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 84px 0 180px; /* clear topbar + composer; content scrollt eronder door */
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.chat-messages::-webkit-scrollbar {
  width: 5px;
}

.chat-messages::-webkit-scrollbar-track {
  background: transparent;
}

.chat-messages::-webkit-scrollbar-thumb {
  background: var(--pill-bg-active);
  border-radius: 3px;
}

.chat-msg {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  max-width: 840px;
  width: 100%;
  margin: 0 auto;
  padding: 3px 28px;
  box-sizing: border-box;
}

.chat-msg-user {
  flex-direction: row-reverse;
}

.chat-bubble {
  max-width: 80%;
  padding: 14px 18px;
  border-radius: 20px;
  font-size: 14px;
  line-height: 1.6;
  white-space: pre-wrap;
  word-break: break-word;
}

.chat-bubble-user {
  background: var(--user-bubble);
  color: var(--user-bubble-text);
  border: 1px solid var(--user-bubble-border);
  border-radius: 20px 4px 20px 20px; /* scherpe corner top-right (richting avatar) */
  font-weight: 400;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.chat-bubble-assistant {
  background: var(--card-bg); /* brand-glas i.p.v. hardcoded wit — matcht de rest van de UI */
  color: var(--text);
  border: 1px solid var(--card-border);
  border-radius: 4px 20px 20px 20px; /* scherpe corner top-left (richting avatar) */
  box-shadow: var(--card-shadow);
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  max-width: 100%;
}

.chat-bubble-assistant p:last-child {
  padding: 0;
}

/* Bericht-avatar: universeel accent-rondje voor beide rollen.
   Assistant = AI-icoon, gebruiker = initialen (geen profielfoto). */
.chat-msg-avatar {
  width: 28px;
  height: 28px;
  min-width: 28px;
  margin-top: 4px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--accent);
  color: var(--on-accent);
  font-family: var(--font-family);
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
  flex-shrink: 0;
}

.chat-msg-avatar i {
  font-size: 12px;
}

/* Tool call row */
.chat-tool-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}

.chat-debug-call-num {
  font-size: 10px;
  color: #6ee7b7;
  font-weight: 400;
  opacity: 0.8;
}

.chat-tool-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--pill-bg-hover);
  color: var(--text-muted);
  font-size: 12px;
  font-family: var(--font-mono);
  padding: 4px 10px;
  border-radius: 6px;
  border-left: 3px solid #00A0AD;
  line-height: 1.4;
}

.chat-tool-tag i {
  color: #00A0AD;
  font-size: 11px;
}

.chat-tool-tag strong {
  color: var(--text);
  font-weight: 600;
}

.chat-tool-input {
  display: inline-block;
  margin-left: 8px;
  font-size: 11px;
  color: var(--text-faint);
  font-family: var(--font-mono);
  vertical-align: middle;
}

/* Thinking dots balloon */
.chat-thinking {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 12px 16px;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 20px 20px 20px 4px;
  box-shadow: var(--card-shadow);
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
}

.chat-thinking span {
  width: 7px;
  height: 7px;
  background: var(--text-faint);
  border-radius: 50%;
  animation: chat-bounce 1.3s infinite ease-in-out both;
}

.chat-thinking span:nth-child(1) {
  animation-delay: -0.32s;
}

.chat-thinking span:nth-child(2) {
  animation-delay: -0.16s;
}

.chat-thinking span:nth-child(3) {
  animation-delay: 0s;
}

@keyframes chat-bounce {
  0%, 80%, 100% {
    transform: scale(0.65);
    opacity: 0.45;
  }
  40% {
    transform: scale(1);
    opacity: 1;
  }
}
.chat-thinking-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.chat-thinking-meta {
  font-size: 11px;
  color: var(--text-faint);
  font-family: var(--font-mono);
  line-height: 1;
  white-space: nowrap;
}

/* Chat notifications (severity-based) */
.chat-notification {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 10px 28px;
  font-size: 12px;
  color: #6b7280;
  opacity: 0.25;
  transition: opacity 0.25s;
}

.chat-notification::before,
.chat-notification::after {
  content: "";
  flex: 1;
  height: 1px;
  background: #6b7280;
}

.chat-notification--danger i {
  color: #f87171;
}

.chat-notification--warning i {
  color: #fbbf24;
}

.chat-notification--info i {
  color: #60a5fa;
}

.chat-notification:hover {
  opacity: 1;
}

/* Coffee break (rate limit pause) */
.chat-coffee-break {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 12px 18px;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 20px 20px 20px 4px;
  box-shadow: var(--card-shadow);
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
}

.chat-coffee-cup {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}

.chat-coffee-cup > i {
  font-size: 26px;
  color: #92400e;
  animation: coffee-tilt 2.4s ease-in-out infinite;
  display: inline-block;
}

@keyframes coffee-tilt {
  0%, 100% {
    transform: rotate(0deg);
  }
  20% {
    transform: rotate(-10deg) translateY(-2px);
  }
  40% {
    transform: rotate(8deg) translateY(-3px);
  }
  60% {
    transform: rotate(-5deg) translateY(-1px);
  }
  80% {
    transform: rotate(4deg) translateY(-2px);
  }
}
.chat-coffee-steam {
  display: flex;
  gap: 4px;
  height: 12px;
  align-items: flex-end;
}

.chat-coffee-steam span {
  width: 3px;
  height: 8px;
  background: #d1d5db;
  border-radius: 2px 2px 0 0;
  animation: steam-rise 1.6s ease-in-out infinite;
  transform-origin: bottom center;
}

.chat-coffee-steam span:nth-child(1) {
  animation-delay: 0s;
}

.chat-coffee-steam span:nth-child(2) {
  animation-delay: 0.4s;
  height: 11px;
}

.chat-coffee-steam span:nth-child(3) {
  animation-delay: 0.2s;
  height: 6px;
}

@keyframes steam-rise {
  0% {
    transform: scaleY(1) translateY(0);
    opacity: 0.7;
  }
  50% {
    transform: scaleY(1.4) translateY(-4px);
    opacity: 0.4;
  }
  100% {
    transform: scaleY(0.6) translateY(-8px);
    opacity: 0;
  }
}
.chat-coffee-text {
  font-size: 13px;
  color: var(--text);
  line-height: 1.5;
}

.chat-coffee-countdown {
  font-size: 11px;
  color: var(--text-faint);
  font-family: var(--font-mono);
}

/* ── Input area (composer) ───────────────────────────────────────────────── */
.chat-input-area {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 14px 20px 16px;
  z-index: 10;
  background: var(--glass-bg-soft);
  backdrop-filter: blur(8px) saturate(140%);
  -webkit-backdrop-filter: blur(8px) saturate(140%);
  border-top: 1px solid var(--border-subtle);
}

.chat-input-wrapper {
  max-width: 760px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 6px;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 16px;
  padding: 12px 14px 10px;
  transition: border-color 0.18s ease, background 0.18s ease;
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
}

.chat-input-wrapper:hover {
  border-color: rgba(255, 255, 255, 0.2);
}

.chat-input-wrapper.focused {
  border-color: rgba(255, 255, 255, 0.28);
  background: color-mix(in srgb, var(--card-bg) 100%, rgba(255, 255, 255, 0.02));
}

.chat-input {
  width: 100%;
  background: transparent;
  border: none;
  outline: none;
  resize: none;
  font-family: var(--font-family);
  font-size: 15px;
  font-weight: 400;
  line-height: 1.5;
  color: var(--text);
  max-height: 160px; /* gelijk aan de JS-cap in resizeInput() */
  overflow-y: auto;
  padding: 6px 4px;
}

.chat-input::placeholder {
  color: var(--text-faint);
}

.chat-input-actions {
  display: flex;
  justify-content: space-between;
  gap: 4px;
  align-items: center;
}

.chat-input-actions-left {
  display: flex;
  gap: 4px;
  align-items: center;
}

.chat-input-actions-right {
  display: flex;
  gap: 6px;
  align-items: center;
}

.chat-send-btn {
  width: 34px;
  height: 34px;
  min-width: 34px;
  background: var(--accent);
  color: var(--on-accent);
  border: none;
  border-radius: 999px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  transition: background 0.15s ease, transform 0.1s ease;
  flex-shrink: 0;
}

.chat-send-btn:hover:not(:disabled) {
  background: var(--accent-hover);
}

.chat-send-btn:active:not(:disabled) {
  transform: scale(0.97);
}

.chat-send-btn:disabled {
  background: var(--pill-bg-active);
  color: var(--text-faint);
  cursor: not-allowed;
}

.chat-skill-badge {
  font-size: 11px;
  background: var(--accent-soft);
  border: 1px solid color-mix(in srgb, var(--accent) 30%, transparent);
  color: var(--text-muted);
  border-radius: 999px;
  height: 26px;
  padding: 0 12px 0 10px;
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}

.chat-skill-badge i {
  font-size: 11px;
  color: var(--accent);
}

.chat-input-hint {
  text-align: center;
  font-size: 11px;
  color: var(--text-faint);
  margin: 7px 0 0;
}

.chat-input-hint--status {
  color: #f59e0b;
} /* "wiki-index wordt opgebouwd…" status */
/* ── Message body wrappers ───────────────────────────────────────────────── */
.chat-msg-body {
  flex: 1;
  min-width: 0;
}

.chat-msg-user-body {
  flex: 1; /* vul de rij — zonder dit klapt de bubble in en breekt-ie te vroeg af */
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-end; /* bubble blijft rechts uitgelijnd, groeit naar links */
}

/* ── Timestamps & usage ──────────────────────────────────────────────────── */
.chat-msg-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 4px;
}

.chat-ts {
  font-size: 10px;
  margin-top: 6px;
  color: var(--text-faint);
  font-family: var(--font-mono);
  line-height: 1;
}

.chat-usage {
  font-size: 10px;
  color: var(--text-faint);
  background: var(--pill-bg-hover);
  border: 1px solid var(--pill-border);
  border-radius: 4px;
  padding: 1px 6px;
  line-height: 1.6;
}

.chat-debug-badge {
  font-size: 10px;
  color: #92400e;
  background: #fef3c7;
  border: 1px solid #fde68a;
  border-radius: 4px;
  padding: 1px 6px;
  line-height: 1.6;
  font-family: var(--font-mono);
}

.chat-debug-meta {
  font-size: 10px;
  color: #b45309;
  font-family: var(--font-mono);
}

/* ── Markdown prose (inside assistant bubble) ────────────────────────────── */
.chat-bubble-assistant {
  white-space: normal;
}

.chat-bubble-assistant h1,
.chat-bubble-assistant h2,
.chat-bubble-assistant h3,
.chat-bubble-assistant h4 {
  font-weight: 600;
  line-height: 1.3;
  margin: 0.75em 0 0.3em;
  color: var(--text);
}

.chat-bubble-assistant h1 {
  font-size: 1.15em;
}

.chat-bubble-assistant h2 {
  font-size: 1.05em;
}

.chat-bubble-assistant h3 {
  font-size: 0.97em;
}

.chat-bubble-assistant h4 {
  font-size: 0.9em;
}

.chat-bubble-assistant p {
  margin: 0.45em 0;
}

.chat-bubble-assistant p:first-child {
  margin-top: 0;
}

.chat-bubble-assistant p:last-child {
  margin-bottom: 0;
}

.chat-bubble-assistant ul,
.chat-bubble-assistant ol {
  padding-left: 1.4em;
  margin: 0.4em 0;
}

.chat-bubble-assistant li {
  margin: 0.2em 0;
}

.chat-bubble-assistant strong {
  font-weight: 600;
}

.chat-bubble-assistant em {
  font-style: italic;
}

.chat-bubble-assistant code {
  font-family: var(--font-mono);
  font-size: 0.85em;
  background: var(--pill-bg-hover);
  border: 1px solid var(--border-subtle);
  color: var(--text);
  padding: 1px 5px;
  border-radius: 4px;
}

.chat-bubble-assistant pre {
  background: #1f2937;
  color: #e5e7eb;
  border-radius: 8px;
  padding: 12px 16px;
  overflow-x: auto;
  font-size: 0.82em;
  margin: 0.6em 0;
  line-height: 1.55;
}

.chat-bubble-assistant pre code {
  background: none;
  border: none;
  padding: 0;
  color: inherit;
  font-size: inherit;
}

.chat-bubble-assistant blockquote {
  border-left: 3px solid var(--pill-border);
  padding-left: 10px;
  margin: 0.5em 0;
  color: var(--text-muted);
}

.chat-bubble-assistant a {
  color: #00A0AD;
  text-decoration: underline;
}

.chat-bubble-assistant hr {
  border: none;
  border-top: 1px solid var(--border-subtle);
  margin: 0.75em 0;
}

.chat-bubble-assistant table {
  border-collapse: collapse;
  width: 100%;
  margin: 0.5em 0;
  font-size: 0.9em;
}

.chat-bubble-assistant th,
.chat-bubble-assistant td {
  padding: 5px 10px;
  border: 1px solid var(--card-border);
  text-align: left;
}

.chat-bubble-assistant th {
  background: var(--pill-bg-hover);
  font-weight: 600;
}

/* =============================================================================
 * Admin / Settings / Management-pagina's (Syncs, Rechtenbeheer, etc.)
 * Pagina's binnen body.chat-layout met dezelfde sidebar + topbar, maar een
 * scrollende main met cards (POC settings-stijl).
 * ============================================================================= */
body.chat-layout main.bil-page {
  flex: 1;
  min-width: 0;
  min-height: 0;
  margin: 0;
  background: transparent;
  overflow: hidden; /* main scrollt niet — topbar blijft staan */
  position: relative; /* anker voor absolute chat-topbar */
  display: flex;
  flex-direction: column;
}

/* Scroll-wrapper: header + body scrollen hierbinnen, achterlangs de topbar door */
.bil-page-content {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
}

.bil-page-content::-webkit-scrollbar {
  width: 5px;
}

.bil-page-content::-webkit-scrollbar-track {
  background: transparent;
}

.bil-page-content::-webkit-scrollbar-thumb {
  background: var(--pill-bg-active);
  border-radius: 3px;
}

.bil-page-header {
  padding: 84px 24px 0; /* clear topbar + adem */
  max-width: 760px;
  margin: 0 auto;
  width: 100%;
  box-sizing: border-box;
}

.bil-page-title {
  margin: 0;
  padding: 0;
  font-size: 28px;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.2;
  color: var(--text-on-body); /* zweeft op donker body-bg, dus wit voor beide brands */
  text-transform: none;
}

.bil-page-sub {
  margin: 6px 0 0;
  color: var(--text-muted-on-body);
  font-size: 14px;
  line-height: 1.5;
  padding: 0;
}

.bil-page-body {
  padding: 24px 24px 60px;
  max-width: 760px;
  margin: 0 auto;
  width: 100%;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

/* ── Card ────────────────────────────────────────────────────────────────── */
.bil-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 16px;
  padding: 22px 24px;
  backdrop-filter: blur(14px) saturate(150%);
  -webkit-backdrop-filter: blur(14px) saturate(150%);
  box-shadow: var(--card-shadow);
  color: var(--text);
}

.bil-card-title {
  margin: 0 0 6px;
  padding: 0;
  font-size: 17px;
  font-weight: 600;
  color: var(--text);
  text-transform: none;
  line-height: 1.3;
}

.bil-card-desc {
  margin: 0 0 16px;
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.55;
}

/* Section divider with caps-header inside a card */
.bil-card-block {
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid var(--pill-border);
}

.bil-card-block-title {
  margin: 0 0 12px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-faint);
}

/* ── Rows binnen een card (label/sub links, control rechts) ──────────────── */
.bil-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 14px 0;
  border-top: 1px solid var(--pill-border);
}

.bil-row:first-of-type {
  border-top: none;
  padding-top: 0;
}

.bil-row-text {
  flex: 1;
  min-width: 0;
}

.bil-row-title {
  display: block;
  color: var(--text);
  font-weight: 500;
  font-size: 14px;
}

.bil-row-sub {
  display: block;
  margin-top: 2px;
  color: var(--text-muted);
  font-size: 13px;
  line-height: 1.4;
}

.bil-row-control {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

/* ── Inputs ──────────────────────────────────────────────────────────────── */
.bil-input,
.bil-select {
  appearance: none;
  -webkit-appearance: none;
  background: var(--pill-bg-hover);
  border: 1px solid var(--pill-border);
  color: var(--text);
  border-radius: 8px;
  height: 34px;
  padding: 0 12px;
  box-sizing: border-box;
  font-family: var(--font-family);
  font-size: 13px;
  line-height: 1;
  outline: none;
  transition: border-color 0.12s, background 0.12s;
}

.bil-input:hover,
.bil-select:hover {
  border-color: var(--pill-border-hover);
}

.bil-input:focus,
.bil-select:focus {
  border-color: var(--accent);
  background: var(--pill-bg-active);
}

.bil-input::placeholder {
  color: var(--text-faint);
}

/* ── Buttons ─────────────────────────────────────────────────────────────── */
.bil-btn {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start; /* content links uitlijnen, niet midden */
  gap: 8px;
  height: 34px;
  padding: 0 14px;
  background: var(--pill-bg-hover);
  border: 1px solid var(--pill-border);
  border-radius: 999px;
  color: var(--text);
  font-family: var(--font-family);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  box-sizing: border-box;
  transition: background 0.12s, border-color 0.12s, color 0.12s, transform 0.1s;
}

/* Knoppen mét icon-badge: padding-left krimpt zodat de badge dicht bij de rand
   zit — match visueel met nav-items en chat-new-btn (badge ~6px van linkerrand) */
.bil-btn:has(.bil-icon-badge) {
  padding-left: 6px;
}

.bil-btn:hover:not(:disabled) {
  background: var(--pill-bg-active);
  border-color: var(--pill-border-hover);
}

.bil-btn:active:not(:disabled) {
  transform: scale(0.97);
}

.bil-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.bil-btn-primary {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--on-accent);
  font-weight: 600;
}

.bil-btn-primary:hover:not(:disabled) {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
}

/* Inline icon-badge — gele cirkel met icoon, voor gebruik binnen .bil-btn,
   .chat-new-btn, sidebar nav-items. Match visueel met de POC nav-pattern. */
.bil-icon-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--on-accent);
  flex-shrink: 0;
  font-size: 10px;
}

/* ── Status pills ────────────────────────────────────────────────────────── */
.bil-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 22px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  background: var(--pill-bg-active);
  color: var(--text-muted);
}

.bil-pill-success {
  background: color-mix(in srgb, #4ade80 22%, transparent);
  color: #4ade80;
}

.bil-pill-warning {
  background: color-mix(in srgb, #fbbf24 22%, transparent);
  color: #fbbf24;
}

.bil-pill-danger {
  background: color-mix(in srgb, var(--danger) 22%, transparent);
  color: var(--danger);
}

.bil-pill-info {
  background: color-mix(in srgb, #60a5fa 22%, transparent);
  color: #60a5fa;
}

/* ── Banner (error/warning header) ───────────────────────────────────────── */
.bil-banner {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  border-radius: 10px;
  font-size: 13px;
}

.bil-banner-danger {
  background: color-mix(in srgb, var(--danger) 12%, transparent);
  border: 1px solid color-mix(in srgb, var(--danger) 35%, transparent);
  color: var(--danger);
}

/* ── Loading / Empty placeholder ─────────────────────────────────────────── */
.bil-placeholder {
  text-align: center;
  padding: 60px 20px;
  color: var(--text-faint);
  font-size: 14px;
}

.bil-placeholder i {
  font-size: 24px;
  display: block;
  margin-bottom: 10px;
}

/* ── Toggle switch (POC) ─────────────────────────────────────────────────── */
.bil-switch {
  appearance: none;
  -webkit-appearance: none;
  width: 40px;
  height: 22px;
  border-radius: 999px;
  background: var(--pill-bg-active);
  border: 1px solid var(--pill-border);
  position: relative;
  cursor: pointer;
  flex-shrink: 0;
  transition: background 0.18s, border-color 0.18s;
}

.bil-switch::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  width: 16px;
  height: 16px;
  background: var(--text);
  border-radius: 50%;
  transition: left 0.18s, background 0.18s;
}

.bil-switch:checked {
  background: var(--accent);
  border-color: var(--accent);
}

.bil-switch:checked::after {
  left: 20px;
  background: var(--on-accent);
}

/* ── Tabs (gebruikt op AccessManagement) ─────────────────────────────────── */
.bil-tabs {
  display: flex;
  gap: 2px;
  margin-bottom: 18px;
  border-bottom: 1px solid var(--border-subtle);
}

.bil-tab {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: transparent;
  border: none;
  border-bottom: 2px solid transparent;
  color: var(--text-muted);
  font-weight: 500;
  font-size: 13px;
  padding: 10px 16px;
  cursor: pointer;
  font-family: var(--font-family);
  margin-bottom: -1px;
  transition: color 0.12s, border-color 0.12s;
}

.bil-tab:hover {
  color: var(--text);
}

.bil-tab.active {
  color: var(--text);
  border-bottom-color: var(--accent);
  font-weight: 600;
}

/* ── Tabel (run-history e.d.) ────────────────────────────────────────────── */
.bil-table {
  width: 100%;
  table-layout: fixed; /* respecteer th-widths, voorkomt overflow */
  border-collapse: collapse;
  font-size: 12px;
}

.bil-table th {
  text-align: left;
  padding: 6px 8px;
  border-bottom: 1px solid var(--pill-border);
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-faint);
  background: transparent;
}

.bil-table td {
  padding: 6px 8px;
  border-bottom: 1px solid var(--border-subtle);
  color: var(--text);
  font-size: 12px;
  word-break: break-word; /* lange strings (errors, URLs) breken af */
  overflow-wrap: anywhere;
  vertical-align: top; /* lange tekst flowt netjes vanaf de top */
}

.bil-table tr:last-child td {
  border-bottom: none;
}

.bil-table tr td.num {
  text-align: right;
  font-variant-numeric: tabular-nums;
}

/* Interactive table — hele rij klikbaar, hover-highlight */
.bil-table.is-clickable tbody tr {
  cursor: pointer;
  transition: background 0.12s;
}

.bil-table.is-clickable tbody tr:hover {
  background: var(--pill-bg-hover);
}

/* Samenvattings-tekst in tabel-cel ("Admin, Editor +2 meer") */
.bil-table-summary {
  color: var(--text-muted);
  font-size: 13px;
  line-height: 1.4;
}

.bil-table-summary.is-empty {
  color: var(--text-faint);
  font-style: italic;
}

/* Single-line tables: alles op één regel met ellipsis. Overschrijft de
   word-break die we voor breed-wrappende tabellen (Syncs historie) hebben. */
.bil-table--single-line td,
.bil-table--single-line th {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  word-break: normal;
  overflow-wrap: normal;
}

/* ── Stat-tegels (CRM Assistant e.d.): compacte cijfers met label ────────── */
.bil-stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(118px, 1fr));
  gap: 8px;
  margin-top: 12px;
}

.bil-stat {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 10px 12px;
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  background: var(--surface-bg);
  min-width: 0;
}

.bil-stat-value {
  font-size: 18px;
  font-weight: 600;
  color: var(--text);
  font-variant-numeric: tabular-nums;
  line-height: 1.2;
}

.bil-stat-label {
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-faint);
  line-height: 1.3;
}

/* Meta-regel onder de stats: "Mail bijgewerkt tot … · Laatst uitgevoerd …" */
.bil-stat-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
  margin-top: 12px;
  font-size: 12px;
  color: var(--text-muted);
}
.bil-stat-meta i {
  color: var(--text-faint);
  margin-right: 5px;
}

/* Naam-cel met badge: flex-container zodat naam-text afkapt maar badge zichtbaar blijft */
.bil-cell-name {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0; /* nodig zodat de child kan shrinken */
}

.bil-cell-name-text {
  flex: 1;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.bil-cell-name .bil-count-badge {
  flex-shrink: 0; /* badge nooit shrinken/wrappen */
  margin-left: 0; /* gap regelt afstand */
}

/* ── Chip — kleine toggleable knop (rol/recht-toewijzing) ────────────────── */
/* Principe: hover op een niet-actieve chip licht alleen de border + text op.
   Op een actieve chip blijft de tekst DONKER (on-accent) — anders krijg je
   wit op geel. Daarom is de inactive-hover scoped op :not(.is-active),
   en zet de active-hover de color expliciet. */
.bil-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: transparent;
  border: 1px solid var(--pill-border);
  color: var(--text-muted);
  border-radius: 6px;
  padding: 3px 10px;
  font-family: var(--font-family);
  font-size: 12px;
  line-height: 1.4;
  cursor: pointer;
  transition: background 0.12s, border-color 0.12s, color 0.12s;
}

.bil-chip:not(.is-active):hover:not(:disabled) {
  border-color: var(--pill-border-hover);
  color: var(--text);
}

.bil-chip.is-active {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--on-accent);
  font-weight: 500;
}

.bil-chip.is-active:hover:not(:disabled) {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
  color: var(--on-accent); /* defensief — geen wit op geel */
}

.bil-chip:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Chip-group: flex-wrapper voor strip van chips + bulk-acties */
.bil-chip-group {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}

/* Verticale scheider tussen toegewezen en beschikbare chips */
.bil-chip-divider {
  width: 1px;
  height: 16px;
  background: var(--pill-border);
  margin: 0 4px;
  flex-shrink: 0;
}

/* Subtiele bulk-actie chip — tekstueel + icoon, geen border om visueel
   onderscheid te maken van echte chips */
.bil-chip-bulk {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: transparent;
  border: none;
  color: var(--text-faint);
  font-family: var(--font-family);
  font-size: 11px;
  padding: 2px 6px;
  border-radius: 5px;
  cursor: pointer;
  transition: color 0.12s, background 0.12s;
}

.bil-chip-bulk:hover:not(:disabled) {
  color: var(--text);
  background: var(--pill-bg-hover);
}

.bil-chip-bulk:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

/* Inline count-badge naast een naam ("3 rollen") */
.bil-count-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 18px;
  padding: 0 6px;
  margin-left: 6px;
  background: var(--pill-bg-active);
  color: var(--text-muted);
  border-radius: 999px;
  font-size: 11px;
  font-weight: 500;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  vertical-align: middle;
}

/* ── Tag — info-label, optioneel met close-knop ──────────────────────────── */
.bil-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: color-mix(in srgb, var(--accent) 14%, transparent);
  border: 1px solid color-mix(in srgb, var(--accent) 30%, transparent);
  color: var(--text);
  border-radius: 6px;
  padding: 2px 8px;
  font-size: 11px;
  line-height: 1.5;
  white-space: nowrap;
}

.bil-tag-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 0;
  font-size: 10px;
  border-radius: 50%;
  transition: background 0.12s, color 0.12s;
}

.bil-tag-close:hover {
  background: var(--pill-bg-active);
  color: var(--text);
}

/* ── Icon-only buttons (klein rondje voor close/edit/inline-action) ─────── */
.bil-icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  background: transparent;
  border: 1px solid var(--pill-border);
  color: var(--text-muted);
  border-radius: 50%;
  cursor: pointer;
  font-size: 14px; /* expliciet — niet erven van body */
  transition: color 0.12s, background 0.12s, border-color 0.12s;
}

.bil-icon-btn:hover {
  color: var(--text);
  background: var(--pill-bg-hover);
  border-color: var(--pill-border-hover);
}

.bil-icon-btn-borderless {
  border-color: transparent;
}

/* ── Pad/code-weergave ──────────────────────────────────────────────────── */
.bil-code-block {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-muted);
  background: var(--pill-bg-hover);
  padding: 8px 12px;
  border-radius: 6px;
  word-break: break-all;
}

/* ── Folder-tree row (wiki-toegang) ──────────────────────────────────────── */
.bil-folder-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 5px 8px;
  border-radius: 6px;
  margin-bottom: 1px;
  transition: background 0.12s;
}

.bil-folder-row:hover {
  background: var(--pill-bg-hover);
}

.bil-folder-row.has-restrictions {
  background: color-mix(in srgb, var(--accent) 8%, transparent);
}

.bil-folder-row.has-restrictions:hover {
  background: color-mix(in srgb, var(--accent) 14%, transparent);
}

.bil-folder-row-info {
  display: flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
  flex: 1;
  overflow: hidden;
}

.bil-folder-row-icon {
  color: var(--text-muted);
  flex-shrink: 0;
  font-size: 13px;
}

.bil-folder-row.has-restrictions .bil-folder-row-icon {
  color: var(--accent);
}

.bil-folder-row-name {
  font-size: 13px;
  font-weight: 500;
  color: var(--text);
  white-space: nowrap;
  flex-shrink: 0;
}

.bil-folder-row-path {
  font-size: 11px;
  color: var(--text-faint);
  font-family: var(--font-mono);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.bil-folder-row-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
  margin-left: 8px;
}

/* Edit-knop altijd in flow (reserveert ruimte), fade in op row-hover */
.bil-folder-row .bil-icon-btn {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.12s ease;
}

.bil-folder-row:hover .bil-icon-btn {
  opacity: 1;
  pointer-events: auto;
}

/* ── Blade (slide-in side panel voor edit-forms) ─────────────────────────── */
.bil-blade-backdrop {
  position: fixed;
  inset: 0;
  z-index: 50;
  background: rgba(0, 0, 0, 0.5);
  -webkit-backdrop-filter: blur(2px);
  backdrop-filter: blur(2px);
}

.bil-blade {
  position: fixed;
  right: 0;
  top: 0;
  bottom: 0;
  width: 440px;
  max-width: 95vw;
  background: var(--chrome-bg);
  border-left: 1px solid var(--border-subtle);
  box-shadow: -8px 0 32px rgba(0, 0, 0, 0.5);
  overflow-y: auto;
  z-index: 51;
  color: var(--text);
  transition: transform 0.25s ease;
}

.bil-blade.is-closed {
  transform: translateX(100%);
}

.bil-blade-content {
  padding: 28px;
}

.bil-blade-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}

.bil-blade-title {
  flex: 1;
  margin: 0;
  padding: 0;
  font-size: 17px;
  font-weight: 600;
  color: var(--text);
  text-transform: none;
}

.bil-blade-section {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--pill-border);
}

/* =============================================================================
 * Accessibility — universele :focus-visible ring voor keyboard-navigatie
 * Alleen zichtbaar bij Tab-navigatie (niet bij muis-klik), dus geen visuele
 * "bloop" voor muisgebruikers. Outline gebruikt --accent voor brand-consistent.
 * ============================================================================= */
.bil-btn:focus-visible,
.bil-chip:focus-visible,
.bil-chip-bulk:focus-visible,
.bil-tab:focus-visible,
.bil-icon-btn:focus-visible,
.bil-tag-close:focus-visible,
.bil-switch:focus-visible,
.chat-new-btn:focus-visible,
.chat-send-btn:focus-visible,
.chat-topbar-toggle:focus-visible,
.chat-sidebar-nav-item:focus-visible,
.chat-sidebar-item:focus-visible,
.chat-logout-btn:focus-visible,
.chat-summary-bar:focus-visible,
.chat-tools-toggle-btn:focus-visible,
.chat-modal-close:focus-visible,
.bil-dropdown-trigger:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* Hidden-by-default knoppen (opacity 0) ook zichtbaar bij keyboard-focus,
   anders kan de gebruiker er niet "naartoe tabben" zonder verloren te zijn. */
.chat-sidebar-item-pin:focus-visible,
.chat-sidebar-item-delete:focus-visible,
.bil-folder-row .bil-icon-btn:focus-visible {
  opacity: 1;
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* =============================================================================
 * Responsive — mobiel + tablet
 *
 * Strategie:
 *  - <768px: sidebar wordt off-canvas drawer (position: fixed, slide-in over content)
 *  - <768px: backdrop wanneer drawer open; tap-buiten sluit
 *  - <768px: content-padding strakker, energizer-shift uit
 *  - <480px: "Nieuwe chat"-knop wordt icon-only, model-select compacter
 *  - <380px: model-select verbergen (te krap)
 * ============================================================================= */
/* ── Mobile sidebar drawer ───────────────────────────────────────────────── */
@media (max-width: 767px) {
  /* Sidebar wordt overlay-drawer */
  body.chat-layout .chat-sidebar {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: 280px;
    min-width: 280px;
    max-width: 85vw;
    height: 100dvh;
    z-index: 100;
    box-shadow: 8px 0 32px rgba(0, 0, 0, 0.55);
    transition: transform 0.25s ease;
    transform: translateX(0);
    border-right: 1px solid var(--border-subtle);
  }
  /* Collapsed = drawer dicht: off-canvas via transform i.p.v. width 0 */
  body.chat-layout .chat-sidebar.collapsed {
    width: 280px;
    min-width: 280px;
    transform: translateX(-100%);
    overflow: visible;
    border-right: none;
  }
  body.chat-layout .chat-sidebar.collapsed > * {
    visibility: visible; /* override desktop hide */
    pointer-events: auto;
  }
  /* Backdrop achter de drawer */
  .chat-mobile-backdrop {
    display: block;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    -webkit-backdrop-filter: blur(3px);
    backdrop-filter: blur(3px);
    z-index: 99;
  }
  /* Energizer-shift uit op mobiel (sidebar overlay'd, geen panel-correctie nodig) */
  body.chat-layout {
    background-position: center center !important;
  }
  /* Topbar slanker */
  .chat-topbar {
    padding: 10px 12px;
    gap: 8px;
  }
  /* Empty-state strakker */
  .chat-empty-state {
    padding: 84px 20px 140px;
    gap: 8px;
  }
  .chat-welcome-title {
    font-size: 24px;
  }
  .chat-welcome-sub {
    font-size: 14px;
    margin-bottom: 18px;
  }
  .chat-stage {
    height: 160px;
  }
  /* Chat-messages horizontal-padding eraf */
  .chat-msg {
    padding: 3px 12px;
  }
  .chat-input-area {
    padding: 12px 14px 14px;
  }
  .chat-input-wrapper {
    padding: 10px 12px 8px;
  }
  /* Bil-page (Syncs/AccessManagement) strakker */
  .bil-page-header {
    padding: 76px 16px 0;
  }
  .bil-page-body {
    padding: 18px 16px 60px;
  }
  .bil-card {
    padding: 18px 18px;
  }
  /* Blade full-width op mobiel (was 95vw) — voelt natuurlijker als fullscreen */
  .bil-blade {
    width: 100%;
    max-width: 100%;
  }
  .bil-blade-content {
    padding: 22px 20px;
  }
  /* Tables: horizontale scroll-fallback voor cellen die niet wrappen */
  .bil-page-body .bil-table {
    display: block;
    overflow-x: auto;
  }
}
/* ── Desktop: context-menu-on-hover van de topbar-toggle ─────────────────── */
@media (min-width: 768px) {
  /* Wanneer sidebar dicht is, hover op de topbar-toggle (of op de popover
     zelf) toont de sidebar als compacte context-menu — alle items zichtbaar,
     compact gestyled. Verlaten = popover sluit na korte forgive-delay. */
  .chat-sidebar.collapsed {
    position: fixed;
    top: 42px; /* overlapt 2px met toggle-bottom — geen gap */
    left: 12px;
    bottom: auto;
    width: 256px;
    min-width: 256px;
    height: auto;
    max-height: calc(100vh - 62px);
    z-index: 60;
    border-radius: 12px;
    border: 1px solid var(--border-subtle);
    box-shadow: var(--card-shadow);
    overflow: hidden;
    /* Een extra invisible-padding-top via pseudo-element bridge zou 'm
       nog beter maken, maar 2px overlap volstaat — toggle-bottom (y=44)
       en popover-top (y=42) overlappen, dus geen gap-zone meer. */
    transform: translateY(-6px) scale(0.97);
    transform-origin: top left;
    opacity: 0;
    pointer-events: none;
    transition: transform 0.15s ease, opacity 0.15s ease, pointer-events 0s linear;
    transition-delay: 180ms; /* close-delay (forgive) */
  }
  /* Pseudo-bridge: onzichtbaar element dat de hover-zone naar BOVEN uitbreidt,
     zodat je vanaf de toggle door de denkbeeldige "gap" naar de popover kunt
     bewegen zonder dat de hover wegvalt. */
  .chat-sidebar.collapsed::before {
    content: "";
    position: absolute;
    top: -14px;
    left: 0;
    width: 60px; /* alleen boven de toggle-zone, niet de hele breedte */
    height: 14px;
    pointer-events: auto; /* override parent's none zodat hover hier wel werkt */
  }
  /* Toon op hover-toggle of hover-popover (incl. de pseudo-bridge) */
  body.chat-layout:has(.chat-topbar-toggle:hover) .chat-sidebar.collapsed,
  .chat-sidebar.collapsed:hover {
    transform: translateY(0) scale(1);
    opacity: 1;
    pointer-events: auto;
    transition-delay: 100ms, 100ms, 0s; /* snellere intent + meteen auto */
  }
  /* En tegelijk: kinderen weer zichtbaar+klikbaar zodra de popover open is */
  body.chat-layout:has(.chat-topbar-toggle:hover) .chat-sidebar.collapsed > *,
  .chat-sidebar.collapsed:hover > * {
    visibility: visible;
    pointer-events: auto;
  }
  /* Compact-styling binnen de popover — alles iets dichter op elkaar */
  .chat-sidebar.collapsed .chat-sidebar-list {
    padding: 6px 8px;
  }
  .chat-sidebar.collapsed .chat-sidebar-nav-item,
  .chat-sidebar.collapsed .chat-sidebar-item {
    min-height: 28px;
    padding: 4px 10px 4px 34px;
    margin-bottom: 3px;
    font-size: 13px;
  }
  .chat-sidebar.collapsed .chat-sidebar-nav-icon {
    left: 5px;
    width: 20px;
    height: 20px;
    font-size: 9px;
  }
  .chat-sidebar.collapsed .chat-sidebar-section-label {
    padding: 8px 6px 3px;
    font-size: 10px;
    letter-spacing: 0.05em;
  }
  .chat-sidebar.collapsed .chat-sidebar-item-title {
    font-size: 13px;
  }
  .chat-sidebar.collapsed .chat-sidebar-item-pin,
  .chat-sidebar.collapsed .chat-sidebar-item-delete {
    width: 20px;
    height: 20px;
    font-size: 10px;
  }
  .chat-sidebar.collapsed .chat-sidebar-item.is-pinned .chat-sidebar-item-pin {
    margin-left: -6px;
    margin-right: 2px;
  }
  .chat-sidebar.collapsed .chat-sidebar-empty {
    padding: 12px 8px;
    font-size: 12px;
  }
  .chat-sidebar.collapsed .chat-sidebar-footer {
    padding: 8px 10px;
  }
  .chat-sidebar.collapsed .chat-sidebar-avatar {
    width: 26px;
    height: 26px;
    min-width: 26px;
    font-size: 11px;
  }
  .chat-sidebar.collapsed .chat-sidebar-user-name {
    font-size: 12px;
  }
  .chat-sidebar.collapsed .chat-sidebar-user-sub {
    font-size: 10px;
  }
  .chat-sidebar.collapsed .chat-logout-btn {
    width: 28px;
    height: 28px;
    font-size: 12px;
  }
}
/* ── Smal mobiel: knop-tekst weg ─────────────────────────────────────────── */
@media (max-width: 480px) {
  /* "Nieuwe chat" wordt icon-only in topbar */
  .chat-topbar .chat-new-btn {
    width: 34px;
    height: 34px;
    min-height: 34px;
    padding: 0;
    justify-content: center;
  }
  .chat-topbar .chat-new-btn .chat-new-btn-icon {
    position: static;
    transform: none;
    width: 20px;
    height: 20px;
  }
  .chat-topbar .chat-new-btn-label {
    display: none;
  }
  /* Model-dropdown korter */
  .chat-model-dropdown .bil-dropdown-trigger {
    max-width: 140px;
    padding: 0 10px;
  }
  /* Tabs kompacter — icons + tekst kan wrappen */
  .bil-tab {
    padding: 9px 10px;
    font-size: 12px;
  }
}
/* ── Zeer smal: model-select volledig weg ────────────────────────────────── */
@media (max-width: 380px) {
  .chat-model-dropdown {
    display: none;
  }
}
/* ── Touch-devices: vermijd hover-flickering ─────────────────────────────── */
@media (hover: none) {
  /* Op touch-devices triggert "hover" raar na een tap. Items die alleen op
     hover zichtbaar zijn, blijven dan onzichtbaar tot je opnieuw tapt. */
  .chat-sidebar-item-pin,
  .chat-sidebar-item-delete,
  .bil-folder-row .bil-icon-btn {
    opacity: 1; /* altijd zichtbaar op touch */
  }
}
/* =============================================================================
 * App page layout — herbruikbare content-klassen, max 1280px gecentreerd.
 * Gebruik binnen body.chat-layout main.bil-page > .bil-page-content.
 * ============================================================================= */
.app-page-header {
  padding: 84px 24px 0;
  margin: 0 auto;
  width: 100%;
  max-width: 1280px;
  box-sizing: border-box;
}
.app-page-header .app-page-title {
  margin: 0;
  padding: 0;
  font-size: 28px;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.2;
  color: var(--text-on-body);
  text-transform: none;
}
.app-page-header .app-page-sub {
  margin: 6px 0 0;
  padding: 0;
  font-size: 14px;
  line-height: 1.5;
  color: var(--text-muted-on-body);
}

.app-page-body {
  padding: 24px 24px 60px;
  margin: 0 auto;
  width: 100%;
  max-width: 1280px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

/* =============================================================================
 * Module grid — herbruikbare kaartgrid voor pagina's met module-CTA's
 * Gebruik: .app-module-grid > .app-module-card (als <a href>)
 * ============================================================================= */
.app-module-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 16px;
  width: 100%;
}

.app-module-card {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 48px 20px;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 16px;
  backdrop-filter: blur(14px) saturate(150%);
  text-decoration: none;
  color: var(--text);
  cursor: pointer;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.12s ease;
}
.app-module-card:hover {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent), 0 4px 20px rgba(0, 0, 0, 0.18);
  transform: translateY(-2px);
}
.app-module-card:hover .app-module-card__arrow {
  color: var(--accent);
  transform: translateX(3px);
}
.app-module-card .app-module-card__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 20px;
}
.app-module-card .app-module-card__body {
  flex: 1;
  min-width: 0;
}
.app-module-card .app-module-card__body .app-module-card__title {
  margin: 0 0 4px;
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
}
.app-module-card .app-module-card__body .app-module-card__desc {
  margin: 0;
  font-size: 13px;
  color: var(--text-muted-on-body);
  line-height: 1.5;
}
.app-module-card .app-module-card__arrow {
  flex-shrink: 0;
  color: var(--text-muted);
  font-size: 14px;
  transition: color 0.15s ease, transform 0.15s ease;
}

/* =============================================================================
 * Chat — aanvullende componenten (waren nog niet gestyled)
 * Summary-bar, tool-call toggle/lijst, "samenvatten"-melding, thinking-tool
 * en de samenvatting-modal. Allemaal token-gebaseerd, dus brand-aware.
 * ============================================================================= */
/* ── Summary-bar (verschijnt boven de berichten als er een samenvatting is) ── */
.chat-summary-bar {
  display: flex;
  align-items: center;
  gap: 9px;
  width: 100%;
  max-width: 840px;
  margin: 68px auto 0; /* klaar de absolute topbar */
  padding: 9px 16px;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 999px;
  color: var(--text-muted);
  font-family: var(--font-family);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  backdrop-filter: blur(14px) saturate(150%);
  -webkit-backdrop-filter: blur(14px) saturate(150%);
  transition: border-color 0.12s, color 0.12s, background 0.12s;
}

.chat-summary-bar:hover {
  border-color: var(--pill-border-hover);
  color: var(--text);
  background: var(--surface-bg-hover);
}

.chat-summary-bar > span {
  flex: 1;
  text-align: left;
}

.chat-summary-bar > i:first-child {
  color: var(--accent);
  font-size: 13px;
}

.chat-summary-bar-arrow {
  color: var(--text-faint);
  font-size: 12px;
}

/* Verschijnt de summary-bar samen met berichten? Dan hoeft .chat-messages de
   topbar niet nóg eens te clearen (de bar doet dat al). */
.chat-summary-bar + .chat-messages {
  padding-top: 16px;
}

/* ── Tool-calls (samengevouwen onder de assistant-bubble) ─────────────────── */
.chat-tools-toggle {
  margin-top: 8px;
}

.chat-tools-toggle-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: var(--pill-bg-hover);
  border: 1px solid var(--pill-border);
  color: var(--text-muted);
  border-radius: 999px;
  padding: 4px 13px;
  font-family: var(--font-family);
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  transition: color 0.12s, background 0.12s, border-color 0.12s;
}

.chat-tools-toggle-btn:hover {
  color: var(--text);
  background: var(--pill-bg-active);
  border-color: var(--pill-border-hover);
}

.chat-tools-toggle-btn i {
  font-size: 10px;
}

.chat-tools-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 8px;
  padding-left: 2px;
}

/* ── "Samenvatting aan het maken"-melding (in de thinking-zone) ───────────── */
.chat-summarizing-msg {
  display: inline-flex;
  align-items: center;
  padding: 12px 16px;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 20px 20px 20px 4px;
  color: var(--text-muted);
  font-size: 13px;
  font-style: italic;
  line-height: 1.5;
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
}

/* ── Laatst gebruikte tool, getoond tijdens het denken ────────────────────── */
.chat-thinking-tool {
  margin-bottom: 6px;
  font-size: 11px;
  color: var(--text-faint);
  font-family: var(--font-mono);
  line-height: 1.4;
}

/* ── Samenvatting-modal ───────────────────────────────────────────────────── */
.chat-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(0, 0, 0, 0.55);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
  animation: bil-fade-in 0.2s ease-out both;
}

.chat-modal {
  width: 100%;
  max-width: 640px;
  max-height: 80vh;
  display: flex;
  flex-direction: column;
  background: var(--card-bg-fallback); /* solide vlak — beter leesbaar dan glas voor lange tekst */
  border: 1px solid var(--card-border);
  border-radius: 16px;
  box-shadow: var(--card-shadow);
  color: var(--text);
  overflow: hidden;
}

.chat-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 15px 18px;
  border-bottom: 1px solid var(--border-subtle);
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
}

.chat-modal-header i {
  color: var(--accent);
}

.chat-modal-close {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
  background: transparent;
  border: 1px solid var(--pill-border);
  color: var(--text-muted);
  border-radius: 50%;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: color 0.12s, background 0.12s, border-color 0.12s;
}

.chat-modal-close:hover {
  color: var(--text);
  background: var(--pill-bg-hover);
  border-color: var(--pill-border-hover);
}

.chat-modal-body {
  padding: 18px 20px;
  overflow-y: auto;
  font-size: 14px;
  line-height: 1.6;
  color: var(--text);
}

.chat-modal-body::-webkit-scrollbar {
  width: 5px;
}

.chat-modal-body::-webkit-scrollbar-track {
  background: transparent;
}

.chat-modal-body::-webkit-scrollbar-thumb {
  background: var(--pill-bg-active);
  border-radius: 3px;
}

/* Beknopte markdown-opmaak binnen de modal (los van de assistant-bubble prose) */
.chat-modal-body h1, .chat-modal-body h2, .chat-modal-body h3 {
  color: var(--text);
  margin: 0.7em 0 0.3em;
  line-height: 1.3;
}

.chat-modal-body h1 {
  font-size: 1.15em;
}

.chat-modal-body h2 {
  font-size: 1.05em;
}

.chat-modal-body h3 {
  font-size: 0.97em;
}

.chat-modal-body p {
  margin: 0.45em 0;
}

.chat-modal-body p:first-child {
  margin-top: 0;
}

.chat-modal-body ul, .chat-modal-body ol {
  padding-left: 1.4em;
  margin: 0.4em 0;
}

.chat-modal-body li {
  margin: 0.2em 0;
}

.chat-modal-body code {
  font-family: var(--font-mono);
  font-size: 0.85em;
  background: var(--pill-bg-hover);
  border: 1px solid var(--border-subtle);
  padding: 1px 5px;
  border-radius: 4px;
}

.chat-modal-body a {
  color: #00A0AD;
  text-decoration: underline;
}

/* =============================================================================
 * Classic admin / legacy UI  — samengevoegd uit site.css (2026-06-04)
 *
 * Globale stijlen voor de "klassieke" beheerpagina's die via _Layout.cshtml
 * renderen: plain <body>, bare <main>, .blade-editor-wrapper, .action-bar,
 * tabellen, formulieren, paging, tags, .logout-ball enz.
 *
 * Ontdubbeld t.o.v. bil.scss (bil.scss is leidend):
 *   - `* { --background/--white/--black/--logisz-amber }`  -> verplaatst naar :root
 *   - `[x-cloak] { display:none !important }`              -> stond al in bil.scss
 *   - `html, body { ... }`                                 -> reset samengevoegd bovenaan;
 *        het lichte thema (bg + typografie) staat hieronder, gescoped op niet-app
 *        body's zodat de dark app (.chat-layout / .bil-login) onaangeroerd blijft.
 * ============================================================================= */
/* Licht "klassiek" thema alleen voor beheerpagina's zonder app-body-class.
   body.chat-layout en body.bil-login zetten hun eigen achtergrond/typografie. */
body:not(.chat-layout):not(.bil-login) {
  line-height: 24px;
  background-color: var(--background);
  font-family: "Poppins", sans-serif;
  font-size: 16px;
  font-weight: 300;
}

[x-on\:click] {
  cursor: pointer;
}

body {
  overflow-y: scroll;
}

h1 {
  padding-bottom: 12px;
  line-height: 54px;
  font-size: 48px;
  font-weight: 900;
  text-transform: uppercase;
}

p.button.back a span,
button.button.back,
button[type=submit].back {
  padding: 10px 18px 10px 38px;
  background-color: transparent;
  border: 2px solid var(--black);
}

p.button.back a span::after,
button.button.back::after,
button[type=submit].back::after {
  top: 13px;
  left: 20px;
  right: unset;
  width: 10px;
  height: 18px;
  display: inline-block;
  background-position: -96px -48px;
  content: "";
  position: absolute;
  transition: all linear 125ms;
  opacity: 1;
}

p.button.back a span::before,
button.button.back::before,
button[type=submit].back::before {
  top: 13px;
  right: -20px;
  left: unset;
  width: 10px;
  height: 18px;
  display: inline-block;
  background-position: -96px -48px;
  content: "";
  position: absolute;
  transition: all linear 125ms;
  opacity: 0;
}

p.button.back:hover a span::after,
button.button.back:hover::after,
button[type=submit].back:hover::after {
  left: -20px;
  right: unset;
  opacity: 0;
}

p.button.back:hover a span::before,
button.button.back:hover::before,
button[type=submit].back:hover::before {
  right: 20px;
  left: unset;
  opacity: 1;
}

p.button.back:hover a span,
button.button.back:hover,
button[type=submit].back:hover {
  padding: 10px 38px 10px 18px;
}

#logisz-version {
  border-bottom: dotted black 1px;
}

code {
  background: rgba(0, 0, 0, 0.0392156863);
  padding: 0 6px;
  border-radius: 3px;
  font-size: 14px;
}

.text-center {
  text-align: center;
}

.line-clamp {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.page.domain .project-wrapper {
  margin-top: 48px;
}

.page.domain .project-wrapper .title-wrapper {
  display: flex;
  flex-direction: column;
}

.page.domain .project-wrapper .title-wrapper .title {
  display: flex;
  align-items: center;
}

.page.domain .project-wrapper .title-wrapper .title-info-wrapper {
  display: flex;
  align-items: center;
  gap: 8px;
}

.page.domain .project-wrapper .title-wrapper .title-info-wrapper > span {
  font-size: 11px;
  font-weight: 100;
  color: rgba(0, 0, 0, 0.5490196078);
  line-height: 10px;
}

.page.domain .project-wrapper > .action-bar .toggle-wrapper {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.page.domain .project-wrapper > .action-bar .toggle-wrapper .toggle {
  cursor: pointer;
  height: 48px;
  text-align: center;
  line-height: 48px;
  flex: 0 0 48px;
}

.page.domain .inlink {
  font-size: 12px;
  font-family: var(--font-mono);
  background: rgba(0, 0, 0, 0.0823529412);
  padding: 2px 6px;
  border-radius: 3px;
  margin-left: 4px;
}

.page.domain .inlink-host {
  font-size: 12px;
}

/* Table Styling */
/*
table { width: 100%; border-radius: 12px; background: #fff; overflow: hidden; }
table thead tr { background: #FFBF00; }
table tbody tr:nth-child(2n+1) { background: unset; }
table tbody tr { background: #0000000d; }
table tr th,
table tr td { padding: 3px 8px; font-size: 14px; }
table tr td.empty-row { padding: 18px; text-align: center; font-size: 16px; }
*/
.blade-editor-wrapper .blade-editor.small .blade {
  width: 300px;
}

.blade-editor-wrapper .blade-editor.medium .blade {
  width: 500px;
}

.blade-editor-wrapper .blade-editor.big .blade {
  width: 60%;
}

.blade-editor-wrapper .blade-editor .blade {
  height: 100%;
  overflow-y: scroll;
  width: 40vw;
  top: 50%;
  transition: all 0.3s;
  position: fixed;
  right: 0;
  z-index: 2;
  background: var(--background);
  width: 40%;
  max-width: 100%;
  transform: translate(100%, -50%);
}

.blade-editor-wrapper .blade-editor .blade .blade-head {
  font-weight: bold;
  font-size: 20px;
  padding: 16px;
  width: 100%;
  background: #fff;
}

.blade-editor-wrapper .blade-editor .blade .blade-body {
  padding: 16px;
  width: 100%;
  max-height: calc(100vh - 56px);
  overflow-y: auto;
}

.blade-editor-wrapper .blade-editor .blade .blade-body section {
  margin-bottom: 24px;
}

.blade-editor-wrapper .blade-editor .blade .blade-body section .section-title {
  font-weight: bold;
  font-size: 18px;
  padding-bottom: 12px;
}

.blade-editor-wrapper .blade-editor .backdrop {
  transition: all 0.2s;
  opacity: 0;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
  background: #000;
}

.blade-editor-wrapper .blade-editor.expand .blade {
  transform: translate(0%, -50%);
}

.blade-editor-wrapper .blade-editor.expand .backdrop {
  opacity: 0.5;
}

.blade-editor-wrapper .blade-editor .blade .scroll-section {
  max-height: 500px;
  overflow-y: auto;
  padding-bottom: 24px;
}

.blade-editor-wrapper .blade-editor .blade .scroll-section .checkbox-list .form-group {
  padding-bottom: unset;
}

.blade-editor-wrapper .blade-editor .info-description {
  font-size: 12px;
  line-height: 20px;
  padding: 12px;
  border-left: solid #FFBF00 4px;
  margin-bottom: 12px;
  background: #fff;
  border-radius: 5px;
}

.blade-editor-wrapper .blade-editor .info-description code {
  font-size: 12px;
  line-height: 20px;
}

.blade-editor-wrapper .blade-editor .info-description p {
  padding-bottom: 12px;
}

.blade-editor-wrapper .blade-editor .info-description p:first-of-type {
  padding-bottom: 0;
}

.blade-editor-wrapper .blade-editor .info-description p:last-of-type {
  padding-bottom: 0;
}

.blade-editor-wrapper .blade-editor .info-description p:first-of-type + ul {
  margin-top: 12px;
}

.blade-editor-wrapper .blade-editor .info-description ul {
  padding-left: 16px;
}

.text-list-section {
  display: flex;
  flex-direction: column;
}

.text-list-section .text-list-title {
  font-weight: bold;
  font-size: 16px;
  padding: 8px;
  padding-bottom: 0;
}

.text-list-section .text-list-item {
  display: flex;
  flex-direction: column;
  padding: 8px;
  border-bottom: solid rgba(0, 0, 0, 0.0901960784) 1px;
  font-size: 14px;
  line-height: 16px;
}

.text-list-section .text-list-item:last-of-type {
  border-bottom: unset;
}

.text-list-section .text-list-item .text-list-head {
  opacity: 0.5;
}

.ckeditor.big .ck-editor__editable_inline {
  height: 400px;
}

.paging {
  width: 100%;
  display: flex;
  justify-content: space-between;
}

.paging > span {
  display: inline-block;
  padding: 0 8px;
  display: flex;
  justify-content: center;
  flex-direction: column;
}

.paging .pager ul {
  gap: 1px;
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
}

.paging .pager ul li {
  user-select: none;
  transition: background 0.3s;
  cursor: pointer;
  margin: 0;
  padding: 0;
  background: #fff;
  line-height: 36px;
  text-align: center;
  width: 36px;
  height: 36px;
  display: inline-block;
}

.paging .pager ul li:hover:not(.locked),
.paging .pager ul li.active {
  background: var(--logisz-amber);
}

.paging .pager ul li:first-child {
  border-radius: 5px 0 0 5px;
}

.paging .pager ul li:last-child {
  border-radius: 0 5px 5px 0;
}

.action-bar {
  margin-bottom: 24px;
  gap: 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.action-bar p.button, .action-bar button.button {
  margin: 0;
}

.action-bar input[type=text] {
  border-radius: 9999px;
  text-indent: 20px;
  height: 48px;
  display: inline-block;
  border: none;
  outline: none;
  background: rgba(0, 0, 0, 0.0509803922);
  padding: 0;
}

.action-bar.right {
  justify-content: end;
}

.action-bar.left {
  justify-content: start;
}

.action-bar.small-margin {
  margin-bottom: 12px;
}

.action-bar.bottom {
  margin-bottom: 0;
  margin-top: 24px;
}

.action-bar .title {
  margin: 0;
  padding: 0;
}

.action-bar .action-bar-label {
  font-size: 12px;
  font-weight: 100;
  color: rgba(0, 0, 0, 0.5490196078);
}

.action-bar .action-sub-bar {
  display: flex;
  align-items: center;
  gap: 12px;
}

.action-bar.form .form-group {
  padding: 0;
}

.action-bar.form.small .form-group {
  display: flex;
  gap: 4px;
  align-items: center;
}

.action-bar.form.small .form-group label {
  font-size: 12px;
}

.action-bar.inactive-visiblity {
  opacity: 0.2;
  transition: opacity 0.3s;
}

.action-bar.inactive-visiblity:hover {
  opacity: 1;
}

.tags {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.tags .tag {
  padding: 0 6px;
  font-size: 12px;
  border: solid var(--logisz-amber) 1px;
  border-radius: 5px;
  color: var(--logisz-amber);
  white-space: nowrap;
}

.tags .tag > span {
  color: var(--logisz-amber);
}

.tags .tag.solid {
  background-color: var(--logisz-amber);
  color: var(--black);
}

.tags .tag.solid > span {
  color: var(--black);
}

.tags .tag > span.red {
  color: #c32323;
  font-weight: bold;
}

.tags .tag > span.green {
  color: #37dd2e;
  font-weight: bold;
}

.list-actions {
  display: flex;
  gap: 6px;
  justify-content: end;
}

.list-actions.left {
  display: flex;
  gap: 6px;
  justify-content: start;
}

.list-actions .icon {
  cursor: pointer;
  width: 32px;
  height: 32px;
  border: 2px solid var(--black);
  border-radius: 9999px;
  align-items: center;
  justify-content: center;
  display: flex;
  content: "";
  transition: background-color linear 125ms;
}

.list-actions .icon:hover {
  background-color: var(--black);
  color: var(--white);
}

.list-actions .icon.view::after {
  width: 16px;
  height: 13px;
  background-image: url(../images/sprite.svg);
  background-repeat: no-repeat;
  background-size: 186px 66px;
  background-color: transparent;
  background-position: -138px -48px;
  border: 0;
  content: "";
  display: inline-block;
  cursor: pointer;
}

.list-actions .icon.view:hover::after {
  background-position: -106px -48px;
}

.list-actions .hidden-action-wrapper {
  opacity: 0;
  transition: all 0.15s;
}

.list-actions.small .icon {
  width: unset;
  height: unset;
  display: unset;
  border: unset;
  border: none;
}

.list-actions.small .icon:hover {
  background: none;
  color: inherit;
}

.list-actions.inline {
  display: inline-block;
}

.contains-action-wrapper:hover .hidden-action-wrapper {
  opacity: 1;
}

.contains-action-wrapper .hidden-action-wrapper {
  display: flex;
  gap: 4px;
}

.form {
  height: 100%;
}

.form .form-group {
  padding-bottom: 24px;
}

.form .form-group:last-of-type {
  padding-bottom: 0;
}

/*.form .row .sf_colsIn .form-group {padding-bottom: 24px;}*/
.form .form-group label {
  margin: 0;
  padding: 0;
  font-size: 12px;
  text-transform: uppercase;
  display: block;
}

.form .form-group input[type=text], .form-group input[type=email], .form-group select {
  width: 100%;
  margin: 0;
  padding: 0;
  line-height: 32px;
  height: 32px;
  background-color: transparent;
  border: 0;
  border-bottom: 1px solid #000000;
  font-weight: 300;
  outline: none;
}

.form .form-group input[type=text].input-validation-error, .form-group input[type=email].input-validation-error {
  background: -moz-linear-gradient(top, rgba(255, 0, 0, 0) 0%, rgba(255, 0, 0, 0.1) 100%);
  background: -webkit-linear-gradient(top, rgba(255, 0, 0, 0) 0%, rgba(255, 0, 0, 0.1) 100%);
  background: linear-gradient(to bottom, rgba(255, 0, 0, 0) 0%, rgba(255, 0, 0, 0.1) 100%);
  filter: progid:DXImageTransform.Microsoft.gradient( startColorstr="#00ff0000", endColorstr="#1aff0000",GradientType=0 );
}

.form .form-group strong {
  margin: 0;
  padding: 0;
  font-size: 12px;
  font-weight: normal;
  text-transform: uppercase;
  display: block;
}

.form .form-group textarea {
  width: 100%;
  height: 100px;
  line-height: 32px;
  margin: 0;
  padding: 0;
  background-color: transparent;
  border: 0;
  border-bottom: 1px solid #000000;
  font-weight: 300;
  outline: none;
}

.form .form-group textarea.input-validation-error {
  background-image: -moz-linear-gradient(top, transparent, rgba(255, 0, 0, 0.1) 31px, #000000 0px);
  background-image: -webkit-linear-gradient(top, transparent, rgba(255, 0, 0, 0.1) 31px, #000000 0);
}

.form .form-group input[type=checkbox] + label {
  font-size: inherit;
  text-transform: none;
  display: inline-block;
}

.form .form-group button {
  margin-bottom: 0;
}

.form .sfContentBlock em {
  font-size: 12px;
  font-style: italic;
}

.no-items-wrapper {
  max-width: 50vw;
  margin: 124px auto;
}

/**/
body:not(.bil-login) main {
  width: 100%;
  min-height: calc(100% - 48px);
  max-width: 2560px;
  margin: 0 auto;
  background-color: #FFFFFF;
}

section.section {
  position: relative;
  overflow: hidden;
}

section.section::before {
  -webkit-mask-image: url(/Images/circle.svg);
  -webkit-mask-size: 8192px 8192px;
  -webkit-mask-position: bottom center;
  -webkit-mask-repeat: no-repeat;
  mask-image: url(/Images/circle.svg);
  mask-size: 8192px 8192px;
  mask-position: bottom center;
  mask-repeat: no-repeat;
  display: block;
  content: "";
  pointer-events: none;
}

section.section.section-black .placeholder {
  top: -16px;
  max-height: 215px;
  display: flex;
  flex-direction: row;
  align-items: center;
  position: relative;
}

section.section.section-black .placeholder .logo {
  top: 0;
  left: -37px;
  position: relative;
  z-index: 1;
}

section.section.section-black .placeholder .logo img {
  height: 240px;
}

section.section.section-black .placeholder .content {
  position: relative;
  z-index: 1;
}

section.section.section-black .placeholder .content h1 {
  line-height: 36px;
  font-size: 36px;
}

section.section.section-black.to-white {
  background-color: var(--white);
}

section.section.section-black.to-white .inner-wrapper {
  box-sizing: border-box;
  position: relative;
}

section.section.section-black.to-white .inner-wrapper.radial {
  margin-bottom: 0 !important;
  background: rgb(0, 46, 49);
  background: -moz-radial-gradient(center, ellipse cover, rgb(0, 46, 49) 0%, rgb(0, 0, 0) 75%, rgb(0, 0, 0) 75%);
  background: -webkit-radial-gradient(center, ellipse cover, rgb(0, 46, 49) 0%, rgb(0, 0, 0) 75%, rgb(0, 0, 0) 75%);
  background: radial-gradient(ellipse at center, rgb(0, 46, 49) 0%, rgb(0, 0, 0) 75%, rgb(0, 0, 0) 75%);
  filter: progid:DXImageTransform.Microsoft.gradient( startColorstr="#002e31", endColorstr="#000000",GradientType=1 );
  position: relative;
}

section.section.section-black.to-white .inner-wrapper.radial::after {
  top: 0;
  right: 0;
  bottom: -1px;
  left: 0;
  background-image: url(/images/clipping-circle.svg);
  background-position: bottom center;
  background-size: 8192px 8192px;
  background-repeat: no-repeat;
  content: "";
  display: block;
  position: absolute;
  z-index: 0;
}

section.section.section-white .inner-wrapper {
  padding: 80px 24px 104px 24px;
  max-width: 1920px;
  margin: 0 auto;
}

section.section.section-white.to-grey {
  background-color: #F7F7F7;
}

section.section.section-white.to-grey::before {
  background-color: var(--white);
}

section.section.section-grey.to-white .inner-wrapper {
  padding: 60px 0 84px 0;
}

footer {
  background-color: var(--white);
  font-size: 12px;
  text-align: center;
}

section.section .container .logout {
  z-index: 1;
}

section.section .container .logout .button {
  height: auto;
}

/*
	Logout
*/
.logout-wrapper {
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: system-ui, sans-serif;
}

.logout-ball {
  --ball-size: 28px;
  --expand-width: 160px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: var(--ball-size);
  height: var(--ball-size);
  background: #00A0AD;
  color: #0d0d0d;
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
  border-radius: 999px;
  cursor: pointer;
  user-select: none;
  transition: background 0.25s ease, width 0.35s cubic-bezier(0.4, 0, 0.2, 1), color 0.2s ease;
  overflow: hidden;
}

.logout-ball:hover {
  background: #D60F3C;
  width: var(--expand-width);
}

.logout-ball i {
  position: absolute;
}

.logout-ball:hover i {
  position: absolute;
  opacity: 0;
  width: 0;
  margin: 0;
  overflow: hidden;
  transition: opacity 0.1s ease, width 0.2s ease 0.1s;
}

.logout-ball span {
  opacity: 0;
  white-space: nowrap;
  margin-left: 8px;
  transition: opacity 0.15s ease;
}

.logout-ball:hover span {
  opacity: 1;
}

.logout-ball:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
}

.logout-wrapper sup {
  top: -1px;
}

.blade-editor-wrapper .blade-editor {
  overflow: hidden;
}

.blade-editor-wrapper .blade-editor .blade {
  border-radius: 10px 0px 0px 10px;
  overflow: hidden;
}

.blade-editor-wrapper .blade-editor .blade {
  background-color: #F7F7F7;
}

.blade-editor-wrapper .blade-editor .blade .blade-head {
  background-color: #FFBF00;
}

.blade-editor-wrapper .blade-editor .blade .blade-body .blade-actions {
  display: flex;
  gap: 24px;
  font-size: 16px;
  padding: 16px 20px;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
}

.blade-editor-wrapper .blade-editor .blade .blade-body .blade-actions .action-link {
  position: relative;
  color: #333;
  text-decoration: none;
  cursor: pointer;
  padding-bottom: 3px;
  overflow: hidden;
}

.blade-editor-wrapper .blade-editor .blade .blade-body .blade-actions .action-link::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: #FFBF00;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s cubic-bezier(0.2, 0, 0, 1);
}

.blade-editor-wrapper .blade-editor .blade .blade-body .blade-actions .action-link:hover::after {
  transform: scaleX(1);
}

/*  CK editor*/
.blade-editor-wrapper .blade-editor .blade .form-group.ckeditor {
  position: relative;
  padding-bottom: 6px;
}

.blade-editor-wrapper .blade-editor .blade .form-group.ckeditor::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 7px;
  width: 99%;
  height: 2px;
  background: #FFBF00;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s cubic-bezier(0.2, 0, 0, 1);
  pointer-events: none;
  border-radius: 1px;
}

.blade-editor-wrapper .blade-editor .blade .form-group.ckeditor:focus-within::after {
  transform: scaleX(1);
}

.blade-editor-wrapper .blade-editor .blade .form-group.ckeditor label {
  display: block;
  margin-bottom: 8px;
  font-size: 14px;
  font-weight: 500;
  color: #444;
  transition: color 0.3s ease;
}

.blade-editor-wrapper .blade-editor .blade .form-group.ckeditor .ck-editor {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.blade-editor-wrapper .blade-editor .blade .ck-editor__editable {
  min-height: 140px;
  padding: 14px 16px;
  background: white !important;
  border-radius: 0 0 12px 12px !important;
  font-size: 15px;
  line-height: 1.6;
}

.blade-editor-wrapper .blade-editor .blade .ck-editor__editable:focus {
  border: 1px solid #D3D3D3;
  outline: none !important;
  box-shadow: none !important;
}

.blade-editor-wrapper .blade-editor .blade .ck-editor__editable ck-focussed {
  border: 1px solid #D3D3D3;
  outline: none !important;
  box-shadow: none !important;
}

.blade-editor-wrapper .blade-editor .blade .ck.ck-editor__editable.ck-focused:not(.ck-editor__nested-editable) {
  border: 1px solid #D3D3D3 !important;
  outline: none !important;
  box-shadow: none !important;
}

.blade-editor-wrapper .blade-editor .blade .ck.ck-toolbar {
  border-bottom: 1px solid #eee !important;
  border-radius: 12px 12px 0 0 !important;
}

.blade-editor-wrapper .blade-editor .blade .ck.ck-button,
.blade-editor-wrapper .blade-editor .blade .ck.ck-button.ck-off {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
}

.blade-editor-wrapper .blade-editor .blade .ck.ck-button:hover,
.blade-editor-wrapper .blade-editor .blade .ck.ck-button.ck-on:hover {
  background: transparent !important;
}

.blade-editor-wrapper .blade-editor .blade .ck.ck-button.ck-on {
  background: transparent !important;
  border-radius: 4px !important;
}

.blade-editor-wrapper .blade-editor .blade .ck.ck-button .ck-icon {
  color: #888 !important;
  transition: color 0.2s ease;
}

.blade-editor-wrapper .blade-editor .blade .ck.ck-button:hover .ck-icon,
.blade-editor-wrapper .blade-editor .blade .ck.ck-button.ck-on .ck-icon {
  color: #FFBF00 !important;
}

.blade-editor-wrapper .blade-editor .blade .ck.ck-label.ck-voice-label {
  display: none !important;
}

.container .api-keys {
  padding-bottom: 30px;
}

.container .help p {
  padding-bottom: 12px;
}

.blade-editor-wrapper .blade-editor .blade .blade-body p.title {
  font-size: 20px;
  padding-bottom: 0px;
}

@keyframes flash {
  0% {
    background-color: var(--flash-color);
  }
  100% {
    background-color: transparent;
  }
}
@keyframes flash-delete {
  0% {
    background-color: var(--flash-color);
    opacity: 1;
  }
  100% {
    background-color: var(--flash-color);
    opacity: 0;
  }
}
/* Alle animatie-classes delen dezelfde animatie-instellingen */
.animate-new-item,
.animate-edit-item {
  animation: flash 1s ease-out forwards;
}

.animate-delete-item {
  animation: flash-delete 1s ease-out forwards;
}

/* Specifieke kleuren per class */
.animate-new-item {
  --flash-color: lime;
}

.animate-edit-item {
  --flash-color: orange;
}

.animate-delete-item {
  --flash-color: #f87171;
}
