:root {
  --bg: #0f172a;
  --bg-card: #1e293b;
  --bg-card-hover: #273549;
  --bg-input: #334155;
  --text: #f1f5f9;
  --text-muted: #94a3b8;
  --text-dim: #64748b;
  --primary: #3b82f6;
  --primary-hover: #2563eb;
  --primary-light: rgba(59, 130, 246, 0.15);
  --success: #22c55e;
  --success-light: rgba(34, 197, 94, 0.15);
  --warning: #f59e0b;
  --warning-light: rgba(245, 158, 11, 0.15);
  --danger: #ef4444;
  --danger-light: rgba(239, 68, 68, 0.15);
  --info: #06b6d4;
  --info-light: rgba(6, 182, 212, 0.15);
  --border: #334155;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 4px 20px rgba(0,0,0,0.3);
  --transition: 0.2s ease;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
svg { display: inline-block; vertical-align: middle; flex-shrink: 0; }

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
}

/* Layout */
.app { display: flex; min-height: 100vh; }

.sidebar {
  width: 72px;
  background: var(--bg-card);
  border-right: 1px solid var(--border);
  padding: 24px 0;
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  z-index: 100;
  transition: width 0.25s ease;
  overflow: hidden;
}
.sidebar:hover { width: 260px; box-shadow: 4px 0 24px rgba(0,0,0,0.3); }
.sidebar .nav-label { display: none; }
.sidebar .sidebar-header p,
.sidebar .user-name,
.sidebar .user-role { display: none; }
.sidebar:hover .nav-label { display: inline; }
.sidebar:hover .sidebar-header p,
.sidebar:hover .user-name,
.sidebar:hover .user-role { display: block; }
.sidebar .sidebar-header h1 span:not(.icon) { display: none; }
.sidebar:hover .sidebar-header h1 span:not(.icon) { display: inline; }
.sidebar-header h1 { overflow: hidden; white-space: nowrap; }

.sidebar-header {
  padding: 16px 0 16px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  overflow: hidden;
}
.sidebar:hover .sidebar-header { padding: 0 20px 24px; align-items: flex-start; }

.sidebar-header h1 {
  font-size: 18px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 10px;
}

.sidebar-header h1 .icon { font-size: 24px; display: flex; align-items: center; justify-content: center; }
.sidebar .sidebar-header h1 .icon img { width: 56px; height: 56px; object-fit: contain; border-radius: 8px; }
.sidebar:hover .sidebar-header h1 .icon img { width: 42px; height: 42px; border-radius: 6px; }
.sidebar-header p { font-size: 12px; color: var(--text-muted); margin-top: 4px; }

.nav { flex: 1; padding: 8px 0; display: flex; flex-direction: column; align-items: center; }

.nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0;
  border-radius: 10px;
  color: var(--sidebar-text, rgba(255,255,255,0.6));
  cursor: pointer;
  transition: all var(--transition);
  font-size: 14px;
  border: none;
  background: none;
  width: 42px;
  height: 42px;
  margin: 3px auto;
  text-align: left;
  justify-content: center;
}
.nav-item svg { flex-shrink: 0; width: 20px; height: 20px; }
.sidebar:hover .nav-item svg { width: 18px; height: 18px; }
.sidebar:hover .nav { padding: 8px 12px; align-items: stretch; }
.sidebar:hover .nav-item { justify-content: flex-start; padding: 10px 12px; padding-left: 20px; color: var(--sidebar-text, rgba(255,255,255,0.6)); width: 100%; height: auto; margin: 0; border-radius: var(--radius-sm); }

