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

:root {
  --bg: #FAF7F2;
  --surface: #FFFFFF;
  --ink: #1D1B1A;
  --muted: #6E6862;
  --line: #E9E3DA;
  --brand: #E8472B;
  --brand-ink: #FFFFFF;
  --brand-soft: #FDE9E4;
  --ok: #1F8A4C;
  --ok-soft: #E3F4EA;
  --warn: #B26B00;
  --warn-soft: #FFF1D6;
  --off: #8A847E;
  --off-soft: #EFEBE6;
  --info: #2459C9;
  --info-soft: #E6EDFB;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(29,27,26,.06), 0 4px 16px rgba(29,27,26,.06);
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; }
body { background: var(--bg); color: var(--ink); font-size: 15px; line-height: 1.5; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3 { line-height: 1.2; margin: 0; }

.wrap { max-width: 1040px; margin: 0 auto; padding: 0 16px; }

/* Botões e campos */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 1px solid var(--line); background: var(--surface); padding: 10px 16px; border-radius: 10px; font-weight: 600; cursor: pointer; text-decoration: none; white-space: nowrap; transition: background .15s, border-color .15s; }
.btn:hover { border-color: #cfc6ba; }
.btn-primary { background: var(--brand); border-color: var(--brand); color: var(--brand-ink); }
.btn-primary:hover { background: #d23c21; border-color: #d23c21; }
.btn-ghost { background: transparent; border-color: transparent; }
.btn-ghost:hover { background: var(--off-soft); }
.btn-sm { padding: 6px 11px; font-size: 13px; border-radius: 8px; }
.btn-danger { color: #B42318; }
.btn:disabled { opacity: .45; cursor: not-allowed; }

.field { display: flex; flex-direction: column; gap: 6px; }
.field label, .label { font-size: 13px; font-weight: 600; color: var(--muted); }
.input, select.input, textarea.input { width: 100%; border: 1px solid var(--line); background: var(--surface); border-radius: 10px; padding: 11px 13px; outline: none; transition: border-color .15s, box-shadow .15s; }
.input:focus { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); }
textarea.input { resize: vertical; min-height: 72px; }
.hint { font-size: 12.5px; color: var(--muted); }

.badge { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; padding: 3px 9px; border-radius: 99px; white-space: nowrap; }
.badge::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.b-no_ar { background: var(--ok-soft); color: var(--ok); }
.b-agendado { background: var(--info-soft); color: var(--info); }
.b-encerrado, .b-desativado { background: var(--off-soft); color: var(--off); }
.b-pendente { background: var(--warn-soft); color: var(--warn); }
.b-pago { background: var(--ok-soft); color: var(--ok); }

.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }

/* Modal */
.modal-bg { position: fixed; inset: 0; background: rgba(20,18,16,.55); display: none; align-items: flex-start; justify-content: center; padding: 24px 16px; overflow-y: auto; z-index: 50; }
.modal-bg.aberto { display: flex; }
.modal { background: var(--surface); border-radius: 18px; width: 100%; max-width: 520px; overflow: hidden; box-shadow: 0 20px 60px rgba(0,0,0,.25); margin: auto 0; }
.modal-x { position: absolute; top: 10px; right: 10px; width: 36px; height: 36px; border-radius: 50%; border: 0; background: rgba(255,255,255,.92); cursor: pointer; font-size: 20px; line-height: 1; box-shadow: var(--shadow); }

.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%) translateY(20px); background: var(--ink); color: #fff; padding: 12px 18px; border-radius: 12px; font-weight: 600; opacity: 0; pointer-events: none; transition: all .25s; z-index: 80; max-width: calc(100% - 32px); }
.toast.on { opacity: 1; transform: translateX(-50%) translateY(0); }

.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
