/* Correcaminos colours for the admin web.
   They mirror the app's android/app/src/main/java/com/draulpozas/correcaminos/Theme.kt
   (Material 3 scheme from the logo seed #E8743B) where it has an equivalent; the rest are plain greys.
   When the colours change, update both files together. */

:root {
  color-scheme: light dark;

  --bg: #ffffff;
  --text: #222222;
  --muted: #666666;
  --border: #cccccc;
  --border-strong: #999999;
  --surface-alt: #f2f2f2;
  --accent: #8E4D2F;            /* Theme.kt primary */
  --btn-primary-bg: #8E4D2F;    /* Theme.kt primary */
  --btn-primary-text: #ffffff;  /* Theme.kt onPrimary */
  --ok: #3B6D11;
  --error: #BA1A1A;             /* Theme.kt error */
  --highlight: #FFF1B8;

  /* Same in both modes: the OpenStreetMap tiles are always light. */
  --map-active: #8E4D2F;
  --map-inactive: #888888;
  --map-preview: #E8743B;       /* logo orange */
}

/* Dialog backdrop. Set here directly: older browsers don't pass custom properties into ::backdrop. */
dialog::backdrop { background: rgba(0, 0, 0, 0.45); }

@media (prefers-color-scheme: dark) {
  dialog::backdrop { background: rgba(0, 0, 0, 0.65); }
  :root {
    --bg: #1c1b1a;
    --text: #e8e2df;
    --muted: #a8a29e;
    --border: #444444;
    --border-strong: #666666;
    --surface-alt: #2a2826;
    --accent: #FFB596;
    --btn-primary-bg: #FFB596;
    --btn-primary-text: #542106;
    --ok: #97C459;
    --error: #FFB4AB;
    --highlight: #4A3F12;
  }
}
