/* ─── Google Fonts ─────────────────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Josefin+Sans:wght@600;700&family=Nunito:wght@400;500;600;700;800&family=Roboto+Mono:wght@500&display=swap');
@import url('https://fonts.googleapis.com/icon?family=Material+Icons+Round');

/* ─── Reset ─────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

/* ─── Design tokens ─────────────────────────────────────────────── */
:root {
  /* Orange palette */
  --primary:          #FF7A45;
  --primary-dark:     #E05523;
  --primary-light:    #FFF0E8;
  --primary-gradient: linear-gradient(135deg, #FF9A5C 0%, #FF5A1C 100%);

  /* Background & surfaces */
  --bg:               #FFF4EF;
  --bg-gradient:      linear-gradient(to bottom, #FFF4EF 0%, #F5D9C8 100%);
  --surface:          #ffffff;
  --surface-raised:   #FAFAFA;

  /* Text */
  --text:             #1C1C1E;
  --text-2:           #6B6B6B;
  --text-3:           #AEAEB2;

  /* Semantic */
  --error:            #E53935;
  --error-light:      #FFEBEE;
  --success:          #34C759;
  --success-light:    #E8F5E9;
  --warning:          #FF9F0A;
  --warning-light:    #FFF8E8;

  /* Borders */
  --border:           rgba(0, 0, 0, 0.06);
  --border-med:       rgba(0, 0, 0, 0.12);

  /* Shadows */
  --shadow-sm:        0 2px 8px rgba(0, 0, 0, 0.06);
  --shadow-md:        0 4px 20px rgba(0, 0, 0, 0.08);
  --shadow-lg:        0 8px 32px rgba(0, 0, 0, 0.10);
  --shadow-primary:   0 8px 24px rgba(255, 122, 69, 0.32);

  /* Radius */
  --r-sm:   8px;
  --r-md:   14px;
  --r-lg:   20px;
  --r-xl:   28px;
  --r-full: 9999px;
}

/* ─── Base ───────────────────────────────────────────────────────── */
body {
  font-family: 'Nunito', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 14px;
  line-height: 1.5;
  background: linear-gradient(rgba(255,255,255,0.7), rgba(255,255,255,0.7)), url('../images/achtergrond_doodle.png') repeat;
  color: var(--text);
  min-height: 100vh;
  display: flex;
  justify-content: center;
  -webkit-font-smoothing: antialiased;
}

/* ─── Screen ─────────────────────────────────────────────────────── */
.screen {
  display: none;
  width: 100%;
  max-width: 480px;
  height: 100vh;
  background: transparent;
  position: relative;
  overflow: hidden;
}
.screen.active { display: flex; flex-direction: column; }

/* Fallback for browsers supporting dvh (dynamic viewport height) */
@supports (height: 100dvh) {
  .screen { height: 100dvh; }
}

body.landing-screen { background: linear-gradient(rgba(255,255,255,0.8), rgba(255,255,255,0.8)), url('../images/achtergrond_doodle.png') repeat; }

/* ─── Header notification badge ──────────────────────────────────── */
.header-notif-dot {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  height: 18px;
  border-radius: 100px;
  background: var(--error);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
  padding: 0 5px;
  margin-left: 6px;
  vertical-align: middle;
  transform: translate(-2px, -5px);
  flex-shrink: 0;
}

/* ─── Profile header ─────────────────────────────────────────────── */
.profile-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 14px;
}

/* Global persistent header — fixed boven alle schermen */
.global-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
  background: transparent;
  display: flex;
  justify-content: center;
}

.global-header-inner {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  max-width: 480px;
  padding: 16px 14px;
}

/* Schermen die onder de global header vallen */
.has-global-header {
  padding-top: 80px;
}


.avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--primary-gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
  letter-spacing: 0.5px;
  cursor: pointer;
  overflow: hidden;
  transition: opacity 0.15s, box-shadow 0.15s;
  box-shadow: var(--shadow-sm);
}
.avatar:hover { opacity: 0.88; box-shadow: 0 0 0 3px rgba(255,122,69,0.25); }

.profile-info { flex: 1; min-width: 0; }
.profile-name  { font-size: 16px; font-weight: 700; color: var(--text); line-height: 1.2; }
#dash-welcome-prefix {
  display: inline-flex;
  overflow: hidden;
  white-space: nowrap;
  vertical-align: baseline;
  max-width: 0;
  opacity: 0;
}
.profile-email { font-size: 12px; color: var(--text-2); margin-top: 2px; }

.icon-btn {
  width: 40px;
  height: 40px;
  border-radius: var(--r-full);
  border: none;
  background: var(--bg);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-2);
  transition: background 0.15s;
  flex-shrink: 0;
}
.icon-btn:hover { background: var(--primary-light); color: var(--primary); }
.icon-btn .material-icons-round { font-size: 22px; }

.logout-btn        { background: #EDE3D8; box-shadow: var(--shadow-sm); }
.logout-btn:hover  { background: #DFD0C1; color: var(--text-2); }
#admin-settings-btn        { background: #EDE3D8; box-shadow: var(--shadow-sm); transition: background 0.3s ease, color 0.3s ease; }
#admin-settings-btn:hover  { background: #DFD0C1; color: var(--text-2); }
#admin-settings-btn.active { background: var(--primary); color: #fff; box-shadow: var(--shadow-sm); }

/* ─── Sub-header (register / login / report screens) ────────────── */
.sub-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 8px;
  height: 56px;
  background: transparent;
  flex-shrink: 0;
}

.card-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 6px;
}

.back-btn {
  width: 40px;
  height: 40px;
  border-radius: var(--r-full);
  border: none;
  background: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-2);
  transition: background 0.15s;
}
.back-btn:hover { background: var(--primary-light); color: var(--primary); }
.back-btn .material-icons-round { font-size: 22px; }

.sub-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.2px;
}

/* ─── Landing screen ─────────────────────────────────────────────── */
.landing-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 20px 20px 0;
}

.landing-header-fixed {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 15;
  background: transparent;
  padding-bottom: 12px;
}

.has-landing-header {
  padding-top: 52px;
}

.logo-dots { display: flex; gap: 5px; align-items: center; }
.logo-dot-sm {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--primary);
  animation: pulse-logo-dot 2.2s ease-in-out infinite;
}
.logo-dot-sm.dim {
  background: #FFCBB5;
  animation-delay: 0.4s;
}
@keyframes pulse-logo-dot {
  0%, 100% { transform: scale(1);   opacity: 1; }
  50%       { transform: scale(1.4); opacity: 0.75; }
}
.app-name {
  font-size: 18px;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.3px;
}

