/* Hotel Willy brand palette (from hotel-willy.it), applied over the base utility
   classes so no markup has to change. Loaded AFTER shell.css so it wins.

   Palette:  wine  #87152c (primary)   wine-dark #6f1024 (hover/active)
             coral #d94848 (secondary) ink #43403d (text)
             taupe #70645a  sand #a29182  cream #faf7f4  border #e4ddd6

   Contrast (WCAG): white on wine 8.7:1 ✓ · ink on cream 10.8:1 ✓ ·
   wine on white 8.6:1 ✓ · white on wine-dark 10.4:1 ✓ (hover). Coral is used
   only for large fills / dots, never as small text, to stay ≥ AA. */

:root { --willy-wine:#87152c; --willy-coral:#d94848; --willy-ink:#43403d; }

/* --- Accent = wine, always with light text (buttons, active nav, totals) --- */
.bg-emerald-500 { background-color:#87152c !important; color:#ffffff !important; }
.hover\:bg-emerald-400:hover, .hover\:bg-emerald-500:hover { background-color:#6f1024 !important; color:#ffffff !important; }
.text-emerald-400, .text-emerald-500 { color:#87152c !important; }
.accent-emerald-500 { accent-color:#87152c !important; }
.border-emerald-500, .border-emerald-500\/50, .border-emerald-500\/60, .focus\:border-emerald-500:focus, .focus\:border-emerald-400:focus { border-color:#87152c !important; }
.ring-emerald-500\/50 { --tw-ring-color:rgba(135,21,44,0.45) !important; }
.peer:checked ~ .peer-checked\:bg-emerald-500, .peer-checked\:bg-emerald-500 { background-color:#87152c !important; }
/* emerald status text used for "OK/online" stays a readable green — leave as is only in device dots (inline) */

/* --- Warm LIGHT theme = the default look (matches the hotel: white + wine) --- */
body.theme-light { background:#faf7f4 !important; color:#43403d !important; }
body.theme-light .bg-slate-900, body.theme-light .bg-slate-900\/70 { background-color:#ffffff !important; }
body.theme-light .bg-slate-800, body.theme-light .bg-slate-800\/90, body.theme-light .bg-slate-800\/80 { background-color:#f3ede7 !important; }
body.theme-light .bg-slate-800\/60 { background-color:#efe8e1 !important; }
body.theme-light .bg-slate-700 { background-color:#ffffff !important; }
body.theme-light .bg-slate-600 { background-color:#e8e0d8 !important; }
body.theme-light .text-white, body.theme-light .text-slate-100, body.theme-light .text-slate-200 { color:#3a3733 !important; }
body.theme-light .text-slate-300 { color:#4a453f !important; }  /* ~8:1 on cream */
body.theme-light .text-slate-400 { color:#5c534a !important; }  /* ~6.4:1 */
body.theme-light .text-slate-500, body.theme-light .text-slate-600 { color:#6b6157 !important; }  /* ~5.3:1 — no longer disappearing */
body.theme-light .border-slate-700, body.theme-light .border-slate-600, body.theme-light .border-slate-500 { border-color:#e4ddd6 !important; }
body.theme-light .amber-900\/10, body.theme-light .bg-amber-900\/10 { background-color:#f6efe6 !important; }
body.theme-light .bg-amber-900\/20 { background-color:#f0e6d8 !important; }
body.theme-light .text-amber-400 { color:#b45309 !important; }

/* --- Sidebar: warm charcoal in both themes, wine active item --- */
#willy-sidebar { background-color:#2b2320 !important; border-color:#3a302b !important; }
#willy-sidebar .border-slate-700 { border-color:#3a302b !important; }
#willy-sidebar .text-white { color:#f5efe9 !important; }
#willy-sidebar .text-slate-300 { color:#cbbfb4 !important; }
#willy-sidebar .text-slate-400 { color:#a2968a !important; }
#willy-sidebar .hover\:bg-slate-800:hover { background-color:#3a302b !important; }
#willy-sidebar .text-emerald-400 { color:#f5efe9 !important; }  /* logo mark contrast on dark */

/* --- Warm DARK theme (toggle) — keep usable, wine accents --- */
body:not(.theme-light) { background-color:#211b18 !important; }
body:not(.theme-light) .bg-slate-800, body:not(.theme-light) .bg-slate-800\/90 { background-color:#2b2320 !important; }
body:not(.theme-light) .bg-slate-900 { background-color:#2b2320 !important; }
body:not(.theme-light) .bg-slate-700 { background-color:#3a302b !important; }
body:not(.theme-light) .border-slate-700, body:not(.theme-light) .border-slate-600 { border-color:#3a302b !important; }
/* wine accent text is too dark on a dark bg — lighten it to a readable rose */
body:not(.theme-light) .text-emerald-400 { color:#e6a6ae !important; }
