/* ============================================================
   GPS Tracker - Shared Design System (2026)
   ============================================================ */

/* ---------- Design Tokens ---------- */
:root {
  /* Color palette - Modern slate/blue */
  --bg-primary: #f8fafc;
  --bg-secondary: #ffffff;
  --bg-tertiary: #f1f5f9;
  --bg-dark: #0f172a;
  --bg-glass: rgba(255, 255, 255, 0.7);
  --bg-glass-dark: rgba(15, 23, 42, 0.7);

  --border-subtle: #e2e8f0;
  --border-default: #cbd5e1;
  --border-strong: #94a3b8;

  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-tertiary: #94a3b8;
  --text-inverse: #ffffff;

  /* Accent colors - Blue */
  --accent: #2563eb;       /* Blue 600 */
  --accent-hover: #1d4ed8; /* Blue 700 */
  --accent-soft: #eff6ff;  /* Blue 50 */
  --accent-soft-border: #bfdbfe; /* Blue 200 */
  --accent-strong: #1e40af; /* Blue 800 */

  --success: #10b981;
  --success-soft: #d1fae5;
  --success-soft-border: #6ee7b7;

  --warning: #f59e0b;
  --warning-soft: #fef3c7;
  --warning-soft-border: #fcd34d;

  --danger: #ef4444;
  --danger-soft: #fee2e2;
  --danger-soft-border: #fca5a5;

  --info: #0ea5e9;
  --info-soft: #e0f2fe;
  --info-soft-border: #7dd3fc;

  /* Shadows - soft and modern */
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.04);
  --shadow: 0 4px 6px -1px rgba(15, 23, 42, 0.06), 0 2px 4px -2px rgba(15, 23, 42, 0.04);
  --shadow-md: 0 10px 15px -3px rgba(15, 23, 42, 0.08), 0 4px 6px -4px rgba(15, 23, 42, 0.04);
  --shadow-lg: 0 20px 25px -5px rgba(15, 23, 42, 0.10), 0 8px 10px -6px rgba(15, 23, 42, 0.05);
  --shadow-xl: 0 25px 50px -12px rgba(15, 23, 42, 0.20);
  --shadow-glow: 0 0 0 4px rgba(37, 99, 235, 0.14);

  /* Radii */
  --radius-sm: 6px;
  --radius: 10px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  --radius-full: 9999px;

  /* Spacing */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-8: 32px;

  /* Typography */
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', Consolas, monospace;

  /* Transitions */
  --transition: 150ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 250ms cubic-bezier(0.4, 0, 0.2, 1);
}

/* ---------- Reset & Base ---------- */
* { margin: 0; padding: 0; box-sizing: border-box; }

html, body {
  font-family: var(--font-sans);
  background: var(--bg-primary);
  color: var(--text-primary);
  font-size: 14px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

button { font-family: inherit; cursor: pointer; }
input, select, textarea { font-family: inherit; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ---------- Top Bar / Header (consistent across all pages) ---------- */
.app-header {
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--border-subtle);
  padding: var(--space-3) var(--space-5);
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(8px);
  background: rgba(255, 255, 255, 0.85);
}

.app-header-left {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.app-header-right {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.app-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.01em;
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.app-title .brand-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent) 0%, #38bdf8 100%);
  box-shadow: 0 0 8px rgba(37, 99, 235, 0.5);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: 8px 14px;
  border: 1px solid var(--border-default);
  background: var(--bg-secondary);
  color: var(--text-primary);
  border-radius: var(--radius);
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition);
  white-space: nowrap;
}

.btn:hover {
  border-color: var(--border-strong);
  background: var(--bg-tertiary);
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
}

.btn:active { transform: translateY(0); }

.btn-icon {
  padding: 8px;
  width: 36px;
  height: 36px;
  border-radius: var(--radius);
}

.btn-primary {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--text-inverse);
}
.btn-primary:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
}

.btn-success {
  background: var(--success);
  border-color: var(--success);
  color: var(--text-inverse);
}
.btn-success:hover {
  background: #059669;
  border-color: #059669;
}

.btn-warning {
  background: var(--warning);
  border-color: var(--warning);
  color: var(--text-inverse);
}
.btn-warning:hover {
  background: #d97706;
  border-color: #d97706;
}

.btn-danger {
  background: var(--danger);
  border-color: var(--danger);
  color: var(--text-inverse);
}
.btn-danger:hover {
  background: #dc2626;
  border-color: #dc2626;
}

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