/* ─── Hero slider ────────────────────────────────────────────────── */
.hero-slider-wrap {
  flex: 1;
  min-height: 0;
  padding: 12px 16px 0;
  display: flex;
  flex-direction: column;
}

.hero-card {
  background: var(--surface);
  border-radius: var(--r-xl);
  box-shadow: var(--shadow-md);
  overflow: hidden;
  flex: 1;
  min-height: 0;
  width: 100%;
  display: flex;
  flex-direction: column;
}

.hero-slides-track {
  flex: 1;
  min-height: 0;
  min-width: 0;
  display: flex;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform;
}

.hero-slide {
  width: 100%;
  min-width: 100%;
  flex: 0 0 100%;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-sizing: border-box;
}

.hero-illus {
  flex: 1;
  min-height: 0;
  background: linear-gradient(to bottom, #EDD0B8 0%, #B86030 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px 12px 12px;
}

.hero-illus svg {
  width: 100%;
  height: 100%;
  max-height: 220px;
}

.hero-text {
  padding: 16px 24px 20px;
  flex-shrink: 0;
  text-align: center;
  width: 100%;
  box-sizing: border-box;
}

.hero-title {
  font-size: 22px;
  font-weight: 800;
  color: var(--text);
  line-height: 1.25;
  margin: 0 0 8px;
  letter-spacing: -0.4px;
  word-break: break-word;
  overflow-wrap: break-word;
}

.hero-sub {
  font-size: 13px;
  color: var(--text-2);
  line-height: 1.6;
  margin: 0;
  word-break: break-word;
  overflow-wrap: break-word;
}

.hero-dots {
  display: flex;
  gap: 6px;
  padding: 14px 28px 22px;
  flex-shrink: 0;
  justify-content: center;
}

.dot-ind {
  width: 8px;
  height: 8px;
  border-radius: var(--r-full);
  background: var(--border-med);
  transition: all 0.25s;
  cursor: pointer;
}
.dot-ind.active {
  background: var(--primary);
  width: 22px;
}

/* ─── Landing actions ────────────────────────────────────────────── */
.landing-actions {
  padding: 20px 16px 32px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: auto;
}

/* ─── Buttons ────────────────────────────────────────────────────── */
.btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 0 24px;
  height: 52px;
  border-radius: var(--r-full);
  border: none;
  font-family: 'Nunito', sans-serif;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  text-align: center;
  transition: all 0.2s;
  letter-spacing: 0.1px;
  position: relative;
  overflow: hidden;
}

.btn.primary {
  background: var(--primary-gradient);
  color: #fff;
  box-shadow: var(--shadow-primary);
}
.btn.primary:hover  { opacity: 0.92; box-shadow: 0 10px 28px rgba(255,122,69,0.40); }
.btn.primary:active { opacity: 0.85; }
.btn.primary:disabled {
  background: var(--bg);
  color: var(--text-2);
  border: 1.5px solid var(--border-med);
  box-shadow: none;
  cursor: not-allowed;
  opacity: 1;
}

.btn.outline {
  background: var(--surface);
  color: var(--primary);
  border: 2px solid var(--primary-light);
  box-shadow: var(--shadow-sm);
}
.btn.outline:hover { background: var(--primary-light); }

.btn.ghost {
  background: var(--bg);
  color: var(--text-2);
  border: 1.5px solid var(--border-med);
}
.btn.ghost:hover { background: var(--border); }

.btn.danger {
  background: linear-gradient(135deg, #FF6B6B, #E53935);
  color: #fff;
  box-shadow: 0 8px 20px rgba(229,57,53,0.28);
}
.btn.danger:hover { opacity: 0.90; }

.btn.sm {
  height: 40px;
  font-size: 14px;
}

/* ─── Bottom action ──────────────────────────────────────────────── */
.bottom-action {
  padding: 12px 14px 28px;
  background: transparent;
  flex-shrink: 0;
}

.bottom-action .btn {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.10);
}
.bottom-action .btn.primary {
  box-shadow: var(--shadow-primary);
}
.bottom-action .btn.primary:disabled {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.10);
}

.btn-row {
  display: flex;
  gap: 10px;
}
.btn-row .btn { flex: 1; }

/* Push bottom-action to the bottom of the dashboard screen */
#screen-dashboard > .bottom-action { flex-shrink: 0; }

/* ─── Link button ────────────────────────────────────────────────── */
.link-btn {
  background: none;
  border: none;
  color: var(--primary);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  padding: 0;
  font-family: 'Nunito', sans-serif;
}
.link-btn:hover { text-decoration: underline; }

/* ─── Form elements ──────────────────────────────────────────────── */
.screen-content { padding: 20px 16px; flex: 1; overflow-y: auto; }
#screen-report .screen-content,
#screen-register .screen-content,
#screen-login .screen-content,
#screen-forgot .screen-content,
#screen-activate .screen-content { padding-top: 12px; }

#screen-report::before {
  content: '';
  position: fixed;
  top: 80px;
  left: 0;
  right: 0;
  max-width: 480px;
  margin: 0 auto;
  height: 32px;
  background: linear-gradient(to bottom, var(--bg) 0%, transparent 100%);
  pointer-events: none;
  z-index: 10;
}

.form-group { margin-bottom: 16px; }

label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-2);
  margin-bottom: 7px;
  letter-spacing: 0.2px;
}

