/* ====================================================================
   AUTOTRACK MULTI-TENANT SAAS - ULTRA MODERN DESIGN SYSTEM
   ==================================================================== */

:root {
  --bg-main: #0a0e17;
  --bg-surface: #111827;
  --bg-surface-elevated: #1e293b;
  --bg-card: rgba(30, 41, 59, 0.7);
  --bg-glass: rgba(15, 23, 42, 0.75);
  
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-focus: rgba(6, 182, 212, 0.5);
  --border-glass: rgba(255, 255, 255, 0.12);

  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;

  --accent-cyan: #06b6d4;
  --accent-cyan-glow: rgba(6, 182, 212, 0.25);
  --accent-emerald: #10b981;
  --accent-emerald-glow: rgba(16, 185, 129, 0.25);
  --accent-amber: #f59e0b;
  --accent-rose: #f43f5e;
  --accent-rose-glow: rgba(244, 63, 94, 0.25);
  --accent-indigo: #6366f1;

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;

  --shadow-card: 0 10px 25px -5px rgba(0, 0, 0, 0.4), 0 8px 10px -6px rgba(0, 0, 0, 0.3);
  --shadow-glow-cyan: 0 0 20px rgba(6, 182, 212, 0.35);
  --shadow-glow-rose: 0 0 20px rgba(244, 63, 94, 0.35);

  --font-main: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', 'Courier New', monospace;
}

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

body {
  font-family: var(--font-main);
  background-color: var(--bg-main);
  color: var(--text-primary);
  line-height: 1.5;
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* Glassmorphism Classes */
.glass-panel {
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
}

.glass-nav {
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-subtle);
}

/* App Layout Grid */
.app-container {
  display: flex;
  min-height: 100vh;
  background: radial-gradient(circle at 10% 20%, rgba(6, 182, 212, 0.04) 0%, transparent 40%),
              radial-gradient(circle at 90% 80%, rgba(99, 102, 241, 0.04) 0%, transparent 40%),
              var(--bg-main);
}

/* Sidebar Navigation */
.sidebar {
  width: 260px;
  background: var(--bg-surface);
  border-right: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
  transition: all 0.3s ease;
  z-index: 100;
  flex-shrink: 0;
}

.sidebar-brand {
  padding: 24px 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid var(--border-subtle);
}

.brand-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, var(--accent-cyan), var(--accent-indigo));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  color: white;
  box-shadow: var(--shadow-glow-cyan);
}

.brand-title {
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.5px;
  color: white;
}

.brand-sub {
  font-size: 11px;
  color: var(--accent-cyan);
  text-transform: uppercase;
  font-weight: 600;
  letter-spacing: 0.5px;
}

.sidebar-nav {
  padding: 20px 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
  overflow-y: auto;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-radius: var(--radius-md);
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: 500;
  font-size: 14px;
  transition: all 0.2s ease;
  cursor: pointer;
  border: 1px solid transparent;
}

.nav-item:hover {
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-primary);
  transform: translateX(3px);
}

.nav-item.active {
  background: linear-gradient(90deg, rgba(6, 182, 212, 0.15), rgba(6, 182, 212, 0.03));
  color: var(--accent-cyan);
  border-color: rgba(6, 182, 212, 0.3);
  font-weight: 600;
}

.nav-item .badge {
  margin-left: auto;
  padding: 2px 8px;
  border-radius: var(--radius-full);
  font-size: 11px;
  font-weight: 700;
}

.badge-rose {
  background: var(--accent-rose);
  color: white;
}

.badge-cyan {
  background: rgba(6, 182, 212, 0.2);
  color: var(--accent-cyan);
  border: 1px solid rgba(6, 182, 212, 0.4);
}

.badge-emerald {
  background: rgba(16, 185, 129, 0.2);
  color: var(--accent-emerald);
  border: 1px solid rgba(16, 185, 129, 0.4);
}

.badge-amber {
  background: rgba(245, 158, 11, 0.2);
  color: var(--accent-amber);
  border: 1px solid rgba(245, 158, 11, 0.4);
}

.sidebar-footer {
  padding: 16px;
  border-top: 1px solid var(--border-subtle);
}

