@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

/* Tokens — Dark Premium Laranja (copiados de demo/index.html, aprovado pelo dono do projeto) */
:root {
  --bg: #0E0E0E;
  --sidebar: #080808;
  --surface: #171717;
  --surface-2: #1D1D1D;
  --surface-hover: #242424;
  --border: #2A2A2A;
  --border-light: #333333;
  --primary: #FF8A00;
  --primary-light: #FFB347;
  --primary-dark: #D96F00;
  --text: #F5F5F5;
  --text-secondary: #A1A1AA;
  --text-muted: #71717A;
  --success: #22C55E;
  --success-light: #4ADE80;
  --warning: #FACC15;
  --danger: #EF4444;
  --danger-dark: #B91C1C;
  --info: #3B82F6;
  --radius-sm: 6px;
  --radius-md: 9px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --shadow-card: 0 8px 25px rgba(0,0,0,.25);
  --shadow-modal: 0 20px 60px rgba(0,0,0,.45);
}
* { box-sizing: border-box; }
body { margin: 0; font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  background: var(--bg); color: var(--text); font-size: 14px; }
button { font-family: inherit; cursor: pointer; border: 0; background: none; color: inherit; }
button:disabled { background: #3A3A3A !important; color: var(--text-muted) !important; cursor: not-allowed; }
input, select, textarea { font: inherit; color: inherit; background: #202020; border: 1px solid var(--border);
  border-radius: var(--radius-md); padding: 10px 12px; width: 100%; outline: none; min-height: 40px;
  transition: border-color .18s ease; }
input:focus, select:focus, textarea:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(255,138,0,.10); }
input::placeholder { color: var(--text-muted); }
::-webkit-scrollbar { width: 9px; height: 9px; }
::-webkit-scrollbar-thumb { background: #2c2c2c; border-radius: 6px; }
::-webkit-scrollbar-track { background: transparent; }

/* ---- botões ---- */
.btn-verde { background: var(--primary); color: #fff; border: 0; border-radius: var(--radius-md);
  font-weight: 700; padding: 12px 16px; transition: background .18s ease; }
.btn-verde:hover { background: var(--primary-dark); }
.btn-claro { background: var(--surface-2); color: var(--text); border: 1px solid var(--border-light);
  border-radius: var(--radius-md); padding: 12px 16px; transition: border-color .18s ease; }
.btn-claro:hover { border-color: var(--primary); }

/* ---- cartões e grade de produtos ---- */
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 12px 14px; box-shadow: var(--shadow-card); }
.grade-produtos { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 12px; }
.card-produto { padding: 0; overflow: hidden; position: relative; transition: border-color .18s ease; }
.card-produto:hover { border-color: var(--primary); }
.card-produto .foto { height: 120px; background: linear-gradient(160deg, #1c1006, #121212); position: relative;
  display: flex; align-items: center; justify-content: center; font-size: 40px; }
.card-produto .foto img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0;
  filter: brightness(.85) saturate(1.1) contrast(1.05); }
.card-produto .selo-esgotado { position: absolute; top: 8px; left: 8px; z-index: 2; background: var(--danger);
  color: #fff; font-size: 10px; font-weight: 800; letter-spacing: 1px; padding: 3px 8px; border-radius: 6px; }
.card-produto.esgotado { opacity: .55; }
.card-produto .corpo { padding: 11px 12px 12px; }
.card-produto .nome { font-size: 14px; margin-top: 0; min-height: 34px; font-weight: 600; }
.card-produto .preco { font-size: 16px; font-weight: 700; margin: 6px 0 10px; color: var(--primary); }

/* ---- chips (categorias, respostas, complementos) ---- */
.chip { display: inline-block; border: 1px solid var(--border); border-radius: 14px;
  padding: 5px 12px; margin: 3px; font-size: 13px; background: var(--surface-2); color: var(--text-secondary);
  cursor: pointer; transition: .15s; }
.chip.ativo { background: var(--primary); color: #fff; border-color: var(--primary); }

/* ---- modal ---- */
.modal-fundo { position: fixed; inset: 0; background: rgba(0,0,0,.72);
  display: flex; align-items: center; justify-content: center; z-index: 50; }
.modal { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-xl);
  padding: 18px; width: min(440px, 92vw); max-height: 86vh; overflow: auto; box-shadow: var(--shadow-modal); }
.linha-total { display: flex; justify-content: space-between; font-size: 15px; margin: 10px 0; color: var(--text-secondary); }
.linha-total strong { color: var(--primary); }

/* ---- mesas (dashboard staff, telas seguintes) ---- */
/* seletor composto (.mesa-btn.status-*) de propósito: mesma especificidade que .mesa-btn sozinho
   perderia a cascata por vir antes dele no arquivo (achado real na prova visual da Task 10 —
   toda mesa ocupada/pedindo_conta renderizava com a cor de livre, silenciosamente) */
.mesa-btn.status-livre { background: var(--surface-2); color: var(--text-secondary); }
.mesa-btn.status-ocupada { background: var(--primary); color: #fff; }
.mesa-btn.status-pedindo_conta { background: var(--warning); color: #1a1a1a; }
.mapa-mesas { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 10px; }
.mesa-btn { border: 1px solid var(--border); border-radius: var(--radius-md); padding: 14px 6px;
  text-align: center; font-weight: 700; font-size: 15px; background: var(--surface-2); color: var(--text);
  transition: border-color .18s ease; }
.mesa-btn:hover { border-color: var(--primary); }
.mesa-btn small { display: block; font-weight: 400; font-size: 11px; margin-top: 4px; color: var(--text-secondary); }

/* ---- lateral / carrinho (telas com pedido ao lado, ex. PDV/garçom) ---- */
.lateral { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 16px; box-shadow: var(--shadow-card); }
.carrinho { display: flex; flex-direction: column; gap: 8px; }

/* ---- avisos e toast ---- */
.aviso { padding: 10px 14px; border-radius: var(--radius-md); background: rgba(239,68,68,.12);
  color: var(--danger); border: 1px solid rgba(239,68,68,.35); margin: 8px 0; }
.toast { position: fixed; left: 50%; bottom: 100px; transform: translate(-50%, 20px); background: var(--surface-2);
  border: 1px solid var(--border-light); color: var(--text); padding: 12px 18px; border-radius: var(--radius-md);
  box-shadow: var(--shadow-modal); z-index: 200; opacity: 0; transition: .25s; max-width: min(360px, 90vw);
  font-size: 13.5px; pointer-events: none; }
.toast.mostrar { transform: translate(-50%, 0); opacity: 1; }
.toast.erro { border-color: var(--danger); }