.nav-item:hover { background: rgba(128,128,128,0.15); color: var(--sidebar-text-hover, #fff) !important; }
.nav-item.active { background: rgba(59,130,246,0.2); color: var(--primary) !important; font-weight: 600; }
.sidebar:hover .nav-item:hover { background: rgba(128,128,128,0.15); color: var(--sidebar-text-hover, #fff) !important; }
.sidebar:hover .nav-item.active { background: var(--primary-light); }
.nav-item .badge {
  margin-left: auto;
  background: var(--danger);
  color: white;
  font-size: 11px;
  padding: 2px 7px;
  border-radius: 10px;
  font-weight: 600;
}

.main { flex: 1; margin-left: 72px; padding: 32px; min-height: 100vh; transition: margin-left var(--transition); }

.page-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 28px;
}

.page-header h2 { font-size: 26px; font-weight: 700; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
  border: none;
  font-family: inherit;
}

.btn-primary { background: var(--primary); color: white; }
.btn-primary:hover { background: var(--primary-hover); transform: translateY(-1px); }
.btn-success { background: var(--success); color: white; }
.btn-danger { background: var(--danger); color: white; }
.btn-danger:hover { background: #dc2626; }
.btn-ghost { background: transparent; color: var(--text-muted); border: 1px solid var(--border); }
.btn-ghost:hover { background: var(--bg-card-hover); color: var(--text); }
.btn-sm { padding: 6px 12px; font-size: 13px; }
.btn-icon { padding: 8px; border-radius: var(--radius-sm); background: none; border: none; color: var(--text-muted); cursor: pointer; font-size: 16px; }
.btn-icon:hover { color: var(--text); background: var(--bg-card-hover); }

/* Cards */
.card {
  background: var(--bg-card);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  padding: 24px;
  transition: all var(--transition);
}

.card:hover { border-color: var(--primary); }

.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px; }

.stat-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; margin-bottom: 28px; }

.stat-card {
  background: var(--bg-card);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  padding: 20px;
}

.stat-card .stat-icon { font-size: 28px; margin-bottom: 8px; }
.stat-card .stat-value { font-size: 28px; font-weight: 700; }
.stat-card .stat-label { font-size: 13px; color: var(--text-muted); margin-top: 4px; }

/* Car Card */
.car-card { cursor: pointer; position: relative; display: flex; flex-direction: column; }
.car-card-header { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 16px; }
.car-card-title { font-size: 18px; font-weight: 700; }
.car-card-reg { font-size: 13px; color: var(--primary); font-weight: 600; margin-top: 4px; }
.car-card-details { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 12px; }
.car-detail { font-size: 13px; color: var(--text-muted); display: flex; align-items: center; gap: 4px; }

.car-status { display: flex; gap: 8px; margin-top: auto; padding-top: 16px; border-top: 1px solid var(--border); flex-wrap: wrap; }
.status-badge {
  font-size: 12px;
  padding: 4px 10px;
  border-radius: 20px;
  font-weight: 600;
}
.status-ok { background: var(--success-light); color: var(--success); }
.status-warning { background: var(--warning-light); color: var(--warning); }
.status-danger { background: var(--danger-light); color: var(--danger); }

/* Reminders */
.reminder-list { display: flex; flex-direction: column; gap: 12px; }

.reminder-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px;
  background: var(--bg-card);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
}

.reminder-item.critical { border-left: 4px solid var(--danger); }
.reminder-item.warning { border-left: 4px solid var(--warning); }
.reminder-item.info { border-left: 4px solid var(--info); }

.reminder-icon { font-size: 24px; }
.reminder-content { flex: 1; }
.reminder-title { font-weight: 600; font-size: 14px; }
.reminder-sub { font-size: 13px; color: var(--text-muted); margin-top: 2px; }
.reminder-days { font-weight: 700; font-size: 14px; text-align: right; white-space: nowrap; }
.reminder-days.critical { color: var(--danger); }
.reminder-days.warning { color: var(--warning); }
.reminder-days.info { color: var(--info); }

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

.modal {
  background: var(--bg-card);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  width: 90%;
  max-width: 600px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow);
}

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

.modal-header h3 { font-size: 18px; font-weight: 700; }
.modal-body { padding: 24px; }
.modal-footer { padding: 16px 24px; border-top: 1px solid var(--border); display: flex; justify-content: flex-end; gap: 12px; }

.form-group { margin-bottom: 16px; }
.form-group label { display: block; font-size: 13px; font-weight: 600; color: var(--text-muted); margin-bottom: 6px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

input, select, textarea {
  width: 100%;
  padding: 10px 14px;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-size: 14px;
  font-family: inherit;
  transition: border-color var(--transition);
}

input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--primary);
}

textarea { resize: vertical; min-height: 80px; }
select { cursor: pointer; }

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

table {
  width: 100%;
  border-collapse: collapse;
}

th {
  text-align: left;
  padding: 12px 16px;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border);
}

td {
  padding: 14px 16px;
  font-size: 14px;
  border-bottom: 1px solid var(--border);
}

tr:hover td { background: var(--bg-card-hover); }

/* External Data */
.data-section { margin-bottom: 32px; }
.data-section h3 { font-size: 18px; font-weight: 700; margin-bottom: 16px; display: flex; align-items: center; gap: 8px; }

.rates-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 12px; }

.rate-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 16px;
  text-align: center;
}

.rate-code { font-size: 20px; font-weight: 700; color: var(--primary); }
.rate-value { font-size: 24px; font-weight: 700; margin: 8px 0 4px; }
.rate-name { font-size: 12px; color: var(--text-muted); }

/* External Data v2 */
.ext-section {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  margin-bottom: 24px;
}

.ext-section-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
}

.ext-section-header h3 { font-size: 20px; font-weight: 700; margin-bottom: 2px; }