input, select {
  width: 100%;
  padding: 13px 16px;
  border-radius: var(--r-md);
  border: 1.5px solid var(--border-med);
  background: var(--surface);
  color: var(--text);
  font-size: 15px;
  font-family: 'Nunito', sans-serif;
  font-weight: 500;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  -webkit-appearance: none;
}
input:focus, select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(255, 122, 69, 0.12);
}
#cars-form-panel input:not(:placeholder-shown):not(.plate-input),
#cars-edit-panel input:not(:placeholder-shown):not(.plate-input),
#screen-activate input:not(:placeholder-shown),
#adm-form-panel input:not(:placeholder-shown):not(.plate-input),
#screen-login input:not([type="email"]):not(:placeholder-shown),
#screen-register input:not([type="email"]):not(:placeholder-shown):not(.plate-input):not(#reg-pass) {
  border-color: var(--success);
  box-shadow: 0 0 0 3px rgba(52, 199, 89, 0.15);
}
/* E-mailvelden: alleen groene gloed bij een valide adres */
#screen-login input[type="email"]:not(:placeholder-shown):valid,
#screen-register input[type="email"]:not(:placeholder-shown):valid,
#screen-forgot input[type="email"]:not(:placeholder-shown):valid {
  border-color: var(--success);
  box-shadow: 0 0 0 3px rgba(52, 199, 89, 0.15);
}
#cars-form-panel input:not(:placeholder-shown):not(.plate-input):focus,
#cars-edit-panel input:not(:placeholder-shown):not(.plate-input):focus,
#screen-activate input:not(:placeholder-shown):focus,
#adm-form-panel input:not(:placeholder-shown):not(.plate-input):focus,
#screen-login input:not([type="email"]):not(:placeholder-shown):focus,
#screen-register input:not([type="email"]):not(:placeholder-shown):not(.plate-input):not(#reg-pass):focus {
  border-color: var(--success);
  box-shadow: 0 0 0 3px rgba(52, 199, 89, 0.22);
}
#screen-login input[type="email"]:not(:placeholder-shown):valid:focus,
#screen-register input[type="email"]:not(:placeholder-shown):valid:focus,
#screen-forgot input[type="email"]:not(:placeholder-shown):valid:focus {
  border-color: var(--success);
  box-shadow: 0 0 0 3px rgba(52, 199, 89, 0.22);
}
/* Kenteken-validatie: rood tijdens typen, groen als formaat klopt */
.plate-input.plate-invalid       { border-color: var(--error);   box-shadow: 0 0 0 3px rgba(229, 57, 53, 0.15); }
.plate-input.plate-invalid:focus  { border-color: var(--error);   box-shadow: 0 0 0 3px rgba(229, 57, 53, 0.22); }
.plate-input.plate-valid          { border-color: var(--success); box-shadow: 0 0 0 3px rgba(52, 199, 89, 0.15); }
.plate-input.plate-valid:focus    { border-color: var(--success); box-shadow: 0 0 0 3px rgba(52, 199, 89, 0.22); }

/* ─── Password visibility toggle ────────────────────────────────── */
.input-pw-wrap {
  position: relative;
}
.input-pw-wrap input {
  padding-right: 48px;
}
.pw-toggle-btn {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-3);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 4px;
  border-radius: var(--r-full);
  transition: color 0.15s;
  line-height: 1;
}
.input-pw-wrap input:not(:placeholder-shown) ~ .pw-toggle-btn { display: flex; }
.pw-toggle-btn:hover { color: var(--primary); }
.pw-toggle-btn .material-icons-round { font-size: 20px; }

.input-pw-wrap input:not(:placeholder-shown):not(#reg-pass) {
  border-color: var(--success);
  box-shadow: 0 0 0 3px rgba(52, 199, 89, 0.15);
}
.input-pw-wrap input:not(:placeholder-shown):not(#reg-pass):focus {
  border-color: var(--success);
  box-shadow: 0 0 0 3px rgba(52, 199, 89, 0.22);
}
/* reg-pass: groene gloed alleen als wachtwoord aan alle eisen voldoet */
#reg-pass.pw-valid {
  border-color: var(--success);
  box-shadow: 0 0 0 3px rgba(52, 199, 89, 0.15);
}
#reg-pass.pw-valid:focus {
  border-color: var(--success);
  box-shadow: 0 0 0 3px rgba(52, 199, 89, 0.22);
}

.plate-input {
  font-family: 'Roboto Mono', monospace;
  font-size: 22px;
  font-weight: 500;
  letter-spacing: 4px;
  text-transform: uppercase;
  text-align: center;
}

.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

.divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: 20px 0;
}

.section-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--text-3);
  margin-bottom: 12px;
}

.error-msg {
  color: var(--error);
  font-size: 13px;
  font-weight: 600;
  margin-top: -8px;
  margin-bottom: 8px;
  display: none;
}

.required-asterisk {
  color: var(--error);
  font-weight: 700;
  margin-left: 1px;
}

.required-note {
  font-size: 12px;
  color: var(--text-3);
  margin-top: 0;
  margin-bottom: 16px;
}

.alt-link {
  text-align: center;
  font-size: 13px;
  color: var(--text-2);
  margin-top: 16px;
  font-weight: 600;
}

/* ─── Car info card ──────────────────────────────────────────────── */
.car-info-card {
  background: var(--surface);
  border-radius: var(--r-lg);
  padding: 16px;
  margin: 16px 16px 12px;
  display: flex;
  align-items: center;
  gap: 14px;
  box-shadow: var(--shadow-sm);
  flex-shrink: 0;
}

.car-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: white;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.15s;
}
.car-avatar .material-icons-round { font-size: 24px; color: var(--primary); }
.car-avatar svg { width: 100%; height: 100%; display: block; }

.car-name  { font-size: 15px; font-weight: 700; color: var(--text); }
.car-plate {
  font-family: 'Roboto Mono', monospace;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 2px;
  color: var(--text-2);
  margin-top: 3px;
}

/* ─── Role badge ─────────────────────────────────────────────────── */
.role-badge {
  font-size: 11px;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: var(--r-full);
  white-space: nowrap;
  letter-spacing: 0.3px;
}
.role-badge.admin { background: #EDE7F6; color: #4527A0; }
.role-badge.user  { background: var(--primary-light); color: var(--primary-dark); }

/* ─── Dashboard content area ─────────────────────────────────────── */
.dashboard-card {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  margin: 8px 0 0;
  position: relative;
  overflow: hidden;
}

/* ─── Nav tabs ───────────────────────────────────────────────────── */
.nav-tabs {
  display: flex;
  background: var(--surface);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-sm);
  margin: 12px 14px 0;
  flex-shrink: 0;
  overflow: hidden;
  position: relative;
}

.nav-tabs::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: var(--indicator-left, 0);
  height: 3px;
  background: var(--primary);
  transition: left 0.3s cubic-bezier(0.4, 0, 0.2, 1), width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  width: var(--indicator-width, 0);
}

.nav-tab {
  flex: 1;
  text-align: center;
  padding: 14px 8px;
  font-size: 14px;
  font-weight: 700;
  color: var(--text-3);
  cursor: pointer;
  border-bottom: 3px solid transparent;
  transition: color 0.2s;
  user-select: none;
  letter-spacing: 0.1px;
}
.nav-tab:hover { color: var(--primary); }
.nav-tab.active { color: var(--primary); }

/* Sub-tabs inside admin panel: geen extra top-marge */
#tab-admin > .nav-tabs {
  margin-top: 12px;
}

.dot-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 17px;
  height: 17px;
  border-radius: 100px;
  background: var(--error);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  line-height: 1;
  padding: 0 4px;
  vertical-align: middle;
  margin-left: 5px;
}

/* ─── Tab content ────────────────────────────────────────────────── */
.tab-content {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  pointer-events: none;
  will-change: transform;
}
.tab-content.active {
  transform: translateX(0);
  pointer-events: auto;
}

