/* ──────────────────────────────────────────────────────────────────────────
   1. UNIVERSEEL LICHT BRANDING PALETTE & RESET (LIGHT MODE)
   ────────────────────────────────────────────────────────────────────────── */
:root {
  /* Achtergronden & Surfaces (Nu fris en licht) */
  --bg: #f8fafc;                   /* Zachte, lichte slate achtergrond */
  --surface: #ffecec42;             /* Kaarten, panelen en containers puur wit */
  --surface-toast: rgba(255, 255, 255, 0.425);
  
  /* Grenzen & Lijnen */
  --border: #4e5358;              /* Subtiele lichtgrijze randen */
  --border-input: #b7cae0;        /* Randen voor invoervelden */
  
  /* Accentkleuren (Modern Corporate Light Blue & Eco Green) */
  --blue: #0284c7;                /* Krachtig en helder blauw */
  --blue-brand: #0284c7;
  --blue-dim: #e0f2fe;            /* Zachtblauwe achtergrondvulling */
  --green: #16a34a;               /* Helder groen voor succes */
  --green-dim: #dcfce7;           /* Zachtgroene achtergrondvulling */
  --purple: #4f46e5;
  --purple-dim: #e0e7ff;
  --accent-login: #0284c7;
  
  /* Typografie Kleuren (Donker voor hoge leesbaarheid) */
  --text: #0f172a;                /* Bijna zwart/slate voor hoofdteksten */
  --text-muted: #0f172a;          /* Neutraal grijs voor subteksten */
  --subtle: #475569;              /* Donkergrijs voor labels */
  --muted-dark: #94a3b8;          /* Lichtgrijs voor decoratieve elementen */
}

*, *::before, *::after { 
  box-sizing: border-box; 
  margin: 0; 
  padding: 0; 
}

html, body {
  height: 100%;
  width: 100%;
  background-color: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Inter", Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

/* Animatie helpers */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.2; }
}

/* ──────────────────────────────────────────────────────────────────────────
   2. PAGINA: CENTRALE LANDINGSPAGINA (.landing-body)
   ────────────────────────────────────────────────────────────────────────── */
body.landing-body {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  overflow: hidden;
}

body.landing-body::before {
  content: '';
  position: absolute;
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, rgba(79, 70, 229, 0.05) 0%, rgba(248, 250, 252, 0) 70%);
  border-radius: 50%;
  top: -10%;
  right: -10%;
  z-index: 0;
  pointer-events: none;
}

.landing-wrapper {
  text-align: center;
  max-width: 900px;
  padding: 20px;
  z-index: 1;
  animation: fadeIn 0.8s ease-out;
}

.landing-header h1 {
  font-size: 2.5rem;
  font-weight: 800;
  background: linear-gradient(to right, var(--blue), var(--purple));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 10px;
}

.landing-header p {
  color: var(--text-muted);
  font-size: 1.1rem;
  margin-bottom: 40px;
}

.tenant-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 25px;
  margin-top: 20px;
}