.ext-section-sub { font-size: 13px; color: var(--text-muted); }
.ext-section-sub .cache-badge {
  background: var(--warning-light);
  color: var(--warning);
  padding: 1px 8px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 600;
}

.ext-section-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  flex-shrink: 0;
}

.fuel-icon { background: linear-gradient(135deg, #1e40af, #3b82f6); }
.rates-icon { background: linear-gradient(135deg, #15803d, #22c55e); }

.fuel-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.fuel-card-v2 {
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg);
  border: 1px solid var(--border);
  transition: transform var(--transition), box-shadow var(--transition);
}

.fuel-card-v2:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(0,0,0,0.3);
}

.fuel-card-accent { height: 4px; }

.fuel-card-body { padding: 20px; text-align: center; }

.fuel-card-top { margin-bottom: 12px; }

.fuel-badge {
  display: inline-block;
  padding: 4px 14px;
  border-radius: 20px;
  color: white;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.03em;
}

.fuel-card-price {
  font-size: 36px;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.fuel-card-currency { font-size: 18px; font-weight: 600; color: var(--text-muted); }

.fuel-card-label {
  font-size: 12px;
  color: var(--text-dim);
  margin-top: 6px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.rates-grid-v2 {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 10px;
}

.rate-card-v2 {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  border-radius: var(--radius-sm);
  background: var(--bg);
  border: 1px solid var(--border);
  transition: background var(--transition);
}

.rate-card-v2:hover { background: var(--bg-card-hover); }

.rate-flag { font-size: 28px; line-height: 1; }
.rate-flag-text { font-size: 13px; font-weight: 700; background: var(--primary-light); color: var(--primary); border-radius: 6px; width: 36px; height: 28px; display: flex; align-items: center; justify-content: center; letter-spacing: 0.5px; }

.rate-info { flex: 1; min-width: 0; }
.rate-code-v2 { font-size: 16px; font-weight: 700; }
.rate-name-v2 { font-size: 12px; color: var(--text-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.rate-value-v2 { font-size: 18px; font-weight: 700; white-space: nowrap; }
.rate-pln { font-size: 12px; color: var(--text-muted); font-weight: 600; }

.ext-note {
  margin-top: 16px;
  padding: 12px 16px;
  background: var(--warning-light);
  border-radius: var(--radius-sm);
  font-size: 13px;
  color: var(--warning);
}

.ext-footer {
  text-align: center;
  font-size: 12px;
  color: var(--text-dim);
  padding: 16px 0 0;
}

/* ============ FLEET VIEW ============ */

.fleet-kpis {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 16px;
  margin-bottom: 28px;
}

.fleet-kpi {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  position: relative;
  overflow: hidden;
}

.fleet-kpi-value { font-size: 32px; font-weight: 800; letter-spacing: -0.02em; }
.fleet-kpi-label { font-size: 13px; color: var(--text-muted); margin-top: 4px; }
.fleet-kpi-bar { position: absolute; bottom: 0; left: 0; right: 0; height: 3px; }

.fleet-cards-view {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.fleet-card {
  display: flex;
  align-items: stretch;
  gap: 0;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  transition: all 0.25s ease;
}

.fleet-card:hover {
  border-color: var(--primary);
  background: var(--bg-card-hover);
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(0,0,0,0.3);
}

.fleet-card-photo-panel {
  width: 200px;
  min-height: 180px;
  flex-shrink: 0;
  position: relative;
  overflow: hidden;
  background: var(--bg);
}

.fleet-card-photo-large {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}

.fleet-card:hover .fleet-card-photo-large {
  transform: scale(1.05);
}

.fleet-card-avatar-large {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.fleet-card-main { flex: 1; min-width: 0; padding: 18px 22px; }

.fleet-card-left { flex-shrink: 0; }

.fleet-card-avatar {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 18px;
  color: white;
  letter-spacing: -0.02em;
}

/* Progress bars */
.fleet-progress-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}

.fleet-progress-label {
  font-size: 11px;
  color: var(--text-dim);
  white-space: nowrap;
  min-width: 60px;
}

.fleet-progress-bar {
  flex: 1;
  height: 18px;
  background: var(--bg);
  border-radius: 10px;
  overflow: hidden;
  position: relative;
}

.fleet-progress-fill {
  height: 100%;
  border-radius: 10px;
  position: relative;
  transition: width 0.6s ease;
  min-width: 24px;
}

.fleet-progress-car {
  position: absolute;
  right: 2px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 13px;
  filter: drop-shadow(0 1px 1px rgba(0,0,0,0.3));
}

.fleet-progress-value {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
  white-space: nowrap;
  min-width: 80px;
  text-align: right;
}

.fleet-card-row1 {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 10px;
}

.fleet-card-name { font-size: 17px; font-weight: 700; }
.fleet-card-sub { font-size: 12px; color: var(--text-muted); margin-top: 2px; }

.fleet-card-reg {
  background: var(--bg);
  border: 2px solid var(--primary);
  border-radius: 6px;
  padding: 4px 14px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--primary);
  white-space: nowrap;
  font-family: 'Courier New', monospace;
}

.fleet-card-statuses {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 10px;
}

.fleet-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 20px;
}

.fleet-status-pill.ok { background: var(--success-light); color: var(--success); }
.fleet-status-pill.warn { background: var(--warning-light); color: var(--warning); }
.fleet-status-pill.danger { background: var(--danger-light); color: var(--danger); }
.fleet-status-pill.none { background: var(--bg); color: var(--text-dim); border: 1px solid var(--border); }

.fleet-pill-days { font-weight: 700; }

.fleet-card-row3 {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.fleet-meta { font-size: 12px; color: var(--text-dim); }


/* Fleet Table */
.fleet-table { width: 100%; }

.fleet-table-avatar {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 14px;
  color: white;
  flex-shrink: 0;
}

.fleet-reg-badge {
  background: var(--bg);
  border: 1.5px solid var(--primary);
  border-radius: 4px;
  padding: 2px 8px;
  font-size: 12px;
  font-weight: 700;
  color: var(--primary);
  font-family: 'Courier New', monospace;
  letter-spacing: 0.03em;
}

.fleet-pill {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 12px;
  white-space: nowrap;
}

.fleet-pill.ok { background: var(--success-light); color: var(--success); }
.fleet-pill.warn { background: var(--warning-light); color: var(--warning); }
.fleet-pill.danger { background: var(--danger-light); color: var(--danger); }
.fleet-pill.none { background: var(--bg); color: var(--text-dim); }
.fleet-pill small { font-weight: 700; }

.fleet-card-costs {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--border);
}

.fleet-cost-item { font-size: 12px; color: var(--text-muted); }

.fleet-skeleton { padding: 0; }

@media (max-width: 900px) {
  .fleet-kpis { grid-template-columns: 1fr 1fr; }
  .fleet-card-row1 { flex-direction: column; gap: 8px; }
  .fleet-card-reg { align-self: flex-start; }
}

@media (max-width: 600px) {
  .fleet-kpis { grid-template-columns: 1fr; }
  .fleet-card { flex-direction: column; }
  .fleet-card-photo-panel { width: 100%; min-height: 140px; max-height: 180px; }
}

@media print {
  .sidebar, .burger, .page-header button, .nav { display: none !important; }
  .main { margin-left: 0 !important; padding: 16px !important; }
  .fleet-card { break-inside: avoid; }
  .fleet-card:hover { transform: none; border-color: var(--border); }
}

/* Skeleton loading */
.external-loading { display: flex; flex-direction: column; gap: 20px; }
.ext-load-card { background: var(--bg-card); border-radius: var(--radius); padding: 28px; border: 1px solid var(--border); }

.skeleton {
  background: linear-gradient(90deg, var(--bg-input) 25%, var(--bg-card-hover) 50%, var(--bg-input) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: var(--radius-sm);
}

.skeleton-fuel { height: 120px; margin-bottom: 16px; }
.skeleton-text { height: 20px; width: 60%; }

@keyframes shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

@media (max-width: 768px) {
  .fuel-cards { grid-template-columns: 1fr 1fr; }
  .rates-grid-v2 { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .fuel-cards { grid-template-columns: 1fr; }
}

/* Car Detail */
.car-detail-header {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 28px;
}

.back-btn {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 24px;
  cursor: pointer;
  padding: 8px;
  border-radius: var(--radius-sm);
}

.back-btn:hover { background: var(--bg-card-hover); color: var(--text); }

.car-info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 16px;
  margin-bottom: 28px;
}

.info-item { background: var(--bg-card); padding: 16px; border-radius: var(--radius-sm); border: 1px solid var(--border); }
.info-label { font-size: 12px; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.05em; }
.info-value { font-size: 16px; font-weight: 600; margin-top: 4px; }

.tabs { display: flex; gap: 4px; margin-bottom: 24px; background: var(--bg-card); padding: 4px; border-radius: var(--radius-sm); }

.tab-btn {
  padding: 10px 20px;
  border: none;
  background: none;
  color: var(--text-muted);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  border-radius: 6px;
  transition: all var(--transition);
  font-family: inherit;
}

.tab-btn:hover { color: var(--text); }
.tab-btn.active { background: var(--primary); color: white; }

.tab-content { display: none; }
.tab-content.active { display: block; }

.section-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; }
.section-header h4 { font-size: 16px; font-weight: 600; }

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

.empty-state .empty-icon { font-size: 48px; margin-bottom: 16px; }
.empty-state h3 { font-size: 18px; margin-bottom: 8px; color: var(--text); }
.empty-state p { font-size: 14px; margin-bottom: 20px; }

/* Loading */
.loading { text-align: center; padding: 40px; color: var(--text-muted); }
.spinner { display: inline-block; width: 32px; height: 32px; border: 3px solid var(--border); border-top-color: var(--primary); border-radius: 50%; animation: spin 0.8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Toast notifications */
.toast-container { position: fixed; top: 24px; right: 24px; z-index: 2000; display: flex; flex-direction: column; gap: 8px; }

.toast {
  padding: 14px 20px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 500;
  box-shadow: var(--shadow);
  animation: slideIn 0.3s ease;
  max-width: 400px;
}

.toast.success { background: var(--success); color: white; }
.toast.error { background: var(--danger); color: white; }
.toast.info { background: var(--primary); color: white; }

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

/* Data info bar */
.data-info {
  font-size: 12px;
  color: var(--text-dim);
  margin-top: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.refresh-btn {
  background: none;
  border: 1px solid var(--border);
  color: var(--text-muted);
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 12px;
  cursor: pointer;
  font-family: inherit;
}

.refresh-btn:hover { background: var(--bg-card-hover); color: var(--text); }

/* Mobile burger */
.burger {
  display: none;
  position: fixed;
  top: 16px;
  left: 16px;
  z-index: 200;
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-size: 20px;
}

.sidebar-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 99;
}

/* Responsive */
@media (max-width: 768px) {
  .burger { display: block; }
  .sidebar { width: 260px; transform: translateX(-100%); }
  .sidebar:hover { width: 260px; }
  .sidebar.open { transform: translateX(0); }
  .sidebar .nav-label,
  .sidebar .sidebar-header p,
  .sidebar .user-name,
  .sidebar .user-role,
  .sidebar .sidebar-header h1 span:not(.icon) { opacity: 1; }
  .sidebar-overlay.open { display: block; }
  .main { margin-left: 0; padding: 80px 16px 16px; }
  .page-header { flex-direction: column; gap: 12px; align-items: flex-start; }
  .page-header > div { flex-wrap: wrap; }
  .form-row { grid-template-columns: 1fr; }
  .stat-cards { grid-template-columns: 1fr 1fr; }
  .card-grid { grid-template-columns: 1fr; }
  .car-detail-header { margin-top: 0; flex-direction: column; align-items: flex-start; }
  .login-card { margin: 20px; max-width: 100%; }
  .photo-gallery { grid-template-columns: repeat(2, 1fr); }
  .tab-nav { flex-wrap: wrap; gap: 4px; }
  .tab-btn { font-size: 12px; padding: 6px 10px; }
  .table-container { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .mileage-svg-v2 { height: 200px; }
  .car-body-svg { width: 180px; height: 220px; }
}

@media (max-width: 480px) {
  .stat-cards { grid-template-columns: 1fr; }
  .page-header h2 { font-size: 20px; }
  .stat-card { padding: 16px; }
  .stat-value { font-size: 22px; }
  .car-card-header { flex-direction: column; gap: 8px; }
  .collapsible-header h3 { font-size: 14px; }
}

/* ============ LOGIN ============ */

.login-screen {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #0f172a 0%, #1e3a5f 50%, #0f172a 100%);
}

.login-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 48px 40px;
  width: 400px;
  max-width: 90vw;
  text-align: center;
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}

.login-logo { font-size: 56px; margin-bottom: 12px; }
.login-card h1 { font-size: 28px; font-weight: 700; margin-bottom: 8px; }
.login-subtitle { color: var(--text-muted); font-size: 14px; margin-bottom: 32px; }

.login-card .form-group { text-align: left; margin-bottom: 16px; }
.login-card label { font-size: 13px; font-weight: 600; display: block; margin-bottom: 6px; color: var(--text-muted); }
.login-card input {
  width: 100%;
  padding: 12px 16px;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-size: 14px;
  transition: border-color var(--transition);
}
.login-card input:focus { outline: none; border-color: var(--primary); }

.login-error {
  background: var(--danger-light);
  color: var(--danger);
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  margin-bottom: 8px;
}

.login-hint { color: var(--text-dim); font-size: 12px; margin-top: 20px; }

/* ============ SIDEBAR FOOTER ============ */

.sidebar-footer {
  padding: 8px 0;
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}
.sidebar-footer .user-info { display: none; }
.sidebar-footer .btn { width: 36px; height: 36px; display: flex; align-items: center; justify-content: center; }
.sidebar:hover .sidebar-footer {
  flex-direction: row;
  justify-content: space-between;
  padding: 12px 20px;
  gap: 8px;
}
.sidebar:hover .sidebar-footer .user-info { display: flex; }
.sidebar:hover .sidebar-footer .btn { width: auto; height: auto; }

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

.user-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--primary);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 14px;
}

.user-name { font-size: 13px; font-weight: 600; display: block; }
.user-role { font-size: 11px; color: var(--text-dim); display: block; }

.sidebar-theme-btn { padding: 8px; border-radius: var(--radius-sm); }

.global-search {
  position: relative;
  margin-bottom: 16px;
}
.global-search input {
  width: 100%;
  padding: 10px 16px 10px 38px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg);
  color: var(--text);
  font-size: 14px;
}
.global-search input:focus { border-color: var(--primary); outline: none; }
.global-search svg {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
}

.sortable-th {
  cursor: pointer;
  user-select: none;
  white-space: nowrap;
}
.sortable-th:hover { color: var(--primary); }
.sortable-th.sort-asc::after { content: ' ▲'; font-size: 10px; color: var(--primary); }
.sortable-th.sort-desc::after { content: ' ▼'; font-size: 10px; color: var(--primary); }

/* ============ PHOTOS ============ */

.photo-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 16px;
}

.photo-card {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-card);
  border: 1px solid var(--border);
  transition: transform var(--transition), box-shadow var(--transition);
}

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

.photo-card img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  cursor: pointer;
  display: block;
}

