/* Small dose of custom CSS on top of Tailwind CDN — keeps the prototype self-contained. */

:root {
  --brand: #e23a3a;     /* DoorDash-ish red so the metaphor is visible */
  --brand-dark: #b82a2a;
  --ink: #1a1a1a;
  --muted: #6b7280;
}

html, body { background: #fafafa; color: var(--ink); }

.brand-bar {
  background: linear-gradient(90deg, var(--brand) 0%, #ff6a3d 100%);
}

.btn-brand {
  background: var(--brand);
  color: white;
  transition: background 120ms ease;
}
.btn-brand:hover { background: var(--brand-dark); }

.stage-dot {
  width: 14px; height: 14px; border-radius: 999px;
  display: inline-block; flex-shrink: 0;
  border: 2px solid #d1d5db; background: #fff;
}
.stage-dot.done   { background: #16a34a; border-color: #16a34a; }
.stage-dot.active { background: var(--brand); border-color: var(--brand); box-shadow: 0 0 0 4px rgba(226,58,58,.18); }
.stage-dot.gesc   { background: #2563eb; border-color: #2563eb; }
.stage-dot.transit{ background: #a855f7; border-color: #a855f7; }

.stage-line {
  flex: 1 1 auto;
  height: 2px;
  background: #e5e7eb;
  align-self: center;
  margin: 0 4px;
}
.stage-line.done { background: #16a34a; }

.tracker-vertical .stage-row { display: flex; gap: 12px; align-items: flex-start; padding: 8px 0; }
.tracker-vertical .stage-spine {
  width: 2px; background: #e5e7eb; margin-left: 6px;
  flex: 0 0 2px; align-self: stretch;
}
.tracker-vertical .stage-row.done .stage-spine,
.tracker-vertical .stage-row.active .stage-spine { background: #16a34a; }

.pill {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.pill-five    { background: #fee2e2; color: #b82a2a; }
.pill-gesc    { background: #dbeafe; color: #1d4ed8; }
.pill-transit { background: #f3e8ff; color: #7e22ce; }
.pill-done    { background: #dcfce7; color: #166534; }
.pill-internal { background: #1f2937; color: #fff; }
.pill-external { background: #fef3c7; color: #92400e; }

.validation-msg { color: #b82a2a; font-size: 12px; margin-top: 4px; }
input.invalid, select.invalid, textarea.invalid { border-color: #b82a2a !important; }

/* Plate layout mini-grid */
.plate-grid {
  display: grid;
  grid-template-columns: 20px repeat(12, 1fr);
  gap: 2px;
  font-size: 10px;
  user-select: none;
}
.plate-grid .well {
  aspect-ratio: 1 / 1;
  border-radius: 999px;
  border: 1px solid #d1d5db;
  background: #fff;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  font-weight: 600;
  color: #fff;
  transition: transform 60ms ease;
}
.plate-grid .well:hover { transform: scale(1.08); }
.plate-grid .well.empty { color: transparent; background: #fff; }
.plate-grid .label { color: var(--muted); display: flex; align-items: center; justify-content: center; }

.genotype-swatch {
  display: inline-block; width: 12px; height: 12px;
  border-radius: 3px; margin-right: 6px; vertical-align: middle;
}
