/* ═══════════════════════════════════════════════════
   BenzinHont — Stylesheet
   ═══════════════════════════════════════════════════ */

/* ── Variabelen ─────────────────────────────────── */
:root {
  --primary:        #e8541a;
  --primary-dark:   #c4420f;
  --primary-light:  #ff7043;
  --primary-bg:     #fff3ee;

  --bg:             #f4f6f9;
  --card:           #ffffff;
  --text:           #111827;
  --muted:          #6b7280;
  --border:         #e5e7eb;
  --danger:         #dc2626;
  --danger-bg:      #fee2e2;
  --success:        #16a34a;
  --success-bg:     #dcfce7;
  --warning:        #d97706;
  --warning-bg:     #fef3c7;

  --radius:         12px;
  --radius-sm:      8px;
  --shadow:         0 1px 3px rgba(0,0,0,.10), 0 1px 2px rgba(0,0,0,.06);
  --shadow-md:      0 4px 6px rgba(0,0,0,.07), 0 2px 4px rgba(0,0,0,.06);

  --header-h:       56px;
  --nav-h:          64px;
  --safe-top:       env(safe-area-inset-top, 0px);
  --safe-bottom:    env(safe-area-inset-bottom, 0px);
}

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

html, body {
  height: 100%;
  overscroll-behavior: none;
}

body {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  color: var(--text);
  background: var(--bg);
  -webkit-tap-highlight-color: transparent;
  -webkit-font-smoothing: antialiased;
}

/* ── Utilities ──────────────────────────────────── */
.hidden { display: none !important; }

.material-symbols-outlined {
  font-size: 24px;
  user-select: none;
  vertical-align: middle;
  font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
}

/* ═══════════════════════════════════════════════════
   LOGIN SCHERM
   ═══════════════════════════════════════════════════ */
#screen-login {
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(160deg, #fff3ee 0%, #f4f6f9 60%);
  padding: 24px;
}

.login-card {
  background: var(--card);
  border-radius: 20px;
  box-shadow: var(--shadow-md);
  padding: 36px 28px;
  width: 100%;
  max-width: 360px;
}

.login-logo {
  text-align: center;
  margin-bottom: 28px;
}

.login-logo .logo-icon {
  font-size: 56px;
  display: block;
  margin-bottom: 8px;
}

.login-logo h1 {
  font-size: 26px;
  font-weight: 700;
  color: var(--primary);
  letter-spacing: -0.5px;
}

.login-logo p {
  font-size: 14px;
  color: var(--muted);
  margin-top: 4px;
}

/* ── Formulier ──────────────────────────────────── */
.form-group {
  margin-bottom: 16px;
}

.form-group label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .5px;
  margin-bottom: 6px;
}

.form-control {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 16px;
  color: var(--text);
  background: var(--bg);
  transition: border-color .15s, box-shadow .15s;
  outline: none;
  appearance: none;
}

.form-control:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(232,84,26,.15);
  background: #fff;
}

.form-control::placeholder { color: #aab0bb; }

/* ── Knoppen ────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 20px;
  border: none;
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: background .15s, transform .1s, opacity .15s;
  text-decoration: none;
  line-height: 1;
  white-space: nowrap;
}

.btn:active { transform: scale(.97); }
.btn:disabled { opacity: .55; pointer-events: none; }

.btn-primary {
  background: var(--primary);
  color: #fff;
  width: 100%;
}
.btn-primary:hover { background: var(--primary-dark); }

.btn-ghost {
  background: transparent;
  color: var(--primary);
}
.btn-ghost:hover { background: var(--primary-bg); }

.btn-danger {
  background: transparent;
  color: var(--danger);
  border: 1.5px solid var(--danger);
  padding: 9px 14px;
  font-size: 13px;
}
.btn-danger:hover { background: var(--danger-bg); }

.btn-icon {
  padding: 8px;
  background: transparent;
  color: var(--muted);
  border: none;
  border-radius: 50%;
  min-width: 36px;
  min-height: 36px;
}
.btn-icon:hover { background: var(--bg); color: var(--text); }

/* ── Alert / foutmelding ────────────────────────── */
.alert {
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 16px;
}
.alert-error   { background: var(--danger-bg);  color: var(--danger);  }
.alert-success { background: var(--success-bg); color: var(--success); }
.alert-warning { background: var(--warning-bg); color: var(--warning); }

/* ═══════════════════════════════════════════════════
   APP SHELL
   ═══════════════════════════════════════════════════ */
#app {
  display: flex;
  flex-direction: column;
  height: 100dvh;
  overflow: hidden;
}