.photo-info {
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.photo-cat {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--primary);
  letter-spacing: 0.5px;
}

.photo-desc { font-size: 12px; color: var(--text-muted); }
.photo-date { font-size: 11px; color: var(--text-dim); }

.photo-delete {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(0,0,0,0.6);
  border: none;
  color: white;
  font-size: 16px;
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
}

.photo-card:hover .photo-delete { display: flex; }

.photo-lightbox {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  cursor: pointer;
}

.photo-lightbox img {
  max-width: 90vw;
  max-height: 90vh;
  object-fit: contain;
  border-radius: 8px;
}

.photo-lightbox-close {
  position: absolute;
  top: 20px;
  right: 20px;
  font-size: 32px;
  color: white;
  background: none;
  border: none;
  cursor: pointer;
}

.file-input {
  width: 100%;
  padding: 12px;
  background: var(--bg-input);
  border: 2px dashed var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  cursor: pointer;
}

.file-input:hover { border-color: var(--primary); }

/* ============ DAMAGES ============ */

.damage-card { position: relative; }

.damage-toggle {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
}

.toggle-switch {
  width: 44px;
  height: 24px;
  background: var(--danger);
  border-radius: 12px;
  position: relative;
  transition: background var(--transition);
}

.toggle-switch.on { background: var(--success); }

