/* respawn — staff console styles. Plain hand-authored CSS (no build step). */
:root {
  --bg: #0d1117;
  --panel: #161b22;
  --panel-2: #1c2330;
  --border: #2b3444;
  --text: #e6edf3;
  --muted: #8b98a9;
  --accent: #3b82f6;
  --accent-2: #2563eb;
  --good: #22c55e;
  --warn: #f59e0b;
  --bad: #ef4444;
  --booked: #a855f7;
  --radius: 10px;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 15px;
  line-height: 1.5;
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

/* Layout */
.topbar {
  display: flex; align-items: center; gap: 1rem;
  padding: 0.75rem 1.25rem;
  background: var(--panel);
  border-bottom: 1px solid var(--border);
  position: sticky; top: 0; z-index: 10;
}
.topbar .brand { font-weight: 700; letter-spacing: 0.5px; }
.topbar .brand span { color: var(--accent); }
.topbar nav { display: flex; gap: 1rem; }
.topbar .spacer { flex: 1; }
.topbar .who { color: var(--muted); font-size: 0.85rem; }

.container { max-width: 1200px; margin: 0 auto; padding: 1.25rem; }
.grid { display: grid; gap: 1rem; }
.cols-2 { grid-template-columns: 2fr 1fr; }
@media (max-width: 900px) { .cols-2 { grid-template-columns: 1fr; } }

/* Panels / cards */
.panel {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem 1.15rem;
}
.panel h2, .panel h3 { margin-top: 0; }
.muted { color: var(--muted); }
.small { font-size: 0.85rem; }
.mono { font-family: var(--mono); }
.right { text-align: right; }

/* Floor map */
.site-block { margin-bottom: 1.5rem; }
.room-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 0.9rem; }
.room {
  background: var(--panel-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.85rem;
}
.room-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 0.5rem; }
.room-head .rate { color: var(--muted); font-size: 0.8rem; }
.room-type {
  font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.06em;
  color: var(--muted); border: 1px solid var(--border); border-radius: 999px;
  padding: 0.05rem 0.5rem;
}
.seat-row { display: flex; flex-wrap: wrap; gap: 0.35rem; }
.seat {
  width: 34px; height: 34px; border-radius: 7px;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.72rem; font-weight: 700; font-family: var(--mono);
  border: 1px solid var(--border); color: #08111f;
}
.seat.available { background: var(--good); }
.seat.booked    { background: var(--booked); color: #fff; }
.seat.in_session{ background: var(--accent); color: #fff; }
.seat.needs_reset { background: var(--warn); }

/* Status dot / pill */
.pill {
  display: inline-block; padding: 0.1rem 0.55rem; border-radius: 999px;
  font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em;
}
.pill.available { background: rgba(34,197,94,0.15); color: var(--good); }
.pill.booked { background: rgba(168,85,247,0.15); color: var(--booked); }
.pill.in_session { background: rgba(59,130,246,0.15); color: var(--accent); }
.pill.needs_reset { background: rgba(245,158,11,0.15); color: var(--warn); }

/* Buttons / forms */
.btn {
  display: inline-flex; align-items: center; gap: 0.4rem;
  background: var(--accent); color: #fff; border: none;
  padding: 0.5rem 0.9rem; border-radius: 8px; font-size: 0.9rem; font-weight: 600;
  cursor: pointer;
}
.btn:hover { background: var(--accent-2); text-decoration: none; }
.btn.secondary { background: var(--panel-2); color: var(--text); border: 1px solid var(--border); }
.btn.danger { background: var(--bad); }
.btn.warn { background: var(--warn); color: #201500; }
.btn.small { padding: 0.3rem 0.6rem; font-size: 0.8rem; }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }

label { display: block; font-size: 0.85rem; color: var(--muted); margin: 0.6rem 0 0.2rem; }
input, select, textarea {
  width: 100%; padding: 0.5rem 0.6rem; background: var(--bg);
  border: 1px solid var(--border); border-radius: 8px; color: var(--text); font-size: 0.95rem;
}
input:focus, select:focus { outline: 2px solid var(--accent); border-color: var(--accent); }
.form-row { display: flex; gap: 0.75rem; }
.form-row > * { flex: 1; }

/* Tables (receipt / lists) */
table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: 0.45rem 0.5rem; border-bottom: 1px solid var(--border); }
th { color: var(--muted); font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.04em; }
tfoot td { border-bottom: none; }
.total-row td { font-weight: 700; border-top: 2px solid var(--border); }

/* Countdown */
.countdown { font-family: var(--mono); font-size: 2rem; font-weight: 700; }
.countdown.warn { color: var(--warn); }
.countdown.expired { color: var(--bad); }

/* Messages */
.messages { list-style: none; padding: 0; margin: 0 0 1rem; }
.messages li {
  padding: 0.6rem 0.9rem; border-radius: 8px; margin-bottom: 0.5rem;
  border: 1px solid var(--border);
}
.messages li.success { background: rgba(34,197,94,0.12); border-color: var(--good); }
.messages li.error { background: rgba(239,68,68,0.12); border-color: var(--bad); }
.messages li.warning { background: rgba(245,158,11,0.12); border-color: var(--warn); }
.messages li.info { background: rgba(59,130,246,0.12); border-color: var(--accent); }

/* Login */
.login-wrap { max-width: 360px; margin: 8vh auto; }

.legend { display: flex; gap: 1rem; flex-wrap: wrap; font-size: 0.8rem; color: var(--muted); }
.legend span { display: inline-flex; align-items: center; gap: 0.35rem; }
.legend .swatch { width: 14px; height: 14px; border-radius: 4px; display: inline-block; }

.stack > * + * { margin-top: 0.75rem; }
.flex { display: flex; gap: 0.6rem; align-items: center; }
.flex-between { display: flex; justify-content: space-between; align-items: center; }
.tag { font-family: var(--mono); font-size: 0.75rem; color: var(--muted); }
hr.sep { border: none; border-top: 1px solid var(--border); margin: 1rem 0; }
