/* Kajenjere PMS — light & dark themes.
   pms.css is the dark theme; this file adds the light theme (and a dark version of the public booking pages).
   The theme is chosen by data-theme on <html>, set from the user's choice or the device setting. */

/* ---------- light theme: staff screens ---------- */
:root[data-theme="light"] {
  color-scheme: light;
  --bg: #f4f5f7; --panel: #ffffff; --panel-2: #f7f8fa; --panel-3: #eef0f4;
  --line: #e5e8ee; --line-2: #d5dae2;
  --ink: #141a24; --ink-2: #3a4354; --muted: #687284; --faint: #9aa2b1;
  --gold: #c99a3e; --gold-2: #a8781f; --gold-ink: #1a1408; --gold-soft: rgba(201,154,62,.13);
  --green: #0f9f68; --green-soft: rgba(15,159,104,.10);
  --blue: #3b63e0; --blue-soft: rgba(59,99,224,.10);
  --red: #d93d4a; --red-soft: rgba(217,61,74,.09);
  --amber: #c97d0a; --amber-soft: rgba(201,125,10,.11);
  --shadow: 0 1px 2px rgba(16,24,40,.05), 0 4px 14px rgba(16,24,40,.05);
}
:root[data-theme="light"] .sidebar { background: #ffffff; }
:root[data-theme="light"] .side-search { background: var(--panel-2); }
:root[data-theme="light"] .nav a:hover { background: var(--panel-2); }
:root[data-theme="light"] .nav a.active { background: linear-gradient(90deg, rgba(201,154,62,.18), rgba(201,154,62,.06)); border-color: rgba(201,154,62,.35); }
:root[data-theme="light"] .topbar { background: rgba(255,255,255,.88); }
:root[data-theme="light"] input, :root[data-theme="light"] select, :root[data-theme="light"] textarea { background: #ffffff; }
:root[data-theme="light"] .btn.primary, :root[data-theme="light"] .btn.accent { background: linear-gradient(180deg, #e2b864, #c99a3e); border-color: #c99a3e; }
:root[data-theme="light"] .btn.primary:hover, :root[data-theme="light"] .btn.accent:hover { background: #d9ab52; }
:root[data-theme="light"] .btn:hover { border-color: #c3cad6; }
:root[data-theme="light"] .kpi::after { background-image: radial-gradient(rgba(16,24,40,.10) 1px, transparent 1.2px); }
:root[data-theme="light"] .kpi .kpi-icon { background: rgba(16,24,40,.04); border-color: rgba(16,24,40,.08); }
:root[data-theme="light"] .k-gold { box-shadow: 0 6px 20px rgba(201,154,62,.10); }
:root[data-theme="light"] tbody tr:hover td { background: rgba(16,24,40,.02); }
:root[data-theme="light"] .b-checked_in, :root[data-theme="light"] .b-inspected, :root[data-theme="light"] .b-in_progress,
:root[data-theme="light"] .c-blue, :root[data-theme="light"] .arriving { color: var(--blue); }
:root[data-theme="light"] .messages .success { color: #067647; }
:root[data-theme="light"] .messages .error { color: #b42318; }
:root[data-theme="light"] .messages .warning { color: #b54708; }
:root[data-theme="light"] .messages .info { color: #175cd3; }
:root[data-theme="light"] .cal th.day.weekend { background: rgba(16,24,40,.025); }
:root[data-theme="light"] .bar.s-confirmed { color: #0b6b47; }
:root[data-theme="light"] .bar.s-pending { color: #8a5200; }
:root[data-theme="light"] .bar.s-checked_in { color: #2945a8; background: rgba(59,99,224,.14); }
:root[data-theme="light"] .bar.s-checked_out { background: rgba(16,24,40,.04); }
:root[data-theme="light"] .auth { background: radial-gradient(900px 500px at 20% 10%, rgba(201,154,62,.18), transparent 60%), radial-gradient(700px 500px at 90% 90%, rgba(59,99,224,.10), transparent 60%), var(--bg); }

/* ---------- theme switch button ---------- */
.theme-toggle .i-sun, .theme-toggle .i-moon { display: none; }
:root[data-theme="dark"] .theme-toggle .i-sun, :root:not([data-theme]) .theme-toggle .i-sun { display: block; }
:root[data-theme="light"] .theme-toggle .i-moon { display: block; }
.theme-float { position: fixed; top: 16px; right: 16px; z-index: 50; }
.pub-head .theme-toggle { margin-left: 8px; width: 32px; height: 32px; }

/* ---------- dark theme: public booking pages (light by default in booking.css) ---------- */
:root[data-theme="dark"] body.public {
  color-scheme: dark; background: #0b0f15; color: #e9edf3;
  --bg: #0b0f15; --panel: #121821; --panel-2: #171e29; --panel-3: #1c2431; --line: #222b38; --line-2: #2d3848;
  --ink: #e9edf3; --ink-2: #c3cad6; --muted: #8590a3; --faint: #5d6778;
  --shadow: 0 1px 0 rgba(255,255,255,.03) inset, 0 8px 24px rgba(0,0,0,.25);
}
:root[data-theme="dark"] body.public .pub-head { background: #0d1219; border-color: var(--line); }
:root[data-theme="dark"] body.public input, :root[data-theme="dark"] body.public select, :root[data-theme="dark"] body.public textarea { background: #0e131b; color: var(--ink); border-color: var(--line-2); }
:root[data-theme="dark"] body.public a { color: var(--gold-2); }
:root[data-theme="dark"] body.public .btn { background: var(--panel-2); color: var(--ink); border-color: var(--line-2); }
:root[data-theme="dark"] body.public .btn.primary, :root[data-theme="dark"] body.public .btn.accent { background: linear-gradient(180deg, var(--gold-2), var(--gold)); color: var(--gold-ink); border-color: var(--gold); }
:root[data-theme="dark"] body.public .searchbar { background: var(--panel); }
:root[data-theme="dark"] body.public .chips span { background: var(--panel-3); color: var(--ink-2); }
:root[data-theme="dark"] body.public .lang a { border-color: var(--line-2); }
:root[data-theme="dark"] body.public .lang a.on { background: var(--gold); color: var(--gold-ink); border-color: var(--gold); }
:root[data-theme="dark"] body.public .messages .error { color: #ffa3aa; }
:root[data-theme="dark"] body.public .messages .success { color: #8ce8bd; }
:root[data-theme="dark"] body.public .offer { background: var(--panel); border-color: var(--line); }
:root[data-theme="dark"] body.public .pub-brand { color: var(--ink); }
:root[data-theme="light"] .side-search input { background: transparent; }

/* housekeeping table — light theme tweaks */
:root[data-theme="light"] .hk-res.r-vacant { color: #7c5ce0; background: rgba(124,92,224,.10); }
:root[data-theme="light"] .app .hk-search input { background: transparent; }
