/* Componentes reutilizables (CSS plano: funciona con Tailwind CDN o compilado) */
:root { --brand: #0f766e; --brand-dark: #115e59; }

.input {
  display: block; width: 100%; border-radius: .5rem; border: 1px solid #cbd5e1; background: #fff;
  padding: .5rem .75rem; font-size: .875rem; line-height: 1.25rem; color: #0f172a; box-shadow: 0 1px 2px rgb(0 0 0 / .04);
}
.input:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgb(15 118 110 / .15); }
.input:disabled { background: #f1f5f9; color: #64748b; }
.label { display: block; margin-bottom: .25rem; font-size: .8125rem; font-weight: 500; color: #334155; }

.btn-primary, .btn-secondary, .btn-danger, .btn-ghost {
  display: inline-flex; align-items: center; justify-content: center; gap: .375rem; border-radius: .5rem;
  padding: .5rem .9rem; font-size: .875rem; font-weight: 600; line-height: 1.25rem; transition: background .15s, box-shadow .15s;
  white-space: nowrap; cursor: pointer;
}
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-dark); }
.btn-secondary { background: #fff; color: #334155; border: 1px solid #cbd5e1; }
.btn-secondary:hover { background: #f8fafc; }
.btn-danger { background: #e11d48; color: #fff; }
.btn-danger:hover { background: #be123c; }
.btn-ghost { color: #475569; }
.btn-ghost:hover { background: #f1f5f9; }
button:disabled { opacity: .55; cursor: not-allowed; }

.nav-link { display: flex; align-items: center; gap: .75rem; border-radius: .5rem; padding: .5rem .75rem; font-size: .875rem; font-weight: 500; color: #cbd5e1; }
.nav-link:hover { background: rgb(255 255 255 / .06); color: #fff; }
.nav-link.active { background: rgb(255 255 255 / .1); color: #fff; }
.nav-link svg { width: 1.15rem; height: 1.15rem; flex-shrink: 0; opacity: .85; }

.tab { padding: .5rem .9rem; font-size: .875rem; font-weight: 500; color: #64748b; border-bottom: 2px solid transparent; white-space: nowrap; }
.tab:hover { color: #0f172a; }
.tab.active { color: var(--brand); border-color: var(--brand); }

/* Plano de sala */
.floor { position: relative; background-color: #f8fafc; background-image: radial-gradient(#cbd5e1 1px, transparent 1px); background-size: 20px 20px; border-radius: .75rem; border: 1px solid #e2e8f0; overflow: hidden; }
.floor-table { position: absolute; display: flex; flex-direction: column; align-items: center; justify-content: center; border: 2px solid; font-size: .75rem; font-weight: 600; user-select: none; box-shadow: 0 1px 3px rgb(0 0 0 / .1); cursor: pointer; text-align: center; line-height: 1.1; padding: 2px; }
.floor-table.round { border-radius: 9999px; }
.floor-table.square, .floor-table.rect { border-radius: .5rem; }
.floor.editing .floor-table { cursor: move; outline: 2px dashed #94a3b8; outline-offset: 2px; }
.t-free { background: #ecfdf5; border-color: #10b981; color: #065f46; }
.t-booked { background: #fffbeb; border-color: #f59e0b; color: #92400e; }
.t-seated { background: #eff6ff; border-color: #3b82f6; color: #1e40af; }
.t-pending { background: #fdf4ff; border-color: #c026d3; color: #86198f; }
.t-blocked { background: #f1f5f9; border-color: #94a3b8; color: #475569; }