.toggle-knob {
  width: 20px;
  height: 20px;
  background: white;
  border-radius: 50%;
  position: absolute;
  top: 2px;
  left: 2px;
  transition: transform var(--transition);
  box-shadow: 0 1px 3px rgba(0,0,0,0.3);
}

.toggle-switch.on .toggle-knob { transform: translateX(20px); }

.damage-photo-thumb {
  position: relative;
  width: 80px;
  height: 80px;
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
}

.damage-photo-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.damage-photo-thumb .photo-delete {
  width: 22px;
  height: 22px;
  font-size: 13px;
  top: 4px;
  right: 4px;
}

.damage-photo-thumb:hover .photo-delete { display: flex; }

/* ============ UNPAID ROWS ============ */

.unpaid-row {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 10px 14px;
  background: var(--bg);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: background var(--transition);
}

.unpaid-row:hover { background: var(--bg-card-hover); }

.unpaid-type { font-weight: 600; font-size: 13px; min-width: 140px; }
.unpaid-car { font-size: 13px; color: var(--text-muted); flex: 1; }
.unpaid-amount { font-weight: 700; font-size: 14px; color: var(--danger); min-width: 100px; text-align: right; }
.unpaid-status { font-size: 12px; color: var(--warning); min-width: 100px; text-align: right; }
.unpaid-reg { font-size: 11px; background: var(--bg-card); padding: 2px 8px; border-radius: 4px; color: var(--text-dim); margin-left: 6px; }