/* Admin sub-tab viewport (clips the sliding sub-tabs) */
.admin-tab-viewport {
  flex: 1;
  min-height: 0;
  position: relative;
  overflow: hidden;
}

/* ─── Notification items ─────────────────────────────────────────── */
.notif-list-wrap { flex: 1; padding: 12px 14px; overflow-y: auto; }

.notif-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 14px 16px;
  background: var(--surface);
  border-radius: var(--r-md);
  margin-bottom: 10px;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(0, 0, 0, 0.10);
}

.notif-unread {
  border-left: 3px solid var(--primary);
}

.notif-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  background: white;
  box-shadow: var(--shadow-sm);
}

.notif-title { font-size: 14px; font-weight: 700; color: var(--text); margin-bottom: 4px; }
.notif-meta  { font-size: 12px; color: var(--text-2); margin-top: 0; margin-bottom: 4px; font-weight: 500; }
.notif-meta:last-of-type { margin-bottom: 0; }

.evaluate-btn {
  background: var(--primary-light);
  border: none;
  border-radius: var(--r-full);
  padding: 5px 14px;
  font-size: 12px;
  font-weight: 700;
  color: var(--primary);
  cursor: pointer;
  font-family: 'Nunito', sans-serif;
  transition: background 0.15s;
}
.evaluate-btn:hover { background: #FFE0D0; }
.notif-item .evaluate-btn { margin-left: auto; flex-shrink: 0; }

.verdict-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: var(--r-full);
}
.verdict-badge.correct   { background: var(--success-light); color: #1B5E20; }
.verdict-badge.incorrect { background: var(--error-light);   color: #B71C1C; }
.verdict-badge.pending   { background: var(--primary-light); color: var(--primary-dark); }
.notif-item .verdict-badge { margin-left: auto; }

/* ─── Empty state ────────────────────────────────────────────────── */
.empty-state {
  text-align: center;
  padding: 48px 24px;
  color: var(--text-2);
}
.empty-icon { margin-bottom: 16px; }
.empty-icon svg { width: 180px; height: auto; }

/* ─── Light selector ─────────────────────────────────────────────── */
.light-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px 8px;
  margin-bottom: 16px;
}

.light-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 0;
  border: none;
  background: none;
  cursor: pointer;
  font-family: 'Nunito', sans-serif;
}
.light-btn * { pointer-events: none; }

.light-circle {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 50%;
  overflow: hidden;
  background: white;
  border: 3px solid transparent;
  box-shadow: var(--shadow-sm);
  transition: border-color 0.15s, transform 0.15s;
}
.light-circle img { width: 100%; height: 100%; object-fit: cover; display: block; }
.light-btn:hover .light-circle,
.light-btn.selected .light-circle {
  border-color: var(--primary);
  transform: scale(1.06);
}
.light-btn.selected .light-circle {
  box-shadow: 0 0 0 2px var(--primary);
}

.light-label {
  font-size: 11px;
  font-weight: 700;
  text-align: center;
  color: var(--text);
  line-height: 1.2;
}

/* ─── Cards ──────────────────────────────────────────────────────── */
.card {
  background: var(--surface);
  border-radius: var(--r-lg);
  padding: 16px 20px;
  margin-bottom: 14px;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(0, 0, 0, 0.10);
}
.info-card { font-size: 14px; color: var(--text-2); line-height: 1.6; font-weight: 500; }

/* ─── Success screen ─────────────────────────────────────────────── */
.success-screen {
  text-align: center;
  padding: 48px 24px 32px;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.success-icon {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: var(--success-light);
  color: var(--success);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  box-shadow: 0 8px 24px rgba(52, 199, 89, 0.25);
}
.success-icon .material-icons-round { font-size: 40px; }

.success-title { font-size: 24px; font-weight: 800; margin-bottom: 10px; letter-spacing: -0.3px; }
.success-msg   { font-size: 14px; color: var(--text-2); line-height: 1.6; margin-bottom: 28px; font-weight: 500; }
.success-msg p { margin: 0 0 8px; }
.success-msg p:last-child { margin-bottom: 0; }
.reported-lights {
  list-style: none;
  margin: 0 0 8px;
  padding: 0;
  display: inline-block;
  text-align: left;
}
.reported-lights li::before { content: '– '; }

.success-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
}

/* ─── Evaluate modal ─────────────────────────────────────────────── */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  z-index: 1000;
  animation: overlayFadeIn 0.25s ease;
}
@keyframes overlayFadeIn {
  from { background: rgba(0, 0, 0, 0); }
  to   { background: rgba(0, 0, 0, 0.45); }
}

.modal-box {
  background: var(--surface);
  border-radius: var(--r-xl) var(--r-xl) 0 0;
  padding: 24px 20px 36px;
  width: 100%;
  max-width: 480px;
  box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.12);
  animation: slideUp 0.25s ease;
}
@keyframes slideUp {
  from { transform: translateY(100%); }
  to   { transform: translateY(0); }
}

.modal-box.closing {
  animation: slideDown 0.25s ease forwards;
}
.modal-overlay.closing {
  animation: overlayFadeOut 0.25s ease forwards;
}

@keyframes slideDown {
  from { transform: translateY(0); }
  to   { transform: translateY(100%); }
}
@keyframes overlayFadeOut {
  from { background: rgba(0, 0, 0, 0.45); }
  to   { background: rgba(0, 0, 0, 0); }
}

.modal-title  { font-size: 20px; font-weight: 800; margin-bottom: 4px; letter-spacing: -0.3px; }
.modal-sub    { font-size: 14px; color: var(--text-2); margin-bottom: 20px; font-weight: 500; }

.modal-choices { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 14px; }

