/* ═══════════════════════════════════════════
   VEDÊ — Base: Variables, Reset, Utilities
   ═══════════════════════════════════════════ */

:root {
  --bg:           #0b1f12;
  --bg-card:      #112a18;
  --bg-card-2:    #163320;
  --bg-input:     #0b1f12;
  --bg-hover:     #1a3a22;
  --border:       #1a3a22;
  --border-2:     #2a5535;
  --border-focus: #EB966F;
  --text:         #FDF2DD;
  --text-2:       #E8D8BB;
  --text-3:       #9ab8a0;
  --text-muted:   #5e8068;
  --text-faint:   #4a7058;
  --primary:      #EB966F;
  --primary-dk:   #C96E47;
  --primary-bg:   rgba(235,150,111,.12);
  --accent:       #3A9B7F;
  --accent-dk:    #2d7a65;
  --accent-bg:    rgba(58,155,127,.12);
  --blue:         #63BED6;
  --blue-bg:      rgba(99,190,214,.12);
  --ok:           #5ec99e;
  --ok-bg:        rgba(94,201,158,.12);
  --warn:         #fb923c;
  --warn-bg:      rgba(251,146,60,.12);
  --danger:       #f87171;
  --danger-bg:    rgba(248,113,113,.12);
  --danger-border:#3d1515;
  --bar:          #63BED6;
  --bar-bg:       rgba(99,190,214,.12);
  --cozinha:      #3A9B7F;
  --cozinha-bg:   rgba(58,155,127,.12);
  --salao:        #EB966F;
  --salao-bg:     rgba(235,150,111,.12);
  --font-display: 'Playfair Display', Georgia, serif;
  --font-body:    'Montserrat', system-ui, sans-serif;
  --r-xs:  4px;
  --r-sm:  8px;
  --r:     12px;
  --r-lg:  16px;
  --r-xl:  24px;
  --r-pill:999px;
  --sidebar-w:    220px;
  --sidebar-coll: 60px;
  --header-h:     52px;
  --nav-h:        64px;
  --ease:         .15s ease;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; -webkit-tap-highlight-color: transparent; }
html { height: 100%; -webkit-text-size-adjust: 100%; }
body { min-height: 100%; background: var(--bg); color: var(--text); font-family: var(--font-body); font-size: 14px; line-height: 1.5; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
button { font-family: var(--font-body); cursor: pointer; }
input, select, textarea { font-family: var(--font-body); }

.brand-logo { font-family: var(--font-display); font-style: italic; font-weight: 800; font-size: 54px; color: var(--text); letter-spacing: -1px; line-height: 1; margin-bottom: 4px; }
.brand-tagline { font-size: 8px; color: var(--text-faint); letter-spacing: 3px; text-transform: uppercase; font-weight: 600; margin-bottom: 40px; }
[hidden] { display: none !important; }
.screen-center { min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 28px 20px; background: var(--bg); }
.spinner { width: 24px; height: 24px; border: 2px solid var(--border-2); border-top-color: var(--primary); border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

::-webkit-scrollbar { width: 4px; height: 4px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border-2); border-radius: 2px; }

.section-label { font-size: 8px; font-weight: 700; color: var(--text-muted); text-transform: uppercase; letter-spacing: 1.5px; margin-bottom: 8px; }
.divider { height: 1px; background: var(--border); margin: 12px 0; }

.cat-divider { display: flex; align-items: center; gap: 8px; margin: 16px 0 8px; }
.cat-divider-line { flex: 1; height: 1px; background: var(--border); }
.cat-divider-label { font-size: 8px; font-weight: 700; color: var(--text-muted); text-transform: uppercase; letter-spacing: 1.5px; white-space: nowrap; }

.empty-state { text-align: center; padding: 48px 20px; color: var(--text-faint); }
.empty-state-icon { font-size: 40px; margin-bottom: 12px; }
.empty-state-text { font-size: 12px; line-height: 1.8; white-space: pre-line; }

#toast-container { position: fixed; top: calc(var(--header-h) + 12px); left: 50%; transform: translateX(-50%); z-index: 9999; pointer-events: none; display: flex; flex-direction: column; gap: 6px; align-items: center; }
.toast { padding: 9px 20px; border-radius: var(--r-pill); font-size: 12px; font-weight: 700; white-space: nowrap; animation: toast-in .2s ease; }
.toast-ok   { background: var(--accent); color: var(--bg); }
.toast-err  { background: var(--danger); color: #fff; }
.toast-warn { background: var(--warn); color: var(--bg); }
@keyframes toast-in { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: translateY(0); } }

.sync-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--border-2); flex-shrink: 0; transition: background var(--ease); }
.sync-dot.synced  { background: var(--accent); animation: pulse 2s infinite; }
.sync-dot.syncing { background: var(--warn); animation: spin .8s linear infinite; border: 2px solid transparent; border-top-color: var(--warn); }
.sync-dot.error   { background: var(--danger); }
.sync-dot.local   { background: var(--border-2); }
@keyframes pulse { 0%,100%{opacity:1} 50%{opacity:.4} }

.notice { border-radius: var(--r-sm); padding: 10px 14px; font-size: 12px; margin-bottom: 12px; line-height: 1.7; }
.notice-warn   { background: var(--warn-bg);   border: 1px solid rgba(251,146,60,.3); color: var(--warn); }
.notice-info   { background: var(--blue-bg);   border: 1px solid rgba(99,190,214,.3); color: var(--blue); }
.notice-ok     { background: var(--ok-bg);     border: 1px solid rgba(94,201,158,.3); color: var(--ok); }
.notice-danger { background: var(--danger-bg); border: 1px solid rgba(248,113,113,.3); color: var(--danger); }