.btn-sm {
  padding: 5px 10px;
  font-size: 0.8125rem;
}

.btn-lg {
  padding: 11px 18px;
  font-size: 0.9375rem;
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

/* ---------- Icons ---------- */
.icon { width: 18px; height: 18px; flex-shrink: 0; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.icon-sm { width: 14px; height: 14px; }
.icon-lg { width: 22px; height: 22px; }

/* ---------- Badges ---------- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  padding: 4px 10px;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 600;
  border: 1px solid transparent;
  white-space: nowrap;
}

.badge-default {
  background: var(--bg-tertiary);
  color: var(--text-secondary);
  border-color: var(--border-subtle);
}
.badge-primary {
  background: var(--accent-soft);
  color: var(--accent);
  border-color: var(--accent-soft-border);
}
.badge-success {
  background: var(--success-soft);
  color: #065f46;
  border-color: var(--success-soft-border);
}
.badge-warning {
  background: var(--warning-soft);
  color: #92400e;
  border-color: var(--warning-soft-border);
}
.badge-danger {
  background: var(--danger-soft);
  color: #991b1b;
  border-color: var(--danger-soft-border);
}
.badge-info {
  background: var(--info-soft);
  color: #075985;
  border-color: var(--info-soft-border);
}

.badge-pulse {
  animation: badge-blink 1.4s ease-in-out infinite;
}
@keyframes badge-blink {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(245, 158, 11, 0.4); }
  50% { opacity: 0.85; box-shadow: 0 0 0 6px rgba(245, 158, 11, 0); }
}

/* ---------- User Pill ---------- */
.user-pill {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: 5px 12px 5px 5px;
  border-radius: var(--radius-full);
  background: var(--bg-tertiary);
  border: 1px solid var(--border-subtle);
  font-size: 0.8125rem;
  color: var(--text-secondary);
}

.user-pill .avatar {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), #38bdf8);
  color: white;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 0.75rem;
}

.user-pill .role {
  color: var(--text-tertiary);
  font-size: 0.7rem;
}

/* ---------- Cards ---------- */
.card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--transition);
}

.card:hover {
  box-shadow: var(--shadow);
}

.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-4);
  padding-bottom: var(--space-3);
  border-bottom: 1px solid var(--border-subtle);
}

.card-title {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.card-title .icon { color: var(--accent); }

.card-subtitle {
  font-size: 0.8125rem;
  color: var(--text-tertiary);
  margin-top: 2px;
}

/* ---------- Form fields ---------- */
.field {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.field-label {
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--text-secondary);
}

.input, .select, .textarea {
  width: 100%;
  padding: 9px 12px;
  border: 1px solid var(--border-default);
  border-radius: var(--radius);
  background: var(--bg-secondary);
  color: var(--text-primary);
  font-size: 0.875rem;
  transition: all var(--transition);
  font-family: inherit;
}

.input:focus, .select:focus, .textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: var(--shadow-glow);
}

.select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 32px;
}

/* ---------- Tables ---------- */
.table-wrap {
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  overflow: hidden;
}

table.app-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
}

table.app-table th {
  background: var(--bg-tertiary);
  color: var(--text-secondary);
  font-weight: 600;
  text-align: left;
  padding: 10px 12px;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  border-bottom: 1px solid var(--border-subtle);
}

table.app-table td {
  padding: 11px 12px;
  border-bottom: 1px solid var(--border-subtle);
  color: var(--text-primary);
  vertical-align: middle;
}

table.app-table tbody tr:last-child td { border-bottom: none; }

table.app-table tbody tr {
  transition: background var(--transition);
}
table.app-table tbody tr:hover {
  background: var(--bg-tertiary);
}

/* ---------- Drawer / Navigation ---------- */
.drawer {
  position: fixed;
  left: -300px;
  top: 0;
  width: 280px;
  height: 100%;
  background: var(--bg-secondary);
  border-right: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-xl);
  z-index: 2000;
  padding: var(--space-5);
  transition: left var(--transition-slow);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.drawer.open { left: 0; }

.drawer-header {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  padding-bottom: var(--space-4);
  border-bottom: 1px solid var(--border-subtle);
  margin-bottom: var(--space-2);
  font-weight: 700;
  font-size: 0.9375rem;
}

.drawer-nav {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
  margin-bottom: auto;
}

.drawer-nav a {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  text-decoration: none;
  color: var(--text-secondary);
  border-radius: var(--radius);
  padding: 9px 12px;
  font-size: 0.875rem;
  font-weight: 500;
  transition: all var(--transition);
}

