/* Taabi TMS — UAE · Live Trips.
 *
 * Styles for the tracking console in web/src/live.js. Kept out of the generated
 * app.css so a regeneration cannot drop them.
 */

.lv-live {
  margin-left: auto;
  align-self: center;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--good);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding-right: 2px;
}

/* the pulsing dot that says the screen is updating itself */
.lv-live::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--good);
  box-shadow: 0 0 0 0 color-mix(in srgb, var(--good) 60%, transparent);
  animation: lv-pulse 1.8s ease-out infinite;
}

@keyframes lv-pulse {
  0% {
    box-shadow: 0 0 0 0 color-mix(in srgb, var(--good) 55%, transparent);
  }
  70% {
    box-shadow: 0 0 0 7px transparent;
  }
  100% {
    box-shadow: 0 0 0 0 transparent;
  }
}

.lv-count {
  margin-left: 10px;
  font-size: 12px;
  font-weight: 700;
  color: var(--primary);
  background: var(--primary-tint);
  border-radius: 999px;
  padding: 2px 10px;
  vertical-align: middle;
}

.lv-map {
  height: 420px;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--rail);
  background: var(--map-water);
}

/* map panes must not be repainted over the tooltips */
.lv-map .leaflet-tooltip {
  font-family: var(--font);
  font-size: 11px;
  font-weight: 600;
}

.lv-tbl {
  max-height: 420px;
}

.lv-veh {
  font-weight: 600;
  white-space: nowrap;
}

.lv-ping {
  color: var(--muted, #6b7280);
  font-variant-numeric: tabular-nums;
}

/* progress along the route */
.lv-bar {
  display: inline-block;
  vertical-align: middle;
  width: 84px;
  height: 6px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--ink) 12%, transparent);
  overflow: hidden;
}

.lv-bar i {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  transition: width 1s linear;
}

.lv-pct {
  display: inline-block;
  min-width: 34px;
  margin-left: 8px;
  font-size: 11px;
  font-variant-numeric: tabular-nums;
  color: var(--muted, #6b7280);
}

.lv-empty {
  padding: 26px 18px;
  text-align: center;
  color: var(--muted, #6b7280);
  font-size: 13px;
}

[data-theme="dark"] .lv-map {
  border-color: rgba(255, 255, 255, 0.12);
}

[data-theme="dark"] .lv-bar {
  background: rgba(255, 255, 255, 0.14);
}

@media (max-width: 900px) {
  .lv-map {
    height: 300px;
  }
}
