body {
  margin: 0;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: #121212;
  color: #e0e0e0;
}

.page {
  max-width: 960px;
  margin: 0 auto;
  padding: 24px;
}

.page-header {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 24px;
}

.page-header h1 {
  margin: 0;
  font-size: 28px;
  font-weight: 600;
  color: #ffffff;
}

.page-subtitle {
  margin: 0;
  font-size: 14px;
  color: #9e9e9e;
}

.controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  gap: 16px;
  flex-wrap: wrap;
}

.control-group {
  display: flex;
  gap: 10px;
}

.timestamp {
  font-size: 12px;
  color: #8d8d8d;
}

.btn {
  padding: 10px 16px;
  font-size: 13px;
  font-weight: 500;
  border-radius: 4px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-secondary {
  background: #1f1f1f;
  border-color: #3a3a3a;
  color: #e0e0e0;
}

.btn-secondary:hover {
  background: #2a2a2a;
}

.driver-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
}

.driver-card {
  background: #1a1a1a;
  border: 1px solid #2f2f2f;
  border-radius: 6px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.driver-card:hover {
  transform: translateY(-2px);
  border-color: #3a3a3a;
}

.driver-card.offline {
  opacity: 0.5;
  background: #181818;
  border-color: #2a2a2a;
}

.driver-header {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.driver-name {
  font-size: 18px;
  font-weight: 600;
  color: #ffffff;
}

.driver-meta {
  font-size: 12px;
  color: #9e9e9e;
}

.status-select {
  width: 100%;
  padding: 8px 10px;
  background: #121212;
  border: 1px solid #3a3a3a;
  border-radius: 4px;
  color: #e0e0e0;
  font-size: 13px;
}

.notes-input {
  min-height: 60px;
  resize: vertical;
  padding: 10px;
  background: #121212;
  border: 1px solid #3a3a3a;
  border-radius: 4px;
  color: #e0e0e0;
  font-size: 12px;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 12px;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 600;
}

.status-pill.available {
  background: rgba(76, 175, 80, 0.2);
  color: #66bb6a;
}

.status-pill.enroute {
  background: rgba(255, 167, 38, 0.2);
  color: #ffa726;
}

.status-pill.arrived {
  background: rgba(255, 213, 79, 0.2);
  color: #ffd54f;
}

.status-pill.passenger_onboard {
  background: rgba(129, 199, 132, 0.2);
  color: #81c784;
}

.status-pill.busy {
  background: rgba(239, 83, 80, 0.2);
  color: #ef5350;
}

.status-pill.offline {
  background: rgba(158, 158, 158, 0.2);
  color: #bdbdbd;
}

.offline-sidebar {
  width: 200px;
  min-height: 100%;
  background: #0f0f0f;
  border: 1px solid #2a2a2a;
  border-radius: 6px;
  padding: 12px;
  box-sizing: border-box;
}

.offline-sidebar h3 {
  margin: 0 0 10px 0;
  font-size: 13px;
  color: #bdbdbd;
}

.offline-list { display:flex; flex-direction:column; gap:6px; }
.offline-item {
  padding: 6px 8px;
  background: #161616;
  border: 1px solid #242424;
  border-radius: 4px;
  font-size: 12px;
  color: #9e9e9e;
}
.offline-item .name { color: #cfcfcf; font-weight: 600; }
.offline-item .meta { font-size: 11px; color: #7c7c7c; }
.offline-empty { font-size: 12px; color: #666; }

.status-hint {
  font-size: 11px;
  color: #8d8d8d;
}

.toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: rgba(40, 40, 40, 0.95);
  border: 1px solid #4a4a4a;
  border-radius: 4px;
  padding: 12px 18px;
  font-size: 13px;
  color: #e0e0e0;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.toast.visible {
  opacity: 1;
}

.hidden {
  display: none;
}

@media (max-width: 640px) {
  .page {
    padding: 20px;
  }

  .controls {
    flex-direction: column;
    align-items: flex-start;
  }
}