/* ── Header ─────────────────────────────────────── */
.app-header {
  height: calc(var(--header-h) + var(--safe-top));
  padding-top: var(--safe-top);
  background: var(--card);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  padding-left: 16px;
  padding-right: 8px;
  gap: 12px;
  flex-shrink: 0;
  box-shadow: var(--shadow);
  z-index: 10;
}

.app-header .header-title {
  flex: 1;
  font-size: 18px;
  font-weight: 700;
  color: var(--primary);
  letter-spacing: -0.3px;
}

.header-user {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--primary-bg);
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  color: var(--primary-dark);
  cursor: pointer;
  border: none;
}

/* ── Hoofd content ──────────────────────────────── */
.app-main {
  flex: 1;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
}

/* ── Bottom nav ─────────────────────────────────── */
.app-nav {
  height: calc(var(--nav-h) + var(--safe-bottom));
  padding-bottom: var(--safe-bottom);
  background: var(--card);
  border-top: 1px solid var(--border);
  display: flex;
  flex-shrink: 0;
  z-index: 10;
}

.nav-btn {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  border: none;
  background: transparent;
  cursor: pointer;
  color: var(--muted);
  font-family: inherit;
  font-size: 11px;
  font-weight: 500;
  padding: 8px 4px;
  transition: color .15s;
  position: relative;
}

.nav-btn .material-symbols-outlined {
  font-size: 22px;
  transition: font-variation-settings .15s;
}

.nav-btn.active {
  color: var(--primary);
}

.nav-btn.active .material-symbols-outlined {
  font-variation-settings: 'FILL' 1, 'wght' 400, 'GRAD' 0, 'opsz' 24;
}

/* ── ADD knop midden ────────────────────────────── */
.nav-btn.nav-add {
  flex: 1.3;
}

.nav-btn.nav-add .nav-add-circle {
  width: 48px;
  height: 48px;
  background: var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(232,84,26,.4);
  transition: background .15s, transform .1s;
  margin-bottom: 2px;
}

.nav-btn.nav-add .nav-add-circle .material-symbols-outlined {
  font-size: 26px;
  color: #fff;
}

.nav-btn.nav-add:active .nav-add-circle { transform: scale(.92); }

/* ── Scherm containers ──────────────────────────── */
.screen {
  display: none;
  padding: 16px;
  min-height: 100%;
}
.screen.active { display: block; }

/* ═══════════════════════════════════════════════════
   KAARTJES
   ═══════════════════════════════════════════════════ */
.card {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 20px;
  margin-bottom: 12px;
}

.card-title {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .6px;
  color: var(--muted);
  margin-bottom: 14px;
}

/* ── Stat kaartjes (2 naast elkaar) ─────────────── */
.stats-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 12px;
}

.stat-card {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 16px;
  text-align: center;
}

.stat-card.highlight {
  background: var(--primary);
  color: #fff;
}

.stat-card.highlight .stat-label,
.stat-card.highlight .stat-sublabel {
  color: rgba(255,255,255,.75);
}

.stat-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .4px;
  margin-bottom: 6px;
}

.stat-value {
  font-size: 26px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.5px;
  color: var(--text);
}