.user-badge {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px;
  border-radius: var(--radius-md);
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid var(--border-subtle);
}

.user-avatar {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-full);
  background: linear-gradient(135deg, #4f46e5, #06b6d4);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 14px;
}

/* Main Content Area */
.main-wrapper {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  min-width: 0;
}

/* Header */
.top-header {
  height: 70px;
  padding: 0 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border-subtle);
  background: var(--bg-surface);
  position: sticky;
  top: 0;
  z-index: 50;
}

.page-title h1 {
  font-size: 20px;
  font-weight: 700;
  color: white;
}

.page-title p {
  font-size: 13px;
  color: var(--text-secondary);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.tenant-badge {
  padding: 6px 14px;
  border-radius: var(--radius-full);
  background: rgba(6, 182, 212, 0.1);
  border: 1px solid rgba(6, 182, 212, 0.3);
  color: var(--accent-cyan);
  font-size: 12px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
}

.tenant-dot {
  width: 8px;
  height: 8px;
  border-radius: var(--radius-full);
  background: var(--accent-emerald);
  box-shadow: 0 0 8px var(--accent-emerald);
}

/* Content Area */
.content-body {
  padding: 32px;
  flex: 1;
}

/* KPI Cards Grid */
.kpi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  margin-bottom: 28px;
}

.kpi-card {
  padding: 24px;
  border-radius: var(--radius-lg);
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  position: relative;
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.kpi-card:hover {
  transform: translateY(-4px);
  border-color: rgba(6, 182, 212, 0.4);
  box-shadow: var(--shadow-card), 0 0 20px rgba(6, 182, 212, 0.15);
}

.kpi-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  margin-bottom: 16px;
}

.kpi-val {
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.5px;
  color: white;
  margin-bottom: 4px;
}

.kpi-label {
  font-size: 13px;
  color: var(--text-secondary);
  font-weight: 500;
}

.kpi-trend {
  font-size: 12px;
  display: flex;
  align-items: center;
  gap: 4px;
  margin-top: 10px;
  font-weight: 600;
}

.trend-up { color: var(--accent-emerald); }
.trend-down { color: var(--accent-rose); }

/* Map Container */
.map-panel {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-glass);
  background: var(--bg-surface);
  position: relative;
}

.map-header {
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border-subtle);
  background: rgba(17, 24, 39, 0.9);
}

#fleetMap, #playbackMap, #geofenceMap {
  width: 100%;
  height: 480px;
  z-index: 10;
}

/* Playback Scrubber Control */
.playback-controls {
  padding: 16px 24px;
  background: var(--bg-surface-elevated);
  border-top: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  gap: 20px;
}

.playback-scrubber {
  flex: 1;
  accent-color: var(--accent-cyan);
  cursor: pointer;
}

/* Tables */
.table-container {
  overflow-x: auto;
}

table.data-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

table.data-table th {
  padding: 14px 18px;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-muted);
  font-weight: 700;
  border-bottom: 1px solid var(--border-subtle);
  background: rgba(17, 24, 39, 0.4);
}

table.data-table td {
  padding: 16px 18px;
  font-size: 14px;
  color: var(--text-primary);
  border-bottom: 1px solid var(--border-subtle);
  vertical-align: middle;
}

table.data-table tr:hover td {
  background: rgba(255, 255, 255, 0.02);
}

/* Status Indicators & Pulses */
.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  font-size: 12px;
  font-weight: 600;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: var(--radius-full);
}

.pulse-dot.live {
  background: var(--accent-emerald);
  animation: pulse-green 2s infinite;
}

.pulse-dot.idle {
  background: var(--accent-amber);
}

.pulse-dot.overspeed {
  background: var(--accent-rose);
  animation: pulse-red 1.5s infinite;
}