.tenant-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 30px;
  text-decoration: none;
  color: var(--text);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.tenant-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  background: linear-gradient(135deg, rgba(2, 132, 199, 0.03) 0%, transparent 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.tenant-card:hover {
  transform: translateY(-5px);
  border-color: rgba(79, 70, 229, 0.3);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
}

.tenant-card:hover::before {
  opacity: 1;
}

.tenant-icon {
  font-size: 2.5rem;
  margin-bottom: 15px;
}

.tenant-card h3 {
  margin: 0 0 8px 0;
  font-size: 1.4rem;
  font-weight: 600;
}

.tenant-card p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.tenant-badge {
  margin-top: 15px;
  background: var(--purple-dim);
  color: var(--purple);
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  border: 1px solid rgba(79, 70, 229, 0.1);
}

/*──────────────────────────────────────────────────────────────────────────
   3. PAGINA: LOBBY / WELKOM DISPLAY (.lobby-display)
   ────────────────────────────────────────────────────────────────────────── */
body.lobby-display {
  display: flex;
  flex-direction: column;
  justify-content: center; /* Veranderd van space-between naar center nu de top-bar weg is */
  align-items: center;
  min-height: 100vh;
  overflow: hidden;
  
  /* HIER STAAT JE NIEUWE GRADIENT: subtiel verloop van heel lichtblauw naar wit */
  background: linear-gradient(180deg, #dcf1ff 0%, #ffffff 100%);
}

/* De pseudo-element ::before mag weg of blijven staan voor een extra diepgaand effect. 
   Als je hem wilt houden, staat hij hieronder. Anders kun je dit blok gerust wissen: */
body.lobby-display::before {
  content: '';
  position: absolute;
  width: 700px;
  height: 700px;
  background: radial-gradient(circle, rgba(2, 132, 199, 0.08) 0%, rgba(2, 132, 199, 0) 70%);
  border-radius: 50%;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 0;
  pointer-events: none;
}

/* DE TOP-BAR IS NU EEN TRANSPARANTE CONTAINER GEWORDEN */
.top-bar {
  position: absolute; /* Zorgt dat het over de achtergrond heen zweeft */
  top: 0;
  left: 0;
  z-index: 10;
  width: 100%;
  padding: 30px 60px; /* Geeft het logo en de klok wat ademruimte vanaf de randen */
  display: flex;
  justify-content: space-between; 
  align-items: center;
  background: transparent !important; /* GEEN witte balk meer */
  border-bottom: none !important;     /* GEEN lelijke streep meer */
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}
.digital-clock {
  font-size: 28px;
  font-weight: 400;
  color: var(--text);
  letter-spacing: 3px;
  font-variant-numeric: tabular-nums;
}

.logo-container {
  height: 45px;
  display: flex;
  align-items: center;
}

.logo-container img {
  max-height: 100%;
  max-width: 200px;
  object-fit: contain;
}

.center-content {
  position: relative;
  z-index: 1;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 40px;
}

.weather-location {
  font-size: 38px;
  color: var(--blue);
  font-weight: 600;
  letter-spacing: 8px;
  text-transform: uppercase;
  margin-bottom: 30px;
}

.weather-display-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 50px;
}

.weather-temp {
  font-size: 160px;
  font-weight: 200;
  color: var(--text);
  line-height: 1;
  letter-spacing: -4px;
}

.weather-icon-wrapper {
  width: 120px;
  height: 120px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.icon-sun {
  width: 60px;
  height: 60px;
  background: #f59e0b;
  border-radius: 50%;
  box-shadow: 0 0 35px rgba(245, 158, 11, 1.5);
  animation: spin-subtle 20s linear infinite;
}

.icon-cloud {
  width: 70px;
  height: 45px;
  background: #cbd5e1;
  border-radius: 25px;
  position: relative;
  animation: float-subtle 4s ease-in-out infinite;
}
.icon-cloud::before, .icon-cloud::after {
  content: '';
  position: absolute;
  background: #cbd5e1;
  border-radius: 50%;
}
.icon-cloud::before { width: 40px; height: 40px; top: -20px; left: 10px; }
.icon-cloud::after { width: 30px; height: 30px; top: -12px; right: 10px; }

.weather-conditie {
  font-size: 20px;
  color: var(--text-muted);
  font-weight: 500;
  letter-spacing: 3px;
  text-transform: uppercase;
  margin-top: 35px;
}

.ticker-bar {
  position: relative;
  z-index: 1;
  width: 100%;
  background: #ffffff;
  border-top: 1px solid var(--border);
  height: 65px;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.ticker-bar.uitgeschakeld { display: none !important; }

.ticker-label {
  background: var(--blue-dim);
  color: var(--blue);
  border-right: 1px solid var(--border);
  padding: 0 30px;
  height: 100%;
  display: flex;
  align-items: center;
  font-weight: 700;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 2px;
  white-space: nowrap;
  z-index: 2;
}

.ticker-content {
  display: flex;
  white-space: nowrap;
  padding-left: 100%;
  animation: ticker-move 30s linear infinite;
}

.ticker-text {
  color: var(--text-muted);
  font-size: 15px;
  font-weight: 500;
  padding-right: 60px;
  letter-spacing: 0.5px;
}

.popup-overlay {
  position: fixed;
  top: 0; left: 0; width: 100%; height: 100%;
  /* AANGEPAST: Lichtere, semi-transparante witte achtergrond */
  background: rgba(255, 255, 255, 0.85); 
  /* NIEUW: Voegt een modern "frosted glass" effect toe waardoor de gradient er zacht doorheen scheint */
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.popup-overlay.active { opacity: 1; pointer-events: auto; }

.popup-content {
  text-align: center;
  transform: scale(0.95) translateY(10px);
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  max-width: 750px;
  width: 85%;
  position: relative;
}

.popup-overlay.active .popup-content { transform: scale(1) translateY(0); }
.visitor-name { font-size: 72px; font-weight: 700; color: var(--text); line-height: 1.1; letter-spacing: -2px; margin-bottom: 10px; }
.visitor-company { font-size: 28px; color: var(--text-muted); font-weight: 400; letter-spacing: 1px; }

.popup-progress-bar {
  position: absolute;
  bottom: 0; left: 0; height: 3px; width: 100%;
  background: var(--blue);
  transform-origin: left;
  transform: scaleX(1);
}

/* ──────────────────────────────────────────────────────────────────────────
   4. SCHERM: OVERZICHTSLIJST BEZOEKERS & TOASTS (#lijst-scherm)
   ────────────────────────────────────────────────────────────────────────── */
#lijst-scherm {
  height: 100vh;
  display: flex;
  flex-direction: column;
  padding: 2.5rem 3rem;
  gap: 2rem;
  overflow: hidden;
  background: linear-gradient(180deg, #dcf1ff 0%, #ffffff 100%);
}

.lijst-header { display: flex; align-items: center; justify-content: space-between; }
.lijst-titel { font-family: 'Sora', sans-serif; font-weight: 600; font-size: 0.85rem; letter-spacing: 0.25em; text-transform: uppercase; color: var(--text); }
.lijst-datum, .klok { font-size: 0.85rem; color: var(--text-muted); font-weight: 500; }
.kolommen { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; flex: 1; overflow: hidden; }
.kolom-titel { font-size: 0.75rem; letter-spacing: 0.15em; text-transform: uppercase; color: var(--text-muted); font-weight: 700; margin-bottom: 1rem; display: flex; align-items: center; gap: 0.5rem; }
.kolom-titel::before { content: ''; width: 8px; height: 8px; border-radius: 50%; }
.kolom-verwacht .kolom-titel::before    { background: var(--blue); }
.kolom-aangekomen .kolom-titel::before { background: var(--green); }

/* AANGEPAST: max-height en padding toegevoegd voor veilige scrollfunctionaliteit */
.bezoeker-lijst { 
  display: flex; 
  flex-direction: column; 
  gap: 0.6rem; 
  overflow-y: auto; 
  max-height: 65vh;
  padding-right: 5px;
}

.bezoeker-kaart { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 1rem 1.25rem; display: flex; align-items: center; gap: 1rem; box-shadow: 0 1px 3px rgba(0,0,0,0.02); transition: all 0.2s; }
.kolom-verwacht .bezoeker-kaart    { border-left: 4px solid var(--blue); opacity: 0.7; background: #a6becc; }
.kolom-aangekomen .bezoeker-kaart { border-left: 4px solid var(--green); opacity: 0.7; background: #a6ccba; }

.bezoeker-initialen {
  width: 38px; height: 38px; border-radius: 50%;
  background: var(--blue-dim); color: var(--blue);
  display: flex; align-items: center; justify-content: center;
  font-family: 'Sora', sans-serif; font-weight: 700; font-size: 0.85rem; flex-shrink: 0;
}
.kolom-aangekomen .bezoeker-initialen { background: var(--green-dim); color: var(--green); }
.bezoeker-info { flex: 1; min-width: 0; }
.bezoeker-naam { font-family: 'Sora', sans-serif; font-weight: 600; font-size: 0.95rem; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bezoeker-tijd { font-size: 0.75rem; color: var(--text-muted); margin-top: 0.15rem; font-weight: 500; }
.leeg-melding { color: var(--text-muted); font-size: 0.85rem; padding: 1rem 0; font-style: italic; }
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--blue); display: inline-block; animation: blink 2s ease-in-out infinite; }

#toast-container { position: fixed; top: 1.5rem; right: 1.5rem; z-index: 1000; display: flex; flex-direction: column; gap: 0.75rem; width: 380px; max-width: 90vw; pointer-events: none; }
.toast-card {
  background: var(--surface-toast); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border); padding: 1.25rem; border-radius: 16px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05), 0 0 1px rgba(0, 0, 0, 0.1) inset;
  display: flex; align-items: center; gap: 1rem; position: relative; overflow: hidden;
  pointer-events: auto; transform: translateX(120%); opacity: 0;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease;
}
.toast-card.show { transform: translateX(0); opacity: 1; }
.toast-card.hide { transform: translateX(120%); opacity: 0; }
.toast-icon { width: 38px; height: 38px; border-radius: 10px; background: var(--green); color: #ffffff; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.toast-content { flex: 1; min-width: 0; }
.toast-header-text { display: flex; justify-content: space-between; align-items: center; font-size: 0.75rem; text-transform: uppercase; letter-spacing: 1px; color: var(--green); font-weight: 700; margin-bottom: 0.15rem; }
.toast-time-stamp { font-size: 0.7rem; color: var(--text-muted); text-transform: none; letter-spacing: 0; font-weight: 500; }
.toast-message { font-size: 1.05rem; font-weight: 700; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.toast-sub { font-size: 0.85rem; color: var(--text-muted); margin-top: 0.1rem; }
.toast-progress { position: absolute; bottom: 0; left: 0; height: 3px; background: var(--green); width: 100%; transform-origin: left; }

/* ──────────────────────────────────────────────────────────────────────────
   5. UNIFORME FORMULIEREN & STRUKTUREN (Aanmelden, Inloggen)
   ────────────────────────────────────────────────────────────────────────── */
body.form-page {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  padding: 20px;
  margin: 0;
  background: linear-gradient(180deg, #dcf1ff 0%, #ffffff 100%);
}

body.form-page .container {
  background: var(--surface);
  padding: 40px;
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04), 0 1px 3px rgba(0, 0, 0, 0.02);
  width: 100%;
  max-width: 460px;
  border: 1px solid var(--border);
  animation: fadeIn 0.5s ease-out;
  box-sizing: border-box;
}

body.form-page h2 {
  margin-top: 0;
  margin-bottom: 12px;
  color: var(--text);
  font-size: 24px;
  text-align: center;
  font-weight: 700;
  letter-spacing: -0.5px;
}

.subtitle {
  text-align: center;
  color: var(--text-muted);
  margin-bottom: 30px;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 600;
}

.form-group { margin-bottom: 20px; position: relative; }
.form-group label { display: block; margin-bottom: 6px; font-size: 13px; font-weight: 600; color: var(--subtle); }

.form-row, .row { 
  display: flex; 
  gap: 16px; 
  flex-wrap: nowrap;
  width: 100%;
}

.form-row .form-group, .row .form-group { 
  flex: 1; 
  min-width: 0;
}

input[type="datetime-local"] {
  font-size: 13px !important;
  padding-left: 10px !important;
  padding-right: 5px !important;
}

input[type="datetime-local"]::-webkit-calendar-picker-indicator {
  margin: 0;
  padding: 0;
  cursor: pointer;
}

/* Universele Invoer Velden (Lichte Mode) */
input {
  width: 100%;
  box-sizing: border-box;
  padding: 12px 14px;
  background-color: #ffffff;
  border: 1px solid var(--border-input);
  border-radius: 8px;
  font-size: 15px;
  color: var(--text);
  outline: none;
  font-family: inherit;
  transition: all 0.2s ease;
}

input:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.12);
  background-color: #ffffff;
}

input::placeholder { color: #94a3b8; }
input::-webkit-calendar-picker-indicator { filter: invert(0); cursor: pointer; }

/* Universele Knop */
button {
  width: 100%;
  background-color: var(--blue);
  color: #ffffff;
  border: none;
  padding: 14px;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.2s, transform 0.1s ease;
  margin-top: 10px;
  box-shadow: 0 2px 4px rgba(2, 132, 199, 0.1);
}
body.form-page button:hover { background-color: #026ca3; }
body.form-page button:active { transform: scale(0.98); }

/* Status & Notificatie Berichten */
#status, .message {
  margin-top: 20px;
  padding: 14px;
  border-radius: 8px;
  display: none;
  font-size: 14px;
  font-weight: 600;
  text-align: center;
  border: 1px solid transparent;
}
.message.success, .success { background-color: var(--green-dim); color: var(--green); border: 1px solid rgba(22, 163, 74, 0.2); }
.message.error, .error { background-color: #fee2e2; color: #dc2626; border: 1px solid rgba(220, 38, 38, 0.15); }
.loading { background: #f1f5f9; color: var(--text-muted); border-color: var(--border); }

/* Responsive aanpassingen */
@media (max-width: 480px) {
  body.form-page .container { padding: 24px; }
  .row, .form-row { flex-direction: column; gap: 0; }
}

/* ──────────────────────────────────────────────────────────────────────────
   6. UNIVERSELE NAVIGATIEKNOP RECHTSBOVEN (LIGHT MODE)
   ────────────────────────────────────────────────────────────────────────── */
.nav-knop-rechts {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--text-muted) !important; 
  text-decoration: none !important; 
  font-family: sans-serif;
  padding: 6px;
  width: 62px;
  height: 62px;
  border: 1px solid var(--border) !important;
  border-radius: 12px;
  background-color: var(--purple-dim) !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.nav-knop-rechts:hover {
  color: var(--blue) !important;
  border-color: var(--blue) !important;
  transform: scale(1.05);
  background-color: var(--blue-dim) !important;
}

.nav-knop-rechts svg {
  margin-bottom: 2px;
}

.nav-knop-rechts span {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.3px;
}