.stat-card.highlight .stat-value { color: #fff; }

.stat-sublabel {
  font-size: 11px;
  color: var(--muted);
  margin-top: 4px;
}

/* ── Compensatie banner ─────────────────────────── */
.compensation-banner {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: #fff;
  border-radius: var(--radius);
  padding: 18px 20px;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 14px;
}

.compensation-banner.quitte {
  background: linear-gradient(135deg, var(--success) 0%, #14532d 100%);
}

.compensation-icon {
  font-size: 36px;
  line-height: 1;
}

.compensation-text h3 {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 2px;
}

.compensation-text p {
  font-size: 13px;
  opacity: .85;
}

/* ═══════════════════════════════════════════════════
   HOME SCHERM
   ═══════════════════════════════════════════════════ */
.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.section-header h2 {
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
}

.see-all {
  font-size: 13px;
  font-weight: 600;
  color: var(--primary);
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px 0;
}

/* ── Rit item ────────────────────────────────────── */
.trip-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
}

.trip-item:last-child { border-bottom: none; }

.trip-icon {
  width: 38px;
  height: 38px;
  background: var(--primary-bg);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--primary);
}

.trip-icon .material-symbols-outlined { font-size: 20px; }

.trip-info { flex: 1; min-width: 0; }

.trip-route {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.trip-meta {
  font-size: 12px;
  color: var(--muted);
  margin-top: 2px;
}

.trip-cost {
  font-size: 15px;
  font-weight: 700;
  color: var(--primary);
  white-space: nowrap;
  flex-shrink: 0;
}

.trip-actions {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
}

/* Lege staat */
.empty-state {
  text-align: center;
  padding: 40px 20px;
  color: var(--muted);
}

.empty-state .empty-icon {
  font-size: 48px;
  margin-bottom: 12px;
  opacity: .5;
}

.empty-state h3 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--text);
}

.empty-state p {
  font-size: 14px;
}

/* ═══════════════════════════════════════════════════
   RIT TOEVOEGEN
   ═══════════════════════════════════════════════════ */
/* Autocomplete */
.autocomplete-wrapper {
  position: relative;
}

.autocomplete-dropdown {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  background: var(--card);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-md);
  z-index: 100;
  max-height: 220px;
  overflow-y: auto;
}