/* ============ ROLE BADGES ============ */

.role-badge {
  padding: 4px 12px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 600;
}

.role-admin { background: var(--danger-light); color: var(--danger); }
.role-manager { background: var(--info-light); color: var(--info); }
.role-zarzad { background: var(--warning-light); color: var(--warning); }
.role-kadry { background: var(--success-light); color: var(--success); }
.role-user { background: var(--bg); color: var(--text-muted); border: 1px solid var(--border); }

/* ============ FLEET PHOTO ============ */

.fleet-card-photo {
  width: 64px;
  height: 64px;
  border-radius: 12px;
  object-fit: cover;
}

/* ============ NOTIFICATIONS ============ */

.notif-badge {
  position: absolute;
  top: 4px;
  right: 8px;
  background: var(--danger);
  color: white;
  font-size: 10px;
  font-weight: 700;
  min-width: 18px;
  height: 18px;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
}
.sidebar .notif-badge { right: auto; left: 28px; top: 2px; }
.sidebar:hover .notif-badge { right: 8px; left: auto; top: 4px; }

.notifications-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.4);
  z-index: 199;
}
.notifications-dropdown {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 420px;
  max-width: 90vw;
  max-height: 70vh;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg, 16px);
  box-shadow: 0 20px 60px rgba(0,0,0,0.4);
  z-index: 200;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.notif-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px;
  border-bottom: 1px solid var(--border);
}
.notif-header h4 { margin: 0; font-size: 15px; }
.notif-list {
  overflow-y: auto;
  max-height: 440px;
  padding: 8px;
}
.notif-item {
  padding: 12px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  display: flex;
  gap: 12px;
  align-items: flex-start;
  transition: background 0.15s;
  position: relative;
}
.notif-item:hover { background: var(--bg-card-hover); }
.notif-item.unread { background: rgba(59,130,246,0.06); }
.notif-item.unread::before {
  content: '';
  position: absolute;
  left: 4px;
  top: 50%;
  transform: translateY(-50%);
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--primary);
}
.notif-content { flex: 1; min-width: 0; }
.notif-title { font-size: 13px; font-weight: 600; margin-bottom: 2px; }
.notif-message { font-size: 12px; color: var(--text-muted); line-height: 1.4; }
.notif-time { font-size: 11px; color: var(--text-dim); margin-top: 4px; }
.notif-delete {
  flex-shrink: 0;
  background: none;
  border: none;
  color: var(--text-dim);
  cursor: pointer;
  padding: 4px;
  border-radius: 4px;
  opacity: 0;
  transition: opacity 0.15s;
}
.notif-item:hover .notif-delete { opacity: 1; }
.notif-delete:hover { color: var(--danger); }
.notif-empty {
  padding: 40px 20px;
  text-align: center;
  color: var(--text-dim);
  font-size: 13px;
}

