/*
 * Woytek Auto — canonical design tokens
 * Per WAR_DESIGN_COLOR_TOKENS_01 (doctrine: D:\woytekauto\doc\RLM\WAR_DESIGN_COLOR_TOKENS.md)
 *
 * Color encodes event TYPE, not WHO (operator decision 2026-05-27).
 * Tech identity = text on cards, never color. No per-tech accent palette.
 *
 * Every event/status has a FULL color and a SOFT companion (~15% opacity-on-bg
 * variant for tinting day-cells and chip backgrounds).
 *
 * NEVER inline hex values in admin.css / book.css / calendar_widget.css —
 * reference these tokens. Migration of existing hex usage tracked in §7 of
 * the doctrine doc.
 */

:root {
  /* ===== Appointment / status colors (dark theme = current admin) ===== */
  --wa-event-appointment: #60A5FA;
  --wa-event-appointment-soft: rgba(96, 165, 250, 0.15);

  --wa-status-pending: #FBBF24;
  --wa-status-pending-soft: rgba(251, 191, 36, 0.15);

  --wa-status-confirmed: #60A5FA;
  --wa-status-confirmed-soft: rgba(96, 165, 250, 0.15);

  --wa-status-in-progress: #34D399;
  --wa-status-in-progress-soft: rgba(52, 211, 153, 0.15);

  --wa-status-completed: #94A3B8;
  --wa-status-completed-soft: rgba(148, 163, 184, 0.15);

  --wa-status-awaiting-parts: #C084FC;
  --wa-status-awaiting-parts-soft: rgba(192, 132, 252, 0.15);

  --wa-status-cancelled: #F87171;
  --wa-status-cancelled-soft: rgba(248, 113, 113, 0.15);

  --wa-status-no-show: #DC2626;
  --wa-status-no-show-soft: rgba(220, 38, 38, 0.15);

  /* ===== Calendar event types ===== */
  --wa-event-blocked: #EF4444;
  --wa-event-blocked-soft: rgba(239, 68, 68, 0.15);

  --wa-event-tech-off: #FB923C;
  --wa-event-tech-off-soft: rgba(251, 146, 60, 0.15);

  --wa-event-shipment: #FACC15;
  --wa-event-shipment-soft: rgba(250, 204, 21, 0.15);

  /* ===== Day-cell semantic states (existing) ===== */
  /* TODAY / available / closed states already styled in calendar_widget.css —
     not re-defined here; this file is additive for new packets. */
}

@media (prefers-color-scheme: light) {
  /* Reserved for future light-theme activation per WAR_DESIGN_COLOR_TOKENS_01 §4.
     Empty for now — current admin is dark. */
}