.drawer-nav a:hover {
  background: var(--bg-tertiary);
  color: var(--text-primary);
  text-decoration: none;
}

.drawer-nav a.active {
  background: var(--accent-soft);
  color: var(--accent);
  border-color: var(--accent-soft-border);
}

.drawer-nav a .icon { width: 18px; height: 18px; }

.drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.4);
  backdrop-filter: blur(2px);
  z-index: 1999;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition);
}
.drawer-overlay.show { opacity: 1; pointer-events: auto; }

/* ---------- Modal ---------- */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.45);
  backdrop-filter: blur(4px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 3000;
  padding: var(--space-4);
}

.modal-backdrop.show { display: flex; animation: fadeIn 0.2s ease; }

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.modal {
  width: 100%;
  max-width: 480px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  overflow: hidden;
  animation: modalIn 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes modalIn {
  from { opacity: 0; transform: translateY(20px) scale(0.96); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.modal-header {
  padding: var(--space-5);
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.modal-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.modal-body {
  padding: var(--space-5);
}

.modal-body .row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 0;
  border-bottom: 1px dashed var(--border-subtle);
}
.modal-body .row:last-child { border-bottom: none; }
.modal-body .row .label {
  color: var(--text-tertiary);
  font-size: 0.8125rem;
  font-weight: 500;
}
.modal-body .row .value {
  color: var(--text-primary);
  font-weight: 600;
  font-size: 0.875rem;
}

.modal-footer {
  padding: var(--space-4) var(--space-5);
  background: var(--bg-tertiary);
  border-top: 1px solid var(--border-subtle);
  display: flex;
  justify-content: flex-end;
  gap: var(--space-2);
  flex-wrap: wrap;
}

/* ---------- Toasts / Alerts ---------- */
.toast-container {
  position: fixed;
  top: 80px;
  right: 20px;
  z-index: 4000;
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  pointer-events: none;
  max-width: 360px;
}

.toast {
  pointer-events: auto;
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  padding: var(--space-4);
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  animation: toastIn 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  position: relative;
  overflow: hidden;
}

.toast::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 4px;
  background: var(--text-tertiary);
}

.toast.success::before { background: var(--success); }
.toast.warning::before { background: var(--warning); }
.toast.danger::before  { background: var(--danger); }
.toast.info::before    { background: var(--info); }

.toast .toast-icon {
  flex-shrink: 0;
  width: 36px; height: 36px;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-inverse);
  background: var(--text-tertiary);
}
.toast.success .toast-icon { background: var(--success); }
.toast.warning .toast-icon { background: var(--warning); }
.toast.danger .toast-icon  { background: var(--danger); }
.toast.info .toast-icon    { background: var(--info); }

.toast .toast-content { flex: 1; min-width: 0; }
.toast .toast-title {
  font-weight: 600;
  font-size: 0.875rem;
  color: var(--text-primary);
}
.toast .toast-message {
  font-size: 0.8125rem;
  color: var(--text-secondary);
  margin-top: 2px;
}

.toast .toast-close {
  background: none;
  border: none;
  color: var(--text-tertiary);
  padding: 2px;
  cursor: pointer;
  transition: color var(--transition);
}
.toast .toast-close:hover { color: var(--text-primary); }

@keyframes toastIn {
  from { opacity: 0; transform: translateX(100%); }
  to   { opacity: 1; transform: translateX(0); }
}

.toast.removing { animation: toastOut 0.25s ease forwards; }
@keyframes toastOut {
  to { opacity: 0; transform: translateX(110%); }
}

/* ---------- Layout helpers ---------- */
.page {
  max-width: 1200px;
  margin: 0 auto;
  padding: var(--space-6) var(--space-4);
}

.page-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: var(--space-6);
  gap: var(--space-4);
  flex-wrap: wrap;
}

.page-header h1 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.02em;
}

.page-header .subtitle {
  font-size: 0.875rem;
  color: var(--text-tertiary);
  margin-top: 4px;
}

.grid {
  display: grid;
  gap: var(--space-4);
}
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

@media (max-width: 900px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .page { padding: var(--space-4) var(--space-3); }
  .app-header { padding: var(--space-3); }
}