/* ============ LIGHT THEME ============ */

/* Light theme rules removed - theme presets now control all colors via JS */

/* ============ TCO CALCULATOR ============ */

.tco-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}

.tco-stat {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  text-align: center;
}

.tco-stat-value {
  font-size: 20px;
  font-weight: 700;
  color: var(--primary);
}

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

.tco-breakdown { display: flex; flex-direction: column; gap: 8px; }

.tco-bar-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.tco-bar-label {
  font-size: 12px;
  min-width: 100px;
  color: var(--text-muted);
}

.tco-bar-track {
  flex: 1;
  height: 14px;
  background: var(--bg);
  border-radius: 7px;
  overflow: hidden;
}

.tco-bar-fill {
  height: 100%;
  border-radius: 7px;
  transition: width 0.4s ease;
}

.tco-bar-value {
  font-size: 12px;
  font-weight: 600;
  min-width: 80px;
  text-align: right;
}

/* ============ MILEAGE CHART ============ */

.mileage-chart {
  width: 100%;
}

.mileage-svg {
  width: 100%;
  height: 180px;
}

.mileage-svg-v2 {
  width: 100%;
  height: 280px;
}

.mileage-chart-info {
  display: flex;
  gap: 20px;
  margin-bottom: 12px;
  font-size: 13px;
  color: var(--text-muted);
}

.mileage-chart-info span {
  display: flex;
  align-items: center;
  gap: 6px;
}

.mileage-dot-group .mileage-tooltip { opacity: 0; transition: opacity 0.2s; }
.mileage-dot-group:hover .mileage-tooltip { opacity: 1; }
.mileage-dot-group:hover .mileage-dot { r: 7; fill: var(--primary); }
.mileage-dot { transition: all 0.2s; }

/* Car body damage picker */
.car-body-picker { margin: 12px 0; }
.car-body-picker label { display: block; margin-bottom: 8px; font-weight: 600; font-size: 14px; }

.car-body-diagram {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px;
}

.car-body-svg {
  width: 220px;
  height: 260px;
}

.car-body-area {
  fill: var(--border);
  fill-opacity: 0.3;
  stroke: var(--text-dim);
  stroke-width: 1;
  cursor: pointer;
  transition: all 0.2s;
}

.car-body-area:hover {
  fill: var(--primary);
  fill-opacity: 0.4;
  stroke: var(--primary);
}

.car-body-area.selected {
  fill: var(--danger);
  fill-opacity: 0.6;
  stroke: var(--danger);
  stroke-width: 1.5;
}

