/* The simulator is a light tool page. */
:root { color-scheme: light; }
html, body { margin: 0; height: 100%; background: #f8fafc; color: #0f172a; font-family: Inter, system-ui, sans-serif; }
.sim-shell { display: flex; flex-direction: column; height: 100vh; }
.sim-header { display: flex; align-items: center; gap: 12px; padding: 10px 16px; border-bottom: 1px solid hsl(var(--border)); }
.sim-logo { height: 26px; }
.sim-main { flex: 1; min-height: 0; }
.sim-page { display: grid; grid-template-columns: minmax(0, 1fr) 420px; height: 100%; }
@media (max-width: 1000px) { .sim-page { grid-template-columns: 1fr; grid-template-rows: 55vh auto; height: auto; } }
.sim-map { height: 100%; min-height: 360px; z-index: 0; }
.sim-side { overflow-y: auto; padding: 12px; display: flex; flex-direction: column; gap: 12px; border-left: 1px solid hsl(var(--border)); }
.sim-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.sim-grow { flex: 1; min-width: 0; }
.sim-list { display: flex; flex-direction: column; gap: 6px; max-height: 360px; overflow-y: auto; }
.sim-item { display: flex; align-items: center; gap: 8px; padding: 6px 8px; border: 1px solid hsl(var(--border)); border-radius: 8px; cursor: pointer; }
.sim-item--selected { border-color: hsl(var(--primary)); box-shadow: 0 0 0 2px hsl(var(--primary) / .3); }
.sim-muted { color: hsl(var(--muted-foreground)); font-size: 12px; }
.sim-log { font: 12px/1.4 ui-monospace, monospace; max-height: 220px; overflow-y: auto; }
.sim-log__error { color: #dc2626; }
.sim-input { width: 64px; padding: 6px 8px; border: 1px solid hsl(var(--border)); border-radius: 8px; background: hsl(var(--background)); color: inherit; }
.sim-select { padding: 6px 8px; border: 1px solid hsl(var(--border)); border-radius: 8px; background: hsl(var(--background)); color: inherit; }
.sim-dot { width: 10px; height: 10px; border-radius: 50%; flex: none; }
.sim-state-Offline { background: #9ca3af; }
.sim-state-Starting, .sim-state-Stopping { background: #f59e0b; }
.sim-state-Idle { background: #16a34a; }
.sim-state-ToPickup { background: #2563eb; }
.sim-state-AtPickup { background: #7c3aed; }
.sim-state-Trip { background: #0891b2; }
.sim-state-Failed { background: #dc2626; }
.sim-car { display: inline-flex; align-items: center; gap: 4px; white-space: nowrap; }
.sim-car__dot { width: 16px; height: 16px; border-radius: 50%; border: 3px solid #fff; box-shadow: 0 1px 4px rgba(0,0,0,.35); }
.sim-car__label { font: 600 11px/1 Inter, sans-serif; background: #fff; color: #071a3d; padding: 3px 6px; border-radius: 6px; box-shadow: 0 1px 3px rgba(0,0,0,.25); }
.sim-car--selected .sim-car__label { background: #071a3d; color: #ffc107; }
.sim-pin { width: 22px; height: 22px; border-radius: 50%; border: 3px solid #fff; display: grid; place-items: center; color: #fff; font: 700 11px/1 Inter, sans-serif; box-shadow: 0 1px 4px rgba(0,0,0,.35); }
.sim-pin--pickup { background: #071a3d; }
.sim-pin--destination { background: #dc2626; }