.flex { display: flex; }
.flex-1 { flex: 1; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-2 { gap: var(--space-2); }
.gap-3 { gap: var(--space-3); }
.gap-4 { gap: var(--space-4); }
.mt-2 { margin-top: var(--space-2); }
.mt-3 { margin-top: var(--space-3); }
.mt-4 { margin-top: var(--space-4); }
.muted { color: var(--text-tertiary); font-size: 0.8125rem; }
.text-sm { font-size: 0.8125rem; }
.text-xs { font-size: 0.75rem; }
.hidden { display: none !important; }

/* ---------- Stat Cards ---------- */
.stat-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: var(--space-4) var(--space-5);
  display: flex;
  align-items: center;
  gap: var(--space-4);
  transition: all var(--transition);
}

.stat-card:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow);
}

.stat-card .stat-icon {
  width: 44px; height: 44px;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-soft);
  color: var(--accent);
  flex-shrink: 0;
}

.stat-card .stat-value {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.stat-card .stat-label {
  font-size: 0.75rem;
  color: var(--text-tertiary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 500;
  margin-top: 2px;
}

/* ---------- Status dot ---------- */
.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--success);
  display: inline-block;
  animation: pulse 2s ease-in-out infinite;
}
.status-dot.offline {
  background: var(--text-tertiary);
  animation: none;
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.5); }
  50% { box-shadow: 0 0 0 6px rgba(16, 185, 129, 0); }
}

/* ---------- Auth pages ---------- */
.auth-shell {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: 
    radial-gradient(ellipse at top left, #eef2ff 0%, transparent 50%),
    radial-gradient(ellipse at bottom right, #fce7f3 0%, transparent 50%),
    var(--bg-primary);
  padding: var(--space-4);
}

.auth-card {
  width: 100%;
  max-width: 420px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xl);
  padding: var(--space-8);
}

.auth-card h1 {
  font-size: 1.5rem;
  font-weight: 700;
  text-align: center;
  letter-spacing: -0.02em;
  margin-bottom: var(--space-2);
}

.auth-card .auth-subtitle {
  text-align: center;
  color: var(--text-tertiary);
  font-size: 0.875rem;
  margin-bottom: var(--space-6);
}

.auth-card .brand-icon {
  width: 56px; height: 56px;
  margin: 0 auto var(--space-4);
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, var(--accent), #38bdf8);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  box-shadow: var(--shadow-md), 0 0 30px rgba(37, 99, 235, 0.3);
}
.auth-card .brand-icon .icon { width: 28px; height: 28px; }

/* ---------- Active Trip Badge (shared across all pages) ---------- */
.active-trip-badge {
  display: none;
  align-items: center;
  gap: 6px;
  padding: 0.45rem 0.85rem;
  border: 1px solid #93c5fd;
  border-radius: 999px;
  background: #dbeafe;
  color: #1e3a8a;
  font-weight: 600;
  font-size: 0.8125rem;
  cursor: pointer;
  transition: all 150ms ease;
  white-space: nowrap;
}
.active-trip-badge:hover { background: #bfdbfe; transform: translateY(-1px); }
.active-trip-badge .icon { width: 14px; height: 14px; }

.active-trip-badge.pending {
  animation: badge-blink 1.2s ease-in-out infinite;
  border-color: #f97316;
  background: #fed7aa;
  color: #9a3412;
}

.active-trip-modal {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(15, 23, 42, 0.45);
  backdrop-filter: blur(4px);
  z-index: 3000;
  padding: 16px;
}
.active-trip-modal.show { display: flex; }

.active-trip-panel {
  width: min(520px, calc(100vw - 32px));
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  overflow: hidden;
}
.active-trip-panel h3 {
  margin: 0;
  padding: 18px 20px;
  color: var(--text-primary);
  font-size: 1rem;
  font-weight: 700;
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  gap: 8px;
}
.active-trip-panel h3 .icon { color: var(--accent); }

.active-trip-details {
  color: var(--text-secondary);
  line-height: 1.6;
  padding: 18px 20px;
  font-size: 0.875rem;
}
.active-trip-details .trip-row {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  border-bottom: 1px dashed var(--border-subtle);
}
.active-trip-details .trip-row:last-child { border-bottom: none; }
.active-trip-details .trip-row .label {
  color: var(--text-tertiary);
  font-size: 0.8125rem;
  font-weight: 500;
}
.active-trip-details .trip-row .value {
  color: var(--text-primary);
  font-weight: 600;
}

.active-trip-actions {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
  padding: 14px 20px;
  background: var(--bg-tertiary);
  border-top: 1px solid var(--border-subtle);
  flex-wrap: wrap;
}