.choice-btn {
  padding: 16px 12px;
  border-radius: var(--r-lg);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  font-family: 'Nunito', sans-serif;
  transition: all 0.15s;
  box-shadow: var(--shadow-sm);
  border: 2px solid transparent;
}
.choice-btn.correct   { background: var(--success-light); border-color: var(--success);   color: #1B5E20; }
.choice-btn.incorrect { background: var(--error-light);   border-color: var(--error);     color: #B71C1C; }
.choice-btn:hover     { box-shadow: var(--shadow-md); }

.choice-icon  { font-size: 28px; }
.choice-label { font-size: 15px; font-weight: 700; }
.choice-hint  { font-size: 11px; font-weight: 500; opacity: 0.7; text-align: center; }

.modal-cancel {
  width: 100%;
  padding: 14px;
  border-radius: var(--r-full);
  border: 1.5px solid var(--border-med);
  background: transparent;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  color: var(--text-2);
  font-family: 'Nunito', sans-serif;
}
.modal-cancel:hover { background: var(--bg); }

/* ─── Admin panel ────────────────────────────────────────────────── */
.admin-stats {
  display: flex;
  flex-wrap: nowrap;
  gap: 8px;
  margin-bottom: 14px;
  overflow-x: auto;
  padding-bottom: 2px;
}

.stat-card {
  flex: 1 0 0;
  min-width: 64px;
  background: var(--surface);
  border-radius: var(--r-md);
  padding: 12px 8px;
  box-shadow: var(--shadow-sm);
  text-align: center;
  cursor: pointer;
  border: 1.5px solid transparent;
  transition: border-color 0.15s, background 0.15s, box-shadow 0.15s;
  user-select: none;
}
.stat-card:hover { background: #FFE0CC; }
.stat-card.active {
  border-color: var(--primary);
  background: var(--primary-light);
  box-shadow: 0 0 0 3px rgba(255,122,69,0.15);
}
.stat-label { font-size: 10px; font-weight: 700; color: var(--text-3); margin: 0 0 6px; text-transform: uppercase; letter-spacing: 0.8px; white-space: nowrap; }
.stat-value { font-size: 24px; font-weight: 800; color: var(--text); margin: 0; }
.stat-value.warn  { color: var(--warning); }
.stat-value.good  { color: var(--success); }
.stat-value.bad   { color: var(--error); }
.stat-value.muted { color: var(--text-2); }

.admin-filter-row { margin-bottom: 12px; }
.admin-search-input { width: 100%; margin: 0; }

/* ─── Admin notification cards ───────────────────────────────────── */
.admin-notif-card {
  display: grid;
  grid-template-columns: 1fr auto;
  column-gap: 12px;
  background: var(--surface);
  border-radius: var(--r-md);
  padding: 14px 16px;
  margin-bottom: 8px;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(0, 0, 0, 0.10);
  border-left: 3px solid transparent;
}
.admin-notif-col {
  flex: 1;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  min-width: 0;
}
.admin-notif-info {
  display: flex;
  flex-direction: column;
  gap: 3px;
  flex: 1;
  min-width: 0;
}
.admin-notif-plate {
  font-family: 'Roboto Mono', monospace;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1px;
  color: var(--text);
}
.admin-notif-light {
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
}
.admin-notif-owner {
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
}
.admin-notif-car {
  font-size: 13px;
  color: var(--text-2);
  font-weight: 500;
}
.admin-notif-owner-corner {
  display: flex;
  align-items: flex-start;
  justify-content: flex-end;
}
.admin-notif-owner-wrap {
  position: relative;
  cursor: default;
}
.admin-notif-owner-wrap:hover .admin-notif-owner-popup { display: block; }
.admin-notif-owner-popup {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 200;
  background: var(--surface);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-md);
  padding: 8px 12px;
  white-space: nowrap;
}
.admin-notif-bottom {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding-top: 10px;
}
.admin-notif-reporter-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
  min-width: 0;
}
.admin-notif-reporter {
  font-size: 12px;
  color: var(--text-3);
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.admin-notif-right {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}
.admin-notif-date {
  font-size: 12px;
  color: var(--text-3);
}

/* ─── Account cards ──────────────────────────────────────────────── */
.account-card {
  background: var(--surface);
  border-radius: var(--r-md);
  padding: 14px 16px;
  margin-bottom: 10px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.account-card-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.account-avatar-wrap {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--primary-light);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  overflow: hidden;
  color: var(--primary);
  box-shadow: var(--shadow-sm);
}

.account-avatar-initials {
  font-size: 14px;
  font-weight: 700;
  color: var(--primary);
  line-height: 1;
}

.account-card-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.account-name {
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.account-email {
  font-size: 12px;
  color: var(--text-2);
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.account-cars {
  padding-left: 52px;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

@keyframes account-card-remove {
  0%   { opacity: 1; transform: scale(1);    max-height: var(--card-h); margin-bottom: 10px; }
  35%  { opacity: 0; transform: scale(0.97); max-height: var(--card-h); margin-bottom: 10px; }
  100% { opacity: 0; transform: scale(0.97); max-height: 0;             margin-bottom: 0;    padding: 0; }
}
.account-card.removing {
  overflow: hidden;
  pointer-events: none;
  animation: account-card-remove 0.4s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.account-car-block {
  background: var(--primary-light);
  border-radius: var(--r-sm);
  padding: 7px 10px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.account-car-main {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 10px;
}

.account-car-scores {
  display: flex;
  gap: 4px;
  margin-left: auto;
  flex-shrink: 0;
}

.car-score-dot { box-shadow: var(--shadow-sm); }

.account-car-footer {
  font-size: 11px;
  color: var(--text-3);
  font-weight: 500;
  text-align: right;
}

.account-car-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.account-car-item {
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
  line-height: 1.3;
}

.account-car-color {
  font-weight: 500;
  color: var(--text-2);
}

.account-car-plate-row {
  display: flex;
  align-items: center;
  gap: 4px;
}


.account-car-plate {
  font-family: 'Roboto Mono', monospace;
  font-size: 11px;
  font-weight: 500;
  color: var(--text-2);
  letter-spacing: 0.02em;
}

.account-card-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.account-score-wrap {
  display: flex;
  gap: 4px;
  align-items: center;
}

.account-card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding-left: 52px;
}

.account-card-date {
  font-size: 12px;
  color: var(--text-3);
}

.account-role-select {
  font-size: 12px;
  padding: 4px 8px;
  border-radius: 6px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  display: block;
  overflow-x: auto;
}
.admin-table th {
  text-align: left;
  padding: 10px 12px;
  background: var(--bg);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: var(--text-3);
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}
.admin-table td {
  padding: 12px;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
  color: var(--text);
  font-weight: 500;
}
.admin-row-unread { background: var(--warning-light); }
.admin-table tr:last-child td { border-bottom: none; }
.admin-table tbody tr:hover { background: var(--primary-light); }

.plate-pill {
  font-family: 'Roboto Mono', monospace;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 1.5px;
  background: var(--bg);
  border-radius: var(--r-sm);
  padding: 3px 8px;
  border: 1px solid var(--border);
}

.status-dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  vertical-align: middle;
}
.status-dot.read   { background: var(--success); }
.status-dot.unread { background: var(--error); }

/* ─── Score dots ─────────────────────────────────────────────────── */
.score-dot {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 26px;
  height: 26px;
  border-radius: var(--r-full);
  padding: 0 7px;
  font-size: 12px;
  font-weight: 700;
  flex-shrink: 0;
}
.score-dot.correct   { background: var(--success-light); color: #1B5E20; }
.score-dot.incorrect { background: var(--error-light);   color: #B71C1C; }
.score-dot.pending   { background: var(--warning-light); color: #7A4F00; }

.score-dot-wrap {
  position: relative;
  cursor: default;
}
.score-popup {
  min-width: 0;
  white-space: nowrap;
}

/* ─── Admin instellingen ─────────────────────────────────────────── */
.settings-section {
  background: var(--surface);
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  margin-bottom: 16px;
}
.settings-section-title {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-3);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 12px 16px 6px;
}
.settings-row {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 16px;
  border-top: 1px solid var(--border-light);
}
.settings-row-info { flex: 1; min-width: 0; }
.settings-row-label { display: block; font-size: 15px; font-weight: 600; color: var(--text); }
.settings-row-sub   { display: block; font-size: 12px; color: var(--text-2); margin-top: 3px; line-height: 1.4; }

/* Toggle switch */
.toggle-switch {
  position: relative;
  display: inline-block;
  width: 48px;
  height: 28px;
  flex-shrink: 0;
}
.toggle-switch input { opacity: 0; width: 0; height: 0; position: absolute; }
.toggle-slider {
  position: absolute;
  cursor: pointer;
  inset: 0;
  background: var(--border-med);
  border-radius: 14px;
  transition: background 0.2s;
}
.toggle-slider::before {
  content: '';
  position: absolute;
  width: 22px;
  height: 22px;
  left: 3px;
  top: 3px;
  background: white;
  border-radius: 50%;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s;
}
.toggle-switch input:checked + .toggle-slider { background: var(--primary); }
.toggle-switch input:checked + .toggle-slider::before { transform: translateX(20px); }
.toggle-switch input:disabled + .toggle-slider { opacity: 0.5; cursor: not-allowed; }

/* Broadcast textarea + urgency select + save */
.settings-broadcast {
  padding: 12px 16px 16px;
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.broadcast-input {
  width: 100%;
  font-family: inherit;
  font-size: 14px;
  color: var(--text);
  border: 1.5px solid var(--border-med);
  border-radius: var(--r-sm);
  padding: 10px 12px;
  resize: vertical;
  outline: none;
  background: var(--surface-raised);
  transition: border-color 0.15s;
  line-height: 1.5;
}
.broadcast-input:focus { border-color: var(--primary); }
.broadcast-input::placeholder { color: var(--text-3); }
.broadcast-urgency-select {
  width: 100%;
  font-family: inherit;
  font-size: 14px;
  color: var(--text);
  border: 1.5px solid var(--border-med);
  border-radius: var(--r-sm);
  padding: 10px 12px;
  outline: none;
  background: var(--surface-raised);
  transition: border-color 0.15s;
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%236B6B6B' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 36px;
}
.broadcast-urgency-select:focus { border-color: var(--primary); }

/* ─── Broadcast banner (under global header) ─────────────────────── */
.broadcast-banner {
  overflow: hidden;
  max-height: 0;
  /* padding i.p.v. margin op inner: shadow valt binnen de clipping rect en wordt niet weggeknipt */
  padding: 0 16px 0;
  transition: max-height 0.65s cubic-bezier(0.4, 0, 0.2, 1),
              padding    0.65s cubic-bezier(0.4, 0, 0.2, 1);
}
.broadcast-banner.visible {
  max-height: 300px;
  padding: 12px 16px 8px;
}
.broadcast-banner-inner {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 14px 16px;
  border-radius: var(--r-lg);
  background: #E8F1FF;
  box-shadow: var(--shadow-sm), 0 0 0 2px rgba(0, 122, 255, 0.22);
  transition: opacity 0.35s ease;
}
.broadcast-banner.dismissed .broadcast-banner-inner {
  opacity: 0;
  pointer-events: none;
}
.broadcast-banner-icon {
  font-size: 20px;
  color: #007AFF;
  flex-shrink: 0;
  margin-top: 1px;
}
.broadcast-banner-text {
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
  line-height: 1.5;
  white-space: pre-wrap;
  flex: 1;
}
.broadcast-banner-close {
  flex-shrink: 0;
  margin-left: 4px;
  margin-top: 1px;
  width: 28px;
  height: 28px;
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #555;
  transition: transform 0.15s, opacity 0.15s;
}
.broadcast-banner-close:hover {
  transform: scale(1.15);
  opacity: 0.8;
}
.broadcast-banner-close .material-icons-round {
  font-size: 22px;
  pointer-events: none;
}

/* Urgentie-varianten */
.broadcast-banner--notificatie .broadcast-banner-inner {
  background: #E8F1FF;
  box-shadow: var(--shadow-sm), 0 0 0 2px rgba(0, 122, 255, 0.22);
}
.broadcast-banner--notificatie .broadcast-banner-icon { color: #007AFF; }

.broadcast-banner--waarschuwing .broadcast-banner-inner {
  background: var(--error-light);
  box-shadow: var(--shadow-sm), 0 0 0 2px rgba(229, 57, 53, 0.25);
}
.broadcast-banner--waarschuwing .broadcast-banner-icon { color: var(--error); }

.broadcast-banner--succes .broadcast-banner-inner {
  background: var(--success-light);
  box-shadow: var(--shadow-sm), 0 0 0 2px rgba(52, 199, 89, 0.28);
}
.broadcast-banner--succes .broadcast-banner-icon { color: var(--success); }

/* ─── Logout success card ────────────────────────────────────────── */
.logout-success-card {
  overflow: hidden;
  max-height: 0;
  padding: 0 16px;
  transition: max-height 0.55s cubic-bezier(0.4, 0, 0.2, 1),
              padding    0.55s cubic-bezier(0.4, 0, 0.2, 1);
}
.logout-success-card.visible {
  max-height: 100px;
  padding: 12px 16px 12px;
}
.logout-success-inner {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 13px 16px;
  background: var(--success-light);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-sm), 0 0 0 2px rgba(52, 199, 89, 0.28);
}
.logout-success-icon {
  font-size: 20px;
  color: var(--success);
  flex-shrink: 0;
}
.logout-success-text {
  font-size: 14px;
  font-weight: 600;
  color: #1B5E20;
  margin: 0;
}

/* ─── Delete button ──────────────────────────────────────────────── */
.delete-btn:hover { background: var(--error-light) !important; color: var(--error) !important; }

/* ─── Info button + popup ────────────────────────────────────────── */
.info-btn { position: relative; }
.info-popup {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 200;
  background: var(--surface);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-md);
  padding: 10px 14px;
  min-width: 210px;
  pointer-events: none;
  text-align: left;
}
.info-btn:hover .info-popup,
.score-dot-wrap:hover .info-popup { display: block; }
.info-popup-item {
  display: flex;
  flex-direction: column;
  gap: 1px;
  padding: 5px 0;
}
.info-popup-item + .info-popup-item { border-top: 1px solid var(--border-light); }
.info-popup-label { font-size: 13px; font-weight: 700; color: var(--text); }
.info-popup-value { font-size: 12px; font-weight: 500; color: var(--text-2); }

/* ─── Inline success message ─────────────────────────────────────── */
.success-msg-inline {
  font-size: 13px;
  color: #1B5E20;
  background: var(--success-light);
  border-radius: var(--r-md);
  padding: 10px 14px;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
}

/* ─── Admin content scroll area ──────────────────────────────────── */
.admin-scroll { flex: 1; overflow-y: auto; padding: 12px 14px; }

.admin-notifs-header {
  padding: 12px 14px 0;
  flex-shrink: 0;
  position: relative;
  z-index: 1;
}

.admin-notifs-header::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  height: 32px;
  background: linear-gradient(to bottom, var(--bg) 0%, transparent 100%);
  pointer-events: none;
  z-index: 1;
}

.admin-notifs-header .admin-filter-row {
  margin-bottom: 12px;
}

.admin-notifs-scroll {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 12px 14px;
}

/* ─── Admin form panel: vaste kaart met scrollende body ─────────── */
#adm-form-panel {
  overflow: hidden;
  display: flex;
  flex-direction: column;
  padding: 12px 14px;
}

.adm-form-card {
  flex: 1;
  min-height: 0;
  background: var(--surface);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.adm-form-header {
  flex-shrink: 0;
  padding: 18px 20px 10px;
  background: var(--surface);
  position: relative;
  z-index: 2;
}

.adm-form-header::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  height: 20px;
  background: linear-gradient(to bottom, var(--surface), transparent);
  pointer-events: none;
  z-index: 2;
}

.adm-form-body {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 8px 20px 20px;
}

/* ─── Admin accounts tab layout ─────────────────────────────────── */
.accounts-action-bar {
  padding: 12px 14px 0;
  flex-shrink: 0;
}

.accounts-form-wrap {
  padding: 10px 14px 0;
  flex-shrink: 0;
  max-height: 50vh;
  overflow-y: auto;
  animation: slideDownFadeIn 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.accounts-search-wrap {
  padding: 10px 14px 12px;
  flex-shrink: 0;
  position: relative;
  z-index: 1;
}

.accounts-search-wrap input { margin: 0; }

.accounts-search-wrap::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  height: 32px;
  background: linear-gradient(to bottom, var(--bg) 0%, transparent 100%);
  pointer-events: none;
  z-index: 1;
}

.accounts-scroll {
  flex: 1;
  overflow-y: auto;
  padding: 10px 14px 12px;
}

/* ─── Unknown plate warning ──────────────────────────────────────── */

/* ─── Generieke slide-panel viewport ─────────────────────────────── */
.panel-viewport,
.cars-viewport {
  flex: 1;
  position: relative;
  overflow: hidden;
  min-height: 0;
}

.slide-panel,
.cars-panel {
  position: absolute;
  inset: 0;
  overflow-y: auto;
  transform: translateX(100%);
  will-change: transform;
}

.slide-panel.active,
.cars-panel.active {
  transform: translateX(0);
}

#adm-list-panel {
  display: flex;
  flex-direction: column;
}

/* ─── Cars scroll area ───────────────────────────────────────────── */
.cars-scroll { padding: 12px 14px; }

.car-card-wrap {
  margin-bottom: 10px;
}

.car-card {
  background: var(--surface);
  border-radius: var(--r-md);
  padding: 14px 16px;
  display: flex;
  align-items: center;
  gap: 14px;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(0, 0, 0, 0.10);
}

.car-card-wrap.editing .car-card {
  border-radius: var(--r-md) var(--r-md) 0 0;
  box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.06);
}

.car-edit-form {
  background: var(--primary-light);
  border-radius: 0 0 var(--r-md) var(--r-md);
  padding: 14px 16px 16px;
  border-top: 1.5px solid rgba(255, 122, 69, 0.15);
  box-shadow: var(--shadow-sm);
  animation: slideDownFadeIn 0.45s cubic-bezier(0.4, 0, 0.2, 1);
}

.car-card-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: white;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.car-card-icon .material-icons-round { font-size: 22px; color: var(--primary); }
.car-card-icon svg { width: 100%; height: 100%; display: block; }

.car-avatar-edit-section {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}
.car-avatar-edit-preview {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: white;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  overflow: hidden;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: opacity 0.15s;
}
.car-avatar-edit-preview:hover { opacity: 0.8; }
.car-avatar-edit-preview .material-icons-round { font-size: 30px; color: var(--primary); }
.car-avatar-edit-preview svg { width: 100%; height: 100%; display: block; }

.car-card-name  { font-size: 14px; font-weight: 700; color: var(--text); }
.car-card-plate {
  font-family: 'Roboto Mono', monospace;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 2px;
  color: var(--text-2);
  margin-top: 3px;
}

.empty-cars-hint {
  text-align: center;
  font-size: 14px;
  color: var(--text-2);
  font-weight: 500;
  padding: 28px 0 12px;
}

/* ─── Add car section ────────────────────────────────────────────── */
.add-car-section { padding: 0 0 8px; }

.btn .material-icons-round { line-height: 1; }

/* ─── Car delete animation ───────────────────────────────────────── */
@keyframes car-card-remove {
  0%   { opacity: 1; max-height: var(--card-h); margin-bottom: 10px; }
  40%  { opacity: 0; max-height: var(--card-h); margin-bottom: 10px; }
  100% { opacity: 0; max-height: 0;             margin-bottom: 0; }
}

.car-card-wrap.removing {
  overflow: hidden;
  pointer-events: none;
  animation: car-card-remove 0.4s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

/* ─── New car entry animation ────────────────────────────────────── */
@keyframes car-entry {
  from { opacity: 0; transform: translateY(50px); }
  to   { opacity: 1; transform: translateY(0); }
}

.car-card-wrap.car-new {
  animation: car-entry 0.45s cubic-bezier(0.4, 0, 0.2, 1) 0.22s both;
}

@keyframes slideDownFadeIn {
  from {
    opacity: 0;
    transform: translateY(-14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideUpFadeOut {
  from {
    opacity: 1;
    transform: translateY(0);
  }
  to {
    opacity: 0;
    transform: translateY(-14px);
  }
}

.car-edit-form.closing {
  animation: slideUpFadeOut 0.35s cubic-bezier(0.4, 0, 0.2, 1) forwards;
  pointer-events: none;
}

/* ─── Avatar modal ───────────────────────────────────────────────── */
.avatar-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 16px;
}

.avatar-option {
  aspect-ratio: 1;
  border-radius: 50%;
  cursor: pointer;
  border: 3px solid transparent;
  overflow: hidden;
  background: white;
  transition: border-color 0.15s, transform 0.15s;
  box-shadow: var(--shadow-sm);
}
.avatar-option:hover,
.avatar-option.selected {
  border-color: var(--primary);
  transform: scale(1.06);
}
.avatar-option.selected {
  box-shadow: 0 0 0 2px var(--primary);
}
.avatar-option svg,
.avatar-option img { width: 100%; height: 100%; display: block; object-fit: contain; }
.avatar-option > div { width: 100%; height: 100%; }

.upload-avatar-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 13px;
  border-radius: var(--r-full);
  border: 1.5px dashed var(--border-med);
  background: var(--bg);
  color: var(--text-2);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  font-family: 'Nunito', sans-serif;
  margin-bottom: 12px;
  transition: all 0.15s;
}
.upload-avatar-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: var(--primary-light);
}
.upload-avatar-btn .material-icons-round { font-size: 20px; }

/* ─── Crop modal zoom slider ─────────────────────────────────── */
.crop-zoom-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 10px 0 2px;
}
.crop-zoom-row input[type="range"] {
  flex: 1;
  accent-color: var(--primary);
  height: 4px;
  cursor: pointer;
}

/* ─── E-mail verificatie scherm ─────────────────────────────── */
.verify-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 32px 24px;
}

.verify-icon {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--primary-light);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}
.verify-icon .material-icons-round {
  font-size: 36px;
  color: var(--primary);
}

.verify-heading {
  margin: 0 0 8px;
  font-size: 22px;
  font-weight: 700;
  color: var(--text);
}

.verify-sub {
  margin: 0 0 28px;
  font-size: 14px;
  color: var(--text-2);
  line-height: 1.5;
}

.verify-code-group {
  width: 100%;
  max-width: 220px;
  margin-bottom: 8px;
}

.verify-code-input {
  font-family: 'Roboto Mono', monospace !important;
  font-size: 28px !important;
  font-weight: 600 !important;
  letter-spacing: 10px !important;
  text-align: center !important;
  padding: 14px 16px !important;
}

.verify-timer-wrap {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 12px;
  margin-bottom: 8px;
  color: var(--text-3);
  font-size: 13px;
  font-weight: 600;
}

.verify-timer-text {
  color: var(--text-2);
}

.verify-resend-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  margin-top: 12px;
}

