/* AutoListPro visual refresh, 2026-09-09 -- "Command Deck" look, applied
   app-wide. Every dashboard template already shares the exact same CSS
   custom-property names (--accent, --bg, --card, --border, --text, ...)
   and component classes (.btn, .card, .sidebar nav a) -- confirmed by
   grepping all 24 templates before writing this file. That means this one
   stylesheet, loaded after each page's own inline <style>, can retheme the
   whole app just by redefining those same tokens, with zero HTML changes
   needed on any page. landing.html is deliberately NOT included (its own
   navy/blue/violet marketing redesign is a separate, already-considered
   visual identity). See design-system.js for the sound/voice/ambient-motion
   layer that pairs with this. */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:wght@400;600;700&family=IBM+Plex+Sans:wght@400;500;600;700&family=IBM+Plex+Mono:wght@400;500;600&display=swap');

:root {
  --accent:#C96A26 !important;
  --accent-dark:#B85A1C !important;
  --accent-light:#F5E4D3 !important;
  --success:#1F9A63 !important; --success-dark:#187E50 !important;
  --danger:#C74A41 !important; --danger-dark:#A93B33 !important;
  --warning:#B4791E !important; --warning-bg:#FBF1DF !important; --warning-border:#E6C88C !important;
  --bg:#FAF6EE !important; --card:#FFFFFF !important; --border:#E7DFCF !important;
  --text:#1B2130 !important; --text-muted:#6B6355 !important; --text-faint:#9A9182 !important;
}

body {
  font-family:"IBM Plex Sans", -apple-system, 'Segoe UI', Roboto, Arial, sans-serif !important;
}
h1, h2, h3, .display {
  font-family:"Fraunces", Georgia, serif !important;
  text-wrap: balance;
}

/* Sidebars across the app use a dark navy panel -- warm it toward the new
   palette instead of the old flat indigo-black, and swap the active-item
   tint to the new accent. */
.sidebar { background:#191510 !important; border-right-color:#2B241B !important; }
.sidebar nav a.active { background:rgba(201,106,38,.22) !important; }
.sidebar .brand .dot { background:var(--accent) !important; box-shadow:0 0 0 4px rgba(201,106,38,.3) !important; }

.btn {
  transition: transform .15s ease, box-shadow .2s ease, background .2s ease !important;
}
.btn:not(.outline):not(.danger):not(.small):hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 6px 18px -6px var(--accent);
}
.card, .prod-card, .stat-tile {
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease !important;
}

/* -------------------------------------------------- ambient + sound UI -- */
#ds-bubbles {
  position: fixed; inset: 0; z-index: 0; pointer-events: none; opacity: .35;
}
#ds-sound-toggle {
  position: fixed; right: 18px; bottom: 18px; z-index: 40;
  width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--border);
  background: var(--card); color: var(--text-muted); cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 6px 20px -8px rgba(20,16,8,.35);
  transition: transform .15s ease, color .2s ease, border-color .2s ease;
}
#ds-sound-toggle:hover { transform: translateY(-2px); }
#ds-sound-toggle.on { color: var(--success); border-color: var(--success); }
#ds-sound-toggle svg { width: 18px; height: 18px; }

#ds-toast-stack {
  position: fixed; left: 50%; transform: translateX(-50%); bottom: 72px; z-index: 60;
  display: flex; flex-direction: column; gap: 8px; align-items: center; pointer-events: none;
}
.ds-toast {
  background: var(--text); color: var(--bg); padding: 10px 18px; border-radius: 999px;
  font-size: 13px; font-weight: 600; font-family:"IBM Plex Sans", sans-serif;
  box-shadow: 0 10px 30px -10px rgba(0,0,0,.4);
  animation: ds-toast-in .3s ease forwards, ds-toast-out .3s ease 2.5s forwards;
}
@keyframes ds-toast-in { from { opacity:0; transform:translateY(8px); } to { opacity:1; transform:none; } }
@keyframes ds-toast-out { to { opacity:0; transform:translateY(-6px); } }

@media (prefers-reduced-motion: reduce) {
  #ds-bubbles { display: none; }
  .btn, .card, .prod-card, .stat-tile { transition: none !important; }
}