.car-body-legend {
  display: flex;
  gap: 16px;
  margin-top: 10px;
  font-size: 12px;
  color: var(--text-muted);
}

.legend-item { display: flex; align-items: center; gap: 5px; }
.legend-dot { width: 10px; height: 10px; border-radius: 3px; }
.legend-dot.intact { background: var(--border); opacity: 0.5; }
.legend-dot.damaged { background: var(--danger); opacity: 0.7; }

.dmg-location-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
  min-height: 28px;
  align-items: center;
}

.dmg-location-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: var(--danger);
  color: #fff;
  padding: 3px 10px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 600;
}

.dmg-location-chip span {
  cursor: pointer;
  font-size: 14px;
  margin-left: 2px;
  opacity: 0.7;
}

.dmg-location-chip span:hover { opacity: 1; }

/* Mini car body in damage cards */
.car-body-mini {
  flex-shrink: 0;
  width: 80px;
}

.car-body-svg-mini {
  width: 80px;
  height: 95px;
}

.collapsible-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  padding: 4px 0;
  user-select: none;
}
.collapsible-header h3 {
  margin: 0;
  font-size: 18px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.collapsible-count {
  font-size: 12px;
  font-weight: 600;
  background: var(--primary-light);
  color: var(--primary);
  padding: 2px 8px;
  border-radius: 10px;
}
.collapsible-chevron {
  transition: transform 0.3s ease;
  opacity: 0.5;
}
.collapsible-card.collapsed .collapsible-chevron {
  transform: rotate(-90deg);
}
.collapsible-body {
  max-height: 2000px;
  overflow: hidden;
  transition: max-height 0.35s ease, opacity 0.25s ease;
  opacity: 1;
  margin-top: 16px;
}
.collapsible-card.collapsed .collapsible-body {
  max-height: 0;
  opacity: 0;
  margin-top: 0;
}

.driver-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 16px;
}
.driver-stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 16px;
  text-align: center;
}
.driver-stat-value {
  font-size: 28px;
  font-weight: 700;
  color: var(--primary);
}
.driver-stat-label {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 4px;
}
.driver-active-card {
  padding: 20px;
  border-left: 4px solid var(--success);
  margin-bottom: 16px;
}
.driver-active-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  color: var(--success);
  background: var(--success-light);
  padding: 4px 12px;
  border-radius: 20px;
  margin-bottom: 12px;
}
.driver-active-info {
  display: flex;
  align-items: center;
  gap: 16px;
}
.driver-avatar-large {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--primary-light);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 18px;
  flex-shrink: 0;
}
.driver-active-name {
  font-size: 18px;
  font-weight: 700;
}
.driver-active-since {
  font-size: 13px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 4px;
  margin-top: 4px;
}
.driver-active-notes {
  font-size: 13px;
  color: var(--text-dim);
  margin-top: 4px;
  font-style: italic;
}
.driver-active-actions {
  display: flex;
  gap: 8px;
  margin-top: 14px;
  align-items: center;
}
.driver-timeline {
  position: relative;
  padding-left: 24px;
}
.driver-timeline::before {
  content: '';
  position: absolute;
  left: 7px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--border);
}
.driver-timeline-item {
  position: relative;
  margin-bottom: 16px;
}
.driver-timeline-dot {
  position: absolute;
  left: -20px;
  top: 18px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--primary);
  border: 2px solid var(--bg-card);
}
.driver-timeline-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 14px;
}
.driver-timeline-header {
  display: flex;
  align-items: center;
  gap: 12px;
}
.driver-timeline-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--bg-input);
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 13px;
  flex-shrink: 0;
}
.driver-timeline-dates {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 2px;
}
.driver-timeline-duration {
  color: var(--text-dim);
}
.driver-timeline-notes {
  font-size: 12px;
  color: var(--text-dim);
  margin-top: 8px;
  font-style: italic;
}
.driver-timeline-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 8px;
}
@media (max-width: 600px) {
  .driver-stats-grid { grid-template-columns: repeat(2, 1fr); }
}

.known-drivers-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 200px;
  overflow-y: auto;
}
.known-driver-chip {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.2s;
}
.known-driver-chip:hover {
  background: var(--bg-card-hover);
  border-color: var(--primary);
}
.known-driver-chip.selected {
  background: var(--primary-light);
  border-color: var(--primary);
}
.known-driver-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--bg-input);
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 13px;
  flex-shrink: 0;
}
.known-driver-chip.selected .known-driver-avatar {
  background: var(--primary);
  color: white;
}
.known-driver-info {
  display: flex;
  flex-direction: column;
}
.known-driver-info strong {
  font-size: 14px;
}
.known-driver-info span {
  font-size: 11px;
  color: var(--text-dim);
}