.autocomplete-item {
  padding: 11px 14px;
  cursor: pointer;
  font-size: 14px;
  color: var(--text);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.autocomplete-item:last-child { border-bottom: none; }
.autocomplete-item:hover, .autocomplete-item.focused {
  background: var(--primary-bg);
}

.autocomplete-item .material-symbols-outlined {
  font-size: 16px;
  color: var(--muted);
  flex-shrink: 0;
  margin-top: 1px;
}

.autocomplete-item-text {
  flex: 1;
  min-width: 0;
}

.autocomplete-name {
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.autocomplete-detail {
  font-size: 12px;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.autocomplete-loading {
  padding: 12px 14px;
  color: var(--muted);
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* ── Route preview kaartje ─────────────────────── */
.route-preview {
  background: var(--primary-bg);
  border: 1.5px solid rgba(232,84,26,.2);
  border-radius: var(--radius);
  padding: 16px;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 16px;
}

.route-preview .route-icon {
  color: var(--primary);
  font-size: 32px;
}

.route-stats {
  display: flex;
  gap: 24px;
}

.route-stat-val {
  font-size: 22px;
  font-weight: 700;
  color: var(--primary);
  line-height: 1;
}

.route-stat-lbl {
  font-size: 11px;
  color: var(--muted);
  margin-top: 2px;
  font-weight: 600;
  text-transform: uppercase;
}

/* ── Loading spinner ────────────────────────────── */
.spinner {
  display: inline-block;
  width: 18px;
  height: 18px;
  border: 2.5px solid rgba(232,84,26,.2);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin .7s linear infinite;
  flex-shrink: 0;
}

@keyframes spin { to { transform: rotate(360deg); } }

/* ── Formulier divider ──────────────────────────── */
.form-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px 0;
  color: var(--muted);
}

.form-divider .material-symbols-outlined {
  font-size: 20px;
}

/* ═══════════════════════════════════════════════════
   MAAND SCHERM
   ═══════════════════════════════════════════════════ */
.month-picker {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 12px 8px;
  margin-bottom: 12px;
}

.month-label {
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
  min-width: 140px;
  text-align: center;
}

/* Gebruiker vergelijking */
.user-compare {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 12px;
}

.user-card {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 16px;
  text-align: center;
}

.user-card.is-me {
  border: 2px solid var(--primary);
}

.user-avatar {
  width: 44px;
  height: 44px;
  background: var(--primary-bg);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 10px;
  font-size: 20px;
  color: var(--primary);
  font-weight: 700;
}

.user-name {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 8px;
}

.user-cost {
  font-size: 24px;
  font-weight: 700;
  color: var(--primary);
  line-height: 1;
}

.user-km {
  font-size: 12px;
  color: var(--muted);
  margin-top: 4px;
}

.user-trips {
  font-size: 12px;
  color: var(--muted);
}

/* ── Maand ritten lijst ─────────────────────────── */
.trips-list-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}

.trips-list-header h3 {
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
}

.badge {
  background: var(--primary-bg);
  color: var(--primary);
  font-size: 12px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 999px;
}

/* ═══════════════════════════════════════════════════
   INSTELLINGEN
   ═══════════════════════════════════════════════════ */
.settings-group {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  margin-bottom: 12px;
}

.settings-group-title {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .6px;
  color: var(--muted);
  padding: 14px 16px 8px;
}

.settings-item {
  display: flex;
  align-items: center;
  padding: 14px 16px;
  border-top: 1px solid var(--border);
  gap: 12px;
}

.settings-item:first-of-type { border-top: none; }

.settings-icon {
  width: 36px;
  height: 36px;
  background: var(--primary-bg);
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  flex-shrink: 0;
}

.settings-item-info { flex: 1; }

.settings-item-label {
  font-size: 15px;
  font-weight: 600;
}

.settings-item-desc {
  font-size: 12px;
  color: var(--muted);
  margin-top: 1px;
}

.settings-control {
  display: flex;
  align-items: center;
  gap: 6px;
}

.settings-input {
  width: 80px;
  text-align: right;
  padding: 8px 10px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  background: var(--bg);
  outline: none;
}

.settings-input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(232,84,26,.15);
  background: #fff;
}

.settings-unit {
  font-size: 13px;
  color: var(--muted);
  font-weight: 600;
  min-width: 40px;
}

/* ── Uitloggen knop ─────────────────────────────── */
.btn-logout {
  width: 100%;
  background: transparent;
  color: var(--danger);
  border: 1.5px solid var(--danger);
  padding: 13px;
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: background .15s;
  margin-top: 4px;
}

.btn-logout:hover { background: var(--danger-bg); }

/* ── App info ────────────────────────────────────── */
.app-info {
  text-align: center;
  padding: 20px;
  color: var(--muted);
  font-size: 12px;
}

/* ═══════════════════════════════════════════════════
   TOAST BERICHTEN
   ═══════════════════════════════════════════════════ */
#toast-container {
  position: fixed;
  bottom: calc(var(--nav-h) + var(--safe-bottom) + 12px);
  left: 50%;
  transform: translateX(-50%);
  z-index: 1000;
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: center;
  pointer-events: none;
}

.toast {
  background: var(--text);
  color: #fff;
  padding: 12px 18px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  box-shadow: var(--shadow-md);
  animation: toast-in .25s ease;
  pointer-events: none;
  white-space: nowrap;
}

.toast.success { background: var(--success); }
.toast.error   { background: var(--danger); }

@keyframes toast-in {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}

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

/* ═══════════════════════════════════════════════════
   LOADING OVERLAY
   ═══════════════════════════════════════════════════ */
.loading-overlay {
  position: fixed;
  inset: 0;
  background: rgba(255,255,255,.85);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 500;
}

.loading-overlay .spinner {
  width: 36px;
  height: 36px;
  border-width: 4px;
}

/* ═══════════════════════════════════════════════════
   PAGE GREETING
   ═══════════════════════════════════════════════════ */