.verify-resend-msg {
  margin: 0;
  font-size: 13px;
  color: var(--text-2);
  font-weight: 600;
}

/* ─── Verificatie succes scherm ─────────────────────────────────── */
.verify-success-wrap {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 32px;
  text-align: center;
  animation: vsuccess-fade-in 0.55s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

@keyframes vsuccess-fade-in {
  from { opacity: 0; transform: translateY(24px) scale(0.95); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

.verify-success-badge {
  width: 104px;
  height: 104px;
  margin-bottom: 28px;
}

.verify-checkmark-svg {
  width: 100%;
  height: 100%;
  overflow: visible;
}

/* Cirkel: omtrek = 2π × 24 ≈ 150.8 → afgerond op 152 */
.checkmark-circle {
  stroke: var(--success);
  fill: var(--success-light);
  stroke-dasharray: 152;
  stroke-dashoffset: 152;
  transform-origin: 26px 26px;
  transform: rotate(-90deg);
  animation: draw-circle 0.6s cubic-bezier(0.65, 0, 0.45, 1) 0.25s forwards;
}

@keyframes draw-circle {
  to { stroke-dashoffset: 0; }
}

/* Checkmark: padlengte ≈ 33.5 → afgerond op 36 */
.checkmark-path {
  stroke: var(--success);
  fill: none;
  stroke-dasharray: 36;
  stroke-dashoffset: 36;
  animation: draw-check 0.38s cubic-bezier(0.65, 0, 0.45, 1) 0.8s forwards;
}

@keyframes draw-check {
  to { stroke-dashoffset: 0; }
}

.verify-success-title {
  font-size: 22px;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 10px;
  letter-spacing: -0.3px;
}

.verify-success-text {
  font-size: 14px;
  color: var(--text-2);
  line-height: 1.65;
  font-weight: 500;
  max-width: 270px;
}

/* ─── Verificatie succes → dashboard overgang ────────────────── */
#screen-verify-success.leaving {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 480px;
  height: 100dvh;
  z-index: 100;
  display: flex !important;
  pointer-events: none;
  animation: verify-screen-out 1s cubic-bezier(0.4, 0, 1, 1) forwards;
}

#screen-verify-success.leaving .verify-success-wrap {
  animation: verify-content-out 1s cubic-bezier(0.4, 0, 1, 1) forwards;
}

@keyframes verify-screen-out {
  from { opacity: 1; }
  to   { opacity: 0; }
}

@keyframes verify-content-out {
  from { filter: blur(0px);  opacity: 1; }
  to   { filter: blur(24px); opacity: 0; }
}

/* ─── Reset wachtwoord succes → login overgang ───────────────── */
#screen-reset-success.leaving {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 480px;
  height: 100dvh;
  z-index: 100;
  display: flex !important;
  pointer-events: none;
  animation: verify-screen-out 1s cubic-bezier(0.4, 0, 1, 1) forwards;
}

#screen-reset-success.leaving .verify-success-wrap {
  animation: verify-content-out 1s cubic-bezier(0.4, 0, 1, 1) forwards;
}

/* ─── Verstuurde-mail bevestigingskaart ─────────────────────── */
.sent-card {
  background: var(--success-light);
  color: #1B5E20;
  line-height: 1.6;
  font-size: 14px;
  font-weight: 500;
  text-align: center;
}

#screen-dashboard.entering {
  animation: dashboard-enter 1s ease forwards;
}

@keyframes dashboard-enter {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* ─── Onderhoudspagina ───────────────────────────────────────── */
.maintenance-wrap {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0 32px;
  gap: 16px;
}

.maintenance-icon {
  font-size: 56px;
  color: var(--primary);
  opacity: 0.85;
}

.maintenance-title {
  font-size: 22px;
  font-weight: 700;
  color: var(--text);
}

.maintenance-text {
  font-size: 15px;
  color: var(--text-2);
  line-height: 1.6;
  max-width: 280px;
}