@keyframes pulse-green {
  0% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
  70% { box-shadow: 0 0 0 10px rgba(16, 185, 129, 0); }
  100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

@keyframes pulse-red {
  0% { box-shadow: 0 0 0 0 rgba(244, 63, 94, 0.7); }
  70% { box-shadow: 0 0 0 10px rgba(244, 63, 94, 0); }
  100% { box-shadow: 0 0 0 0 rgba(244, 63, 94, 0); }
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 18px;
  font-size: 14px;
  font-weight: 600;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all 0.2s ease;
  border: 1px solid transparent;
  outline: none;
  font-family: inherit;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent-cyan), #0891b2);
  color: #042f2e;
  font-weight: 700;
  box-shadow: 0 4px 14px rgba(6, 182, 212, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(6, 182, 212, 0.45);
}

.btn-secondary {
  background: var(--bg-surface-elevated);
  color: var(--text-primary);
  border-color: var(--border-subtle);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.2);
}

.btn-danger {
  background: rgba(244, 63, 94, 0.15);
  color: var(--accent-rose);
  border-color: rgba(244, 63, 94, 0.3);
}

.btn-danger:hover {
  background: var(--accent-rose);
  color: white;
}

.btn-sm {
  padding: 6px 12px;
  font-size: 12px;
  border-radius: var(--radius-sm);
}

/* Form Controls */
.form-group {
  margin-bottom: 18px;
}

.form-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 6px;
}

.form-control {
  width: 100%;
  padding: 12px 14px;
  border-radius: var(--radius-md);
  background: var(--bg-main);
  border: 1px solid var(--border-subtle);
  color: white;
  font-size: 14px;
  font-family: inherit;
  transition: all 0.2s ease;
}

.form-control:focus {
  outline: none;
  border-color: var(--accent-cyan);
  box-shadow: 0 0 0 3px rgba(6, 182, 212, 0.2);
}

/* Modals */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 20px;
}

.modal-content {
  background: var(--bg-surface);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-xl);
  width: 100%;
  max-width: 680px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.7);
  animation: modal-pop 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-content.modal-lg {
  max-width: 900px;
}

@keyframes modal-pop {
  0% { transform: scale(0.95); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}

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

.modal-body {
  padding: 24px;
}

.modal-footer {
  padding: 18px 24px;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
}

/* Odometer Audit Comparison Card */
.odo-audit-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 20px;
}

.odo-card {
  border-radius: var(--radius-lg);
  padding: 16px;
  background: var(--bg-main);
  border: 1px solid var(--border-subtle);
  text-align: center;
}

.odo-img-preview {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.1);
  margin-top: 10px;
  background: #000;
}

.odo-number-display {
  font-family: var(--font-mono);
  font-size: 22px;
  font-weight: 800;
  color: var(--accent-cyan);
  margin-top: 8px;
}

/* Driver PWA Smartphone View Layout */
.driver-pwa-view {
  max-width: 480px;
  margin: 0 auto;
  min-height: 100vh;
  background: var(--bg-surface);
  box-shadow: 0 0 40px rgba(0, 0, 0, 0.8);
  display: flex;
  flex-direction: column;
}

.pwa-topbar-sticky {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--bg-surface-elevated);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(12px);
}

