:root {
  --bg: #0b1020;
  --panel: #121a31;
  --panel-2: #18223d;
  --text: #eef3ff;
  --muted: #9ba8c7;
  --line: #293555;
  --good: #22c55e;
  --warn: #f59e0b;
  --bad: #ef4444;
  --blue: #60a5fa;
  --cell: #11182c;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  min-height: 100vh;
  background: radial-gradient(circle at top, #172349, var(--bg));
  color: var(--text);
  font-family: Arial, Helvetica, sans-serif;
}
a { color: inherit; }
.login-body {
  display: grid;
  place-items: center;
  padding: 24px;
}
.login-card, .card, .panel {
  background: rgba(18, 26, 49, .94);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: 0 18px 40px rgba(0,0,0,.25);
}
.login-card {
  width: 100%;
  max-width: 420px;
  padding: 28px;
}
h1, h2, h3 { margin-top: 0; }
.muted { color: var(--muted); }
label { display: block; margin: 14px 0 6px; color: var(--muted); font-size: 14px; }
input, select, button, textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px 14px;
  font-size: 15px;
}
input, select, textarea {
  background: #0e1529;
  color: var(--text);
}
button {
  background: var(--blue);
  color: #08111f;
  border: none;
  font-weight: 700;
  cursor: pointer;
  transition: transform .12s ease, opacity .12s ease;
}
button:hover { transform: translateY(-1px); opacity: .95; }
button.secondary { background: var(--panel-2); color: var(--text); border: 1px solid var(--line); }
button.danger { background: var(--bad); color: white; }
button.good { background: var(--good); color: #06130a; }
button.warn { background: var(--warn); color: #170d00; }
button.small { padding: 7px 9px; font-size: 12px; border-radius: 8px; }
button:disabled { opacity: .45; cursor: not-allowed; transform: none; }
.error { margin-top: 14px; color: #fecaca; }
.success { margin-top: 14px; color: #bbf7d0; }
.app-shell {
  display: grid;
  grid-template-columns: 260px 1fr;
  min-height: 100vh;
}
.sidebar {
  padding: 22px;
  background: rgba(7, 11, 23, .6);
  border-right: 1px solid var(--line);
}
.brand { font-weight: 800; font-size: 22px; margin-bottom: 22px; }
.nav button {
  margin-bottom: 10px;
  text-align: left;
  background: transparent;
  border: 1px solid var(--line);
  color: var(--text);
}
.nav button.active { background: var(--panel-2); border-color: var(--blue); }
.main { padding: 26px; overflow-x: auto; }
.topbar { display:flex; justify-content: space-between; align-items:center; gap:16px; margin-bottom: 22px; }
.grid { display: grid; gap: 16px; }
.grid.cards { grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); }
.card { padding: 18px; }
.card .number { font-size: 32px; font-weight: 800; }
.row { display: flex; gap: 12px; align-items: end; flex-wrap: wrap; }
.row > * { flex: 1; min-width: 160px; }
.table-wrap { overflow: auto; border: 1px solid var(--line); border-radius: 16px; }
table { width: 100%; border-collapse: collapse; min-width: 760px; }
th, td { border-bottom: 1px solid var(--line); border-right: 1px solid var(--line); padding: 10px; vertical-align: top; }
th { background: var(--panel-2); color: #dce7ff; text-align: left; position: sticky; top: 0; z-index: 1; }
td { background: var(--cell); }
td.free { background: rgba(34,197,94,.10); }
td.occupied { background: rgba(148,163,184,.10); color: #d8def0; }
td.mine { background: rgba(96,165,250,.20); border: 1px solid rgba(96,165,250,.55); }
td.past { opacity: .48; background: rgba(148,163,184,.08); }
.cell-title { font-weight: 700; margin-bottom: 6px; }
.badge { display: inline-block; padding: 4px 8px; border-radius: 999px; background: var(--panel-2); color: var(--muted); font-size: 12px; }
.badge.good { background: rgba(34,197,94,.15); color: #bbf7d0; }
.badge.warn { background: rgba(245,158,11,.16); color: #fde68a; }
.badge.bad { background: rgba(239,68,68,.16); color: #fecaca; }
.tabs { display:flex; gap:10px; flex-wrap: wrap; margin: 18px 0; }
.tabs button { width: auto; min-width: 110px; }
.hidden { display: none !important; }
.section { display:none; }
.section.active { display:block; }
hr { border: 0; border-top: 1px solid var(--line); margin: 22px 0; }
.notice { padding: 12px 14px; border-radius: 12px; background: rgba(96,165,250,.12); border: 1px solid rgba(96,165,250,.35); color: #dbeafe; margin: 12px 0; }
@media (max-width: 850px) {
  .app-shell { grid-template-columns: 1fr; }
  .sidebar { border-right: none; border-bottom: 1px solid var(--line); }
  .main { padding: 16px; }
  .topbar { align-items: start; flex-direction: column; }
}
.mt { margin-top: 18px; }
.mt-small { margin-top: 8px; }
.section-gap { margin-top: 24px; }
.checkbox-label { display:flex; gap:8px; align-items:center; margin:0; }
.checkbox-label input { width:auto; }
