:root {
  color-scheme: light;
  font-family: "Inter", "Segoe UI", sans-serif;
  background: #f5f6f8;
  color: #1b1f24;
}

body {
  margin: 0;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 32px;
  background: #0b1f3a;
  color: #ffffff;
}

.site-header a {
  color: #ffffff;
  margin-left: 16px;
  text-decoration: none;
}

.logo {
  font-weight: 700;
  letter-spacing: 0.5px;
}

.site-main {
  padding: 24px 32px 64px;
}

.card {
  background: #ffffff;
  padding: 20px 24px;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
  margin-bottom: 24px;
}

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

button.button,
.button {
  display: inline-block;
  background: #1f7aec;
  color: #ffffff;
  padding: 10px 16px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  font-weight: 600;
}

label {
  display: block;
  font-size: 0.85rem;
  color: #495057;
  margin-top: 12px;
}

input,
select {
  width: 100%;
  padding: 8px 10px;
  margin-top: 4px;
  border-radius: 6px;
  border: 1px solid #d7dce2;
}

.map-card {
  padding: 0;
}

.map-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 24px 0;
}

.time-controls {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 24px 24px;
}

.time-controls .button {
  min-width: 92px;
}

#time-slider {
  flex: 1;
  width: 100%;
}

#map,
#stalled-map {
  height: 90vh;
  border-radius: 0 0 12px 12px;
}

.muted {
  color: #5c677d;
}

.last-updated {
  color: #5c677d;
  font-size: 0.8rem;
  margin-top: 4px;
}

.legend {
  display: flex;
  gap: 12px;
  font-size: 0.8rem;
  align-items: center;
}

.legend-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
  margin-right: 6px;
}

.legend-dot-current {
  background: #1f7aec;
}

.legend-dot-single {
  background: #ff7a18;
}

.legend-dot-multi {
  background: #2f9e44;
}

.legend-dot-stalled {
  background: #dc3545;
}

.legend-dot-delivery {
  background: #1f7aec;
}

.legend-dot-vehicle {
  background: #ff7a18;
}

.direction-arrow-icon {
  background: transparent;
  border: none;
  pointer-events: none;
}

.direction-arrow {
  width: 0;
  height: 0;
  border-top: 5px solid transparent;
  border-bottom: 5px solid transparent;
  border-left: 10px solid var(--arrow-color, #1f7aec);
  transform-origin: center;
}

.filters {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  align-items: flex-end;
}

.filters label {
  flex: 1;
  min-width: 160px;
}


.filters button {
  margin-top: 12px;
}

.tag {
  display: inline-block;
  background: #e7f3ff;
  color: #1f7aec;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 0.8rem;
  font-weight: 500;
  margin-right: 4px;
}






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

th,
td {
  text-align: left;
  padding: 10px;
  border-bottom: 1px solid #eef1f5;
}

@media (max-width: 768px) {
  .site-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
  .map-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
  .time-controls {
    flex-direction: column;
    align-items: stretch;
  }
}