.pwa-header {
  padding: 16px 20px;
  background: transparent;
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.pwa-speedometer {
  width: 220px;
  height: 220px;
  border-radius: var(--radius-full);
  border: 8px solid rgba(6, 182, 212, 0.2);
  border-top-color: var(--accent-cyan);
  border-right-color: var(--accent-cyan);
  margin: 24px auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 30px rgba(6, 182, 212, 0.2);
  position: relative;
}

.speed-digital {
  font-family: var(--font-mono);
  font-size: 54px;
  font-weight: 900;
  color: white;
  line-height: 1;
}

.speed-unit {
  font-size: 14px;
  color: var(--text-secondary);
  font-weight: 600;
  text-transform: uppercase;
  margin-top: 4px;
}

/* Camera Preview Box */
.camera-box {
  width: 100%;
  height: 220px;
  border-radius: var(--radius-lg);
  border: 2px dashed rgba(6, 182, 212, 0.4);
  background: rgba(0, 0, 0, 0.4);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  overflow: hidden;
  position: relative;
}

.camera-box:hover {
  border-color: var(--accent-cyan);
  background: rgba(6, 182, 212, 0.05);
}

.camera-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Offline Sync Status Ribbon */
.offline-banner {
  background: linear-gradient(90deg, #f59e0b, #d97706);
  color: #000;
  padding: 8px 16px;
  font-size: 12px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Role Chip Switchers on Login */
.quick-login-chip {
  padding: 10px 14px;
  border-radius: var(--radius-md);
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}

.quick-login-chip:hover {
  border-color: var(--accent-cyan);
  background: rgba(6, 182, 212, 0.1);
  transform: translateX(4px);
}

/* Printable QR Sticker Card */
.qr-sticker-card {
  background: #ffffff;
  color: #0f172a;
  border-radius: 16px;
  padding: 24px;
  text-align: center;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
  border: 3px solid var(--accent-cyan);
  max-width: 330px;
  margin: 0 auto 16px;
}

.qr-sticker-card .sticker-title {
  font-size: 18px;
  font-weight: 900;
  color: #0f172a;
}

.qr-sticker-card .sticker-sub {
  font-size: 11px;
  color: #64748b;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 10px;
}

.qr-sticker-card .plate-pill {
  font-size: 16px;
  font-weight: 900;
  font-family: var(--font-mono);
  background: #e0f2fe;
  color: #0369a1;
  padding: 6px 14px;
  border-radius: 8px;
  border: 1px solid #bae6fd;
  display: inline-block;
  margin-bottom: 12px;
}

.qr-sticker-card .qr-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 10px 0;
  min-height: 180px;
}

.qr-sticker-card .qr-wrapper img,
.qr-sticker-card .qr-wrapper canvas {
  width: 170px !important;
  height: 170px !important;
  border-radius: 6px;
}

/* Driver QR Scanner Box */
.qr-scanner-box {
  position: relative;
  width: 100%;
  height: 260px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: #090d16;
  border: 1px solid var(--border-glass);
  display: flex;
  align-items: center;
  justify-content: center;
}

.qr-scanner-box video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.qr-scanner-crosshair {
  position: absolute;
  width: 180px;
  height: 180px;
  border: 3px solid var(--accent-cyan);
  border-radius: 14px;
  box-shadow: 0 0 0 9999px rgba(0, 0, 0, 0.45);
  pointer-events: none;
  animation: scanLaser 2s infinite ease-in-out;
}

.qr-scanner-laser {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, #06b6d4, transparent);
  box-shadow: 0 0 8px #06b6d4;
  animation: scanDown 2s infinite ease-in-out;
}

@keyframes scanLaser {
  0%, 100% { border-color: #06b6d4; }
  50% { border-color: #10b981; }
}

@keyframes scanDown {
  0% { transform: translateY(0); }
  50% { transform: translateY(176px); }
  100% { transform: translateY(0); }
}

/* Responsive adjustments */
@media (max-width: 900px) {
  .sidebar {
    width: 70px;
  }
  .sidebar-brand .brand-title, .sidebar-brand .brand-sub, .nav-item span, .user-badge .user-info {
    display: none;
  }
  .odo-audit-grid {
    grid-template-columns: 1fr;
  }
}

/* ====================================================================
   PRO-LEVEL TOAST & NOTIFICATION SYSTEM
   ==================================================================== */
.toast-container {
  position: fixed;
  top: 24px;
  right: 24px;
  z-index: 999999;
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 420px;
  width: calc(100vw - 48px);
  pointer-events: none;
}

@media (max-width: 640px) {
  .toast-container {
    top: 16px;
    right: 16px;
    left: 16px;
    width: calc(100vw - 32px);
  }
}

.pro-toast {
  pointer-events: auto;
  background: rgba(15, 23, 42, 0.95);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-radius: var(--radius-md);
  padding: 16px;
  display: flex;
  align-items: flex-start;
  gap: 14px;
  box-shadow: 0 20px 35px -5px rgba(0, 0, 0, 0.6), 0 10px 15px -5px rgba(0, 0, 0, 0.4);
  border: 1px solid var(--border-glass);
  animation: toastSlideIn 0.35s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
}

.pro-toast.toast-leave {
  animation: toastSlideOut 0.3s cubic-bezier(0.7, 0, 0.84, 0) forwards;
}

@keyframes toastSlideIn {
  from {
    opacity: 0;
    transform: translateX(60px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateX(0) scale(1);
  }
}

@keyframes toastSlideOut {
  from {
    opacity: 1;
    transform: translateX(0) scale(1);
  }
  to {
    opacity: 0;
    transform: translateX(60px) scale(0.9);
  }
}

/* Toast Color Variants */
.pro-toast.success {
  border-color: rgba(16, 185, 129, 0.4);
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.12) 0%, rgba(15, 23, 42, 0.95) 40%);
}
.pro-toast.success .toast-icon-box {
  background: rgba(16, 185, 129, 0.2);
  color: var(--accent-emerald);
}

.pro-toast.error {
  border-color: rgba(244, 63, 94, 0.4);
  background: linear-gradient(135deg, rgba(244, 63, 94, 0.15) 0%, rgba(15, 23, 42, 0.95) 40%);
}
.pro-toast.error .toast-icon-box {
  background: rgba(244, 63, 94, 0.2);
  color: var(--accent-rose);
}

.pro-toast.warning {
  border-color: rgba(245, 158, 11, 0.4);
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.15) 0%, rgba(15, 23, 42, 0.95) 40%);
}
.pro-toast.warning .toast-icon-box {
  background: rgba(245, 158, 11, 0.2);
  color: var(--accent-amber);
}

.pro-toast.info {
  border-color: rgba(6, 182, 212, 0.4);
  background: linear-gradient(135deg, rgba(6, 182, 212, 0.15) 0%, rgba(15, 23, 42, 0.95) 40%);
}
.pro-toast.info .toast-icon-box {
  background: rgba(6, 182, 212, 0.2);
  color: var(--accent-cyan);
}

.toast-icon-box {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 17px;
  flex-shrink: 0;
}

.toast-content {
  flex: 1;
  min-width: 0;
}

.toast-title {
  font-size: 14px;
  font-weight: 700;
  color: white;
  margin-bottom: 2px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.toast-msg {
  font-size: 12.5px;
  color: var(--text-secondary);
  line-height: 1.4;
  word-break: break-word;
}

.toast-close-btn {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 4px;
  font-size: 14px;
  line-height: 1;
  transition: color 0.2s;
}

.toast-close-btn:hover {
  color: white;
}

.toast-progress {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 3px;
  width: 100%;
  background: rgba(255, 255, 255, 0.15);
}

.toast-progress-bar {
  height: 100%;
  width: 100%;
  background: var(--accent-cyan);
  animation: toastCountdown linear forwards;
}

.pro-toast.success .toast-progress-bar { background: var(--accent-emerald); }
.pro-toast.error .toast-progress-bar { background: var(--accent-rose); }
.pro-toast.warning .toast-progress-bar { background: var(--accent-amber); }
@keyframes toastCountdown {
  from { width: 100%; }
  to { width: 0%; }
}

/* Floating Action Button (FAB) for Driver QR Scanning */
.driver-qr-fab {
  position: fixed;
  bottom: 24px;
  right: calc(50% - 215px);
  width: 62px;
  height: 62px;
  border-radius: 50%;
  background: linear-gradient(135deg, #06b6d4 0%, #2563eb 100%);
  color: #ffffff;
  border: 2px solid rgba(255, 255, 255, 0.35);
  box-shadow: 0 10px 25px rgba(6, 182, 212, 0.55), 0 0 15px rgba(37, 99, 235, 0.4);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 990;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  animation: fabPulse 2.5s infinite;
}

.driver-qr-fab:hover {
  transform: scale(1.1) translateY(-2px);
  box-shadow: 0 14px 30px rgba(6, 182, 212, 0.75);
}

.driver-qr-fab:active {
  transform: scale(0.95);
}

.driver-qr-fab i {
  font-size: 20px;
  margin-bottom: 1px;
}

.driver-qr-fab span {
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

@keyframes fabPulse {
  0%, 100% {
    box-shadow: 0 8px 25px rgba(6, 182, 212, 0.55), 0 0 0 0 rgba(6, 182, 212, 0.4);
  }
  50% {
    box-shadow: 0 8px 25px rgba(6, 182, 212, 0.55), 0 0 0 14px rgba(6, 182, 212, 0);
  }
}

@media (max-width: 480px) {
  .driver-qr-fab {
    right: 20px;
    bottom: 24px;
  }
}