.page-greeting {
  padding: 4px 0 16px;
}

.page-greeting h2 {
  font-size: 22px;
  font-weight: 700;
  line-height: 1.2;
}

.page-greeting .greeting-sub {
  font-size: 14px;
  color: var(--muted);
  margin-top: 3px;
}

/* ── Scrollbar ──────────────────────────────────── */
::-webkit-scrollbar       { width: 4px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 4px; }

/* ═══════════════════════════════════════════════════
   FLOATING ACTION BUTTON (altijd rechtsonder)
   ═══════════════════════════════════════════════════ */
.fab {
  position: fixed;
  bottom: calc(var(--nav-h) + var(--safe-bottom) + 14px);
  right: 18px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(232,84,26,.45);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 30;
  transition: background .15s, transform .12s, box-shadow .15s;
}
.fab:hover  { background: var(--primary-dark); box-shadow: 0 6px 18px rgba(232,84,26,.5); }
.fab:active { transform: scale(.92); }
.fab .material-symbols-outlined { font-size: 28px; }

/* ═══════════════════════════════════════════════════
   RETOUR TOGGLE
   ═══════════════════════════════════════════════════ */
.toggle-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
  margin-bottom: 4px;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.toggle-info {
  display: flex;
  align-items: center;
  gap: 10px;
}

.toggle-label {
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
}

.toggle-desc {
  font-size: 12px;
  color: var(--muted);
  margin-top: 1px;
}

/* iOS-stijl toggle switch */
.toggle-switch {
  position: relative;
  display: inline-block;
  width: 48px;
  height: 28px;
  flex-shrink: 0;
  cursor: pointer;
}

.toggle-switch input {
  opacity: 0;
  width: 0;
  height: 0;
  position: absolute;
}

.toggle-slider {
  position: absolute;
  inset: 0;
  background: #ccc;
  border-radius: 28px;
  transition: background .25s;
}

.toggle-slider::before {
  content: '';
  position: absolute;
  width: 22px;
  height: 22px;
  left: 3px;
  bottom: 3px;
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 1px 3px rgba(0,0,0,.2);
  transition: transform .25s;
}

.toggle-switch input:checked + .toggle-slider {
  background: var(--primary);
}

.toggle-switch input:checked + .toggle-slider::before {
  transform: translateX(20px);
}

/* ═══════════════════════════════════════════════════
   LIVE PRIJS BADGE
   ═══════════════════════════════════════════════════ */
.live-badge {
  display: inline-block;
  background: var(--success);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 999px;
  letter-spacing: .4px;
  margin-left: 6px;
  vertical-align: middle;
}

/* ═══════════════════════════════════════════════════
   TRIP ACTIE-KNOPPEN (3 icons per rit)
   ═══════════════════════════════════════════════════ */
.trip-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 13px 0;
  border-bottom: 1px solid var(--border);
}
.trip-item:last-child { border-bottom: none; }

.trip-icon {
  width: 36px;
  height: 36px;
  background: var(--primary-bg);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--primary);
}
.trip-icon .material-symbols-outlined { font-size: 18px; }

.trip-info {
  flex: 1;
  min-width: 0;
}

.trip-route {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.trip-meta {
  font-size: 12px;
  color: var(--muted);
  margin-top: 2px;
}

/* Drie compacte actie-knoppen */
.trip-actions {
  display: flex;
  gap: 2px;
  flex-shrink: 0;
}

.trip-action-btn {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  background: transparent;
  border-radius: 8px;
  cursor: pointer;
  color: var(--muted);
  transition: background .12s, color .12s;
  padding: 0;
}
.trip-action-btn .material-symbols-outlined { font-size: 17px; }
.trip-action-btn:hover   { background: var(--bg); color: var(--text); }
.trip-action-btn.edit:hover    { color: var(--primary); }
.trip-action-btn.dup:hover     { color: var(--success); }
.trip-action-btn.delete:hover  { color: var(--danger); }
