/* admin.css — Shree Shyam Living (admin side) */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,500;9..144,600&family=Work+Sans:wght@400;500;600&display=swap');

:root {
  --color-bg: #FBF8F3;
  --color-surface: #FFFFFF;
  --color-ink: #241F1C;
  --color-ink-muted: #756E66;
  --color-primary: #1F3B4D;
  --color-primary-dark: #142834;
  --color-accent: #C9973D;
  --color-accent-soft: #F3E4C4;
  --color-success: #2E7D4F;
  --color-success-bg: #E7F3EC;
  --color-danger: #B0413E;
  --color-danger-bg: #FBEAE9;
  --color-border: #E7E1D8;

  --radius: 10px;
  --radius-lg: 16px;
  --shadow: 0 1px 2px rgba(36, 31, 28, 0.06), 0 8px 24px rgba(36, 31, 28, 0.05);

  --font-display: 'Fraunces', serif;
  --font-body: 'Work Sans', sans-serif;

  --sidebar-w: 220px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: var(--font-body);
  background: var(--color-bg);
  color: var(--color-ink);
}

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 600;
  margin: 0;
  color: var(--color-primary-dark);
}

button, input, select {
  font-family: inherit;
  font-size: inherit;
}

/* ---------- Login page (no sidebar) ---------- */

.auth-shell {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: 32px 28px;
  width: 100%;
  max-width: 360px;
}

.brand-name {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 600;
  color: var(--color-primary-dark);
  text-align: center;
  display: block;
  margin-bottom: 4px;
}

.brand-sub {
  text-align: center;
  color: var(--color-ink-muted);
  font-size: 13px;
  margin-bottom: 24px;
}

.pin-row {
  display: flex;
  gap: 10px;
  justify-content: center;
  margin-bottom: 20px;
}

.pin-row input {
  width: 46px;
  height: 54px;
  text-align: center;
  font-size: 22px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  outline: none;
}

.pin-row input:focus { border-color: var(--color-primary); }

.error-text {
  color: var(--color-danger);
  font-size: 13px;
  text-align: center;
  margin-bottom: 14px;
  min-height: 16px;
}

/* ---------- Layout with sidebar ---------- */

.admin-layout {
  display: flex;
  min-height: 100vh;
}

.sidebar {
  width: var(--sidebar-w);
  background: var(--color-primary-dark);
  color: #fff;
  padding: 24px 16px;
  flex-shrink: 0;
}

.sidebar .brand-name {
  color: #fff;
  text-align: left;
  font-size: 17px;
  margin-bottom: 2px;
}

.sidebar .brand-sub {
  text-align: left;
  color: #9FB0BB;
  margin-bottom: 26px;
}

.nav-link {
  display: block;
  padding: 10px 12px;
  border-radius: var(--radius);
  color: #C7D3DA;
  text-decoration: none;
  font-size: 14px;
  margin-bottom: 4px;
  cursor: pointer;
  border: none;
  background: none;
  width: 100%;
  text-align: left;
}

.nav-link:hover { background: rgba(255,255,255,0.06); color: #fff; }
.nav-link.active { background: var(--color-accent); color: var(--color-primary-dark); font-weight: 500; }

.main-content {
  flex: 1;
  padding: 28px 32px 60px;
  max-width: 1100px;
}

.page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 22px;
}

.page-header p {
  color: var(--color-ink-muted);
  font-size: 14px;
  margin-top: 4px;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 18px;
  border-radius: var(--radius);
  border: 1px solid transparent;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
}

.btn-primary { background: var(--color-primary); color: #fff; }
.btn-primary:hover { background: var(--color-primary-dark); }

.btn-accent { background: var(--color-accent); color: #fff; }
.btn-accent:hover { opacity: 0.9; }

.btn-outline { background: transparent; border-color: var(--color-border); color: var(--color-ink-muted); }
.btn-outline:hover { border-color: var(--color-primary); color: var(--color-primary); }

.btn-danger-outline { background: transparent; border-color: var(--color-danger); color: var(--color-danger); }
.btn-danger-outline:hover { background: var(--color-danger-bg); }

.btn:disabled { opacity: 0.5; cursor: not-allowed; }
.btn-sm { padding: 7px 12px; font-size: 13px; }
.btn-full { width: 100%; }

/* ---------- Stat cards ---------- */

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 14px;
  margin-bottom: 28px;
}

.stat-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 18px;
}

.stat-card .label {
  font-size: 12px;
  color: var(--color-ink-muted);
  margin-bottom: 8px;
}

.stat-card .value {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 600;
}

.stat-card.highlight {
  background: var(--color-primary);
}
.stat-card.highlight .label { color: #C7D3DA; }
.stat-card.highlight .value { color: #fff; }

/* ---------- Generic form/card blocks ---------- */

.panel {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 22px;
  margin-bottom: 22px;
}

.panel h3 { font-size: 16px; margin-bottom: 14px; }

.form-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 12px;
  margin-bottom: 12px;
}

.field label {
  display: block;
  font-size: 12px;
  font-weight: 500;
  color: var(--color-ink-muted);
  margin-bottom: 6px;
}

.field input, .field select {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  background: #fff;
  outline: none;
}

.field input:focus, .field select:focus { border-color: var(--color-primary); }

/* ---------- PG / Room cards ---------- */

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 14px;
}

.entity-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 18px;
}

.entity-card .title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 16px;
  margin-bottom: 4px;
}

.entity-card .sub {
  font-size: 13px;
  color: var(--color-ink-muted);
  margin-bottom: 12px;
}

.badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 500;
  background: var(--color-accent-soft);
  color: #8A6314;
}

.room-tile {
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius);
  padding: 14px;
  cursor: pointer;
  transition: border-color 0.15s ease;
}

.room-tile:hover { border-color: var(--color-accent); }

.room-tile.selected { border-color: var(--color-primary); background: #F1F5F7; }

.room-tile.full {
  opacity: 0.5;
  cursor: not-allowed;
  background: #F5F2EC;
}

.room-tile .room-no { font-weight: 600; font-size: 15px; }
.room-tile .room-meta { font-size: 12px; color: var(--color-ink-muted); margin-top: 4px; }

.seats-left { color: var(--color-success); }
.seats-full { color: var(--color-danger); }

/* ---------- Tables ---------- */

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.data-table th {
  text-align: left;
  font-size: 12px;
  color: var(--color-ink-muted);
  font-weight: 500;
  padding: 10px;
  border-bottom: 1px solid var(--color-border);
}

.data-table td {
  padding: 12px 10px;
  border-bottom: 1px solid var(--color-border);
  vertical-align: middle;
}

.chip {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 500;
}
.chip.paid { background: var(--color-success-bg); color: var(--color-success); }
.chip.due { background: var(--color-danger-bg); color: var(--color-danger); }

.toggle-btn {
  border: 1px solid var(--color-border);
  background: #fff;
  border-radius: var(--radius);
  padding: 6px 12px;
  font-size: 12px;
  cursor: pointer;
}
.toggle-btn:hover { border-color: var(--color-primary); }

.member-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--color-border);
}

.member-row img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
}

.member-row .info { flex: 1; }
.member-row .info .name { font-weight: 500; font-size: 14px; }
.member-row .info .meta { font-size: 12px; color: var(--color-ink-muted); }

.empty-state {
  text-align: center;
  color: var(--color-ink-muted);
  padding: 40px 10px;
  font-size: 14px;
}

.link-plain {
  font-size: 13px;
  color: var(--color-primary);
  text-decoration: none;
  font-weight: 500;
}

/* ---------- Toast ---------- */

.toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  transform: translate(-50%, 12px);
  background: var(--color-primary-dark);
  color: #fff;
  padding: 12px 20px;
  border-radius: var(--radius);
  font-size: 14px;
  opacity: 0;
  transition: opacity 0.25s ease, transform 0.25s ease;
  z-index: 999;
  max-width: 90vw;
  text-align: center;
}
.toast--visible { opacity: 1; transform: translate(-50%, 0); }
.toast--danger { background: var(--color-danger); }
.toast--success { background: var(--color-success); }

/* ---------- Responsive ---------- */

@media (max-width: 800px) {
  .admin-layout { flex-direction: column; }
  .sidebar { width: 100%; display: flex; align-items: center; gap: 4px; padding: 14px 16px; overflow-x: auto; }
  .sidebar .brand-name, .sidebar .brand-sub { display: none; }
  .nav-link { white-space: nowrap; margin-bottom: 0; }
  .main-content { padding: 20px 16px 48px; }
}

/* ---------- v2 polish ---------- */
.sidebar { background: linear-gradient(180deg, #1F3B4D, #0E1F2A); }
.nav-link { transition: all .15s; }
.nav-link.active { box-shadow: 0 4px 14px rgba(201,151,61,.35); }
.stat-card, .entity-card, .panel { transition: transform .15s, box-shadow .15s; }
.stat-card:hover, .entity-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.stat-card.highlight { background: linear-gradient(135deg, #1F3B4D, #2E5A73); }
.page-header h2 { font-size: 26px; }
.btn-group { display: flex; gap: 8px; flex-wrap: wrap; }
.muted { color: var(--color-ink-muted); font-size: 13px; }
.entity-card .cover { width: 100%; height: 130px; object-fit: cover; border-radius: 10px; margin-bottom: 12px; display: block; background: #eee; }
.entity-card .cover.ph { display: flex; align-items: center; justify-content: center; font-size: 40px; background: var(--color-accent-soft); }
.previews, .gallery { display: flex; gap: 10px; overflow-x: auto; margin-bottom: 14px; }
.previews img, .gallery img { height: 90px; border-radius: 10px; object-fit: cover; cursor: pointer; flex-shrink: 0; }
.gallery img { height: 150px; }
.floor-row { display: grid; grid-template-columns: 110px 1fr 100px 100px; gap: 8px; align-items: center; margin-bottom: 8px; }
.floor-row input, .floor-row select { padding: 9px 10px; border: 1px solid var(--color-border); border-radius: var(--radius); min-width: 0; }
.floor-block { margin-bottom: 26px; }
.floor-head { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.modal { position: fixed; inset: 0; background: rgba(14,31,42,.6); display: none; align-items: center; justify-content: center; padding: 16px; z-index: 1000; }
.modal.open { display: flex; }
.modal-box { background: #fff; border-radius: 16px; padding: 22px; width: 100%; max-width: 520px; max-height: 90vh; overflow: auto; position: relative; }
.modal-x { position: absolute; top: 10px; right: 12px; border: 0; background: none; font-size: 18px; cursor: pointer; }
.doc-img { width: 100%; border-radius: 10px; margin: 10px 0; cursor: zoom-in; }
.doc-img.zoom { transform: scale(1.8); transform-origin: top left; cursor: zoom-out; }
.modal-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
.inv-head, .inv-meta { display: flex; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.inv-meta span { display: block; font-size: 11px; } .inv-meta b { display: block; }
.r { text-align: right; } .tot td { font-weight: 700; font-size: 16px; }
@media (max-width: 800px) { .floor-row { grid-template-columns: 1fr 1fr; } .floor-row b, .floor-row .fRooms { grid-column: span 2; } }
@media print { body * { visibility: hidden; } #invoice, #invoice * { visibility: visible; } #invoice { position: absolute; left: 0; top: 0; width: 100%; } }

.room-bill { border: 1px solid var(--color-border); border-radius: 12px; padding: 16px; margin-bottom: 16px; }
.rb-head { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.meter-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 10px; margin-bottom: 10px; }
.calc { background: #F1F5F7; border-radius: 10px; padding: 10px 12px; margin-bottom: 12px; font-size: 13px; }

/* billing flow */
.step { font-size: 15px; margin: 4px 0 12px; color: var(--color-ink-muted); font-family: var(--font-body); font-weight: 500; }
.crumbs { font-size: 13px; color: var(--color-ink-muted); margin-bottom: 14px; }
.crumbs a { color: var(--color-primary); font-weight: 500; cursor: pointer; }
.pick { cursor: pointer; }
.chip.pending { background: #FFF4DC; color: #8A6314; }
.room-tile .chip { margin-top: 8px; }
.entity-card .chip { margin-top: 4px; }
.inv-head { padding-right: 28px; align-items: flex-start; }
.inv-head .chip { align-self: flex-start; flex-shrink: 0; white-space: nowrap; }
.rb-head .chip, .rb-head .badge { align-self: center; white-space: nowrap; }

/* =====================  PREMIUM THEME  ===================== */
:root { --radius: 14px; --radius-lg: 20px; --shadow: 0 2px 4px rgba(15,32,43,.05), 0 14px 34px rgba(15,32,43,.08); --gold-grad: linear-gradient(135deg,#D9A94A,#B98325); --navy-grad: linear-gradient(135deg,#24485E,#12303F); }
body { background: radial-gradient(900px 420px at 95% -8%, #F3E4C4 0%, transparent 62%), radial-gradient(700px 400px at -5% 105%, #E3ECF1 0%, transparent 60%), var(--color-bg); background-attachment: fixed; }
::-webkit-scrollbar { width: 8px; height: 8px; } ::-webkit-scrollbar-thumb { background: #CFC7BA; border-radius: 8px; }
@keyframes rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes pop { from { opacity: 0; transform: scale(.96) translateY(8px); } to { opacity: 1; transform: none; } }
.main-content > * { animation: rise .4s ease both; }
.main-content > *:nth-child(2) { animation-delay: .05s; } .main-content > *:nth-child(3) { animation-delay: .1s; } .main-content > *:nth-child(4) { animation-delay: .15s; }

/* sidebar */
.sidebar { background: linear-gradient(180deg,#1B3A4D 0%,#10283A 55%,#0A1A26 100%); box-shadow: 6px 0 30px rgba(10,26,38,.25); position: sticky; top: 0; height: 100vh; }
.sidebar .brand-name { font-size: 21px; letter-spacing: .2px; }
.sidebar .brand-name::after { content: ""; display: block; width: 34px; height: 3px; margin-top: 8px; border-radius: 3px; background: var(--gold-grad); }
.sidebar .brand-sub { margin-top: 6px; letter-spacing: 1.4px; text-transform: uppercase; font-size: 10.5px; }
.nav-link { display: flex; align-items: center; gap: 12px; padding: 11px 14px; border-radius: 12px; font-weight: 500; }
.nav-link::before { width: 26px; height: 26px; display: inline-flex; align-items: center; justify-content: center; border-radius: 8px; background: rgba(255,255,255,.07); font-size: 14px; }
.nav-link[href="dashboard.html"]::before { content: "📊"; } .nav-link[href="pending-customers.html"]::before { content: "🪪"; }
.nav-link[href="pg-list.html"]::before { content: "🏢"; } .nav-link[href="billing.html"]::before { content: "🧾"; }
.nav-link[href="reports.html"]::before { content: "📈"; } #logoutBtn::before { content: "⏻"; }
.nav-link:hover { background: rgba(255,255,255,.08); transform: translateX(3px); }
.nav-link.active { background: var(--gold-grad); color: #13212B; font-weight: 600; box-shadow: 0 8px 20px rgba(201,151,61,.38); }
.nav-link.active::before { background: rgba(255,255,255,.35); }
#logoutBtn { margin-top: 28px !important; border-top: 1px solid rgba(255,255,255,.08); border-radius: 0 0 12px 12px; padding-top: 16px; }

/* headings, panels, cards */
.page-header h2 { font-size: 30px; letter-spacing: -.4px; }
.panel, .stat-card, .entity-card, .card { border-color: rgba(231,225,216,.9); box-shadow: var(--shadow); }
.panel { padding: 26px; }
.panel h3 { font-size: 18px; }
.entity-card { transition: transform .2s, box-shadow .2s, border-color .2s; overflow: hidden; }
.entity-card:hover, .pick:hover { transform: translateY(-4px); box-shadow: 0 4px 8px rgba(15,32,43,.06), 0 22px 44px rgba(15,32,43,.14); border-color: var(--color-accent); }
.entity-card .cover { height: 150px; margin: -18px -18px 14px; width: calc(100% + 36px); border-radius: 0; transition: transform .4s; }
.entity-card:hover .cover { transform: scale(1.04); }
.entity-card .cover.ph { background: linear-gradient(135deg,#F3E4C4,#E6C98A); }
.room-tile { border-radius: 16px; padding: 16px; background: #fff; box-shadow: 0 1px 2px rgba(15,32,43,.05); transition: all .2s; }
.room-tile:hover { transform: translateY(-3px); border-color: var(--color-accent); box-shadow: var(--shadow); }
.room-tile .room-no { font-family: var(--font-display); font-size: 18px; }
.badge { background: linear-gradient(135deg,#F7EBCF,#EFD9A3); color: #7A5410; }
.chip { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; letter-spacing: .2px; }
.chip::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.crumbs { display: inline-block; background: #fff; border: 1px solid var(--color-border); padding: 8px 16px; border-radius: 999px; box-shadow: 0 1px 2px rgba(15,32,43,.05); }

/* stat cards */
.stat-card { position: relative; overflow: hidden; padding: 20px; }
.stat-card .value { font-size: 30px; margin-top: 2px; }
#statsGrid .stat-card::after { position: absolute; right: 14px; top: 14px; width: 38px; height: 38px; display: flex; align-items: center; justify-content: center; border-radius: 12px; background: #F6F1E7; font-size: 19px; }
#statsGrid .stat-card:nth-child(1)::after { content: "🏢"; } #statsGrid .stat-card:nth-child(2)::after { content: "🚪"; }
#statsGrid .stat-card:nth-child(3)::after { content: "👥"; } #statsGrid .stat-card:nth-child(4)::after { content: "⏳"; }
#statsGrid .stat-card:nth-child(5)::after { content: "💰"; background: rgba(255,255,255,.14); }
.stat-card.highlight { background: var(--navy-grad); box-shadow: 0 16px 34px rgba(18,48,63,.35); }
.stat-card.highlight::before { content: ""; position: absolute; right: -30px; bottom: -40px; width: 130px; height: 130px; border-radius: 50%; background: radial-gradient(circle,rgba(217,169,74,.45),transparent 70%); }

/* quick actions (dashboard) */
.quick { display: grid; grid-template-columns: repeat(4,1fr); gap: 14px; margin-bottom: 24px; }
.qa { display: flex; align-items: center; gap: 12px; padding: 16px; background: #fff; border: 1px solid var(--color-border); border-radius: 16px; text-decoration: none; color: var(--color-primary-dark); font-weight: 600; font-size: 14px; box-shadow: var(--shadow); transition: all .2s; }
.qa span { width: 40px; height: 40px; display: flex; align-items: center; justify-content: center; border-radius: 12px; background: linear-gradient(135deg,#F7EBCF,#EFD9A3); font-size: 19px; }
.qa:hover { transform: translateY(-3px); border-color: var(--color-accent); }

/* buttons & inputs */
.btn { border-radius: 12px; padding: 12px 20px; transition: all .18s; letter-spacing: .1px; }
.btn:hover:not(:disabled) { transform: translateY(-1px); }
.btn-primary { background: var(--navy-grad); box-shadow: 0 8px 18px rgba(18,48,63,.28); }
.btn-accent { background: var(--gold-grad); color: #1B1408; font-weight: 600; box-shadow: 0 8px 18px rgba(185,131,37,.32); }
.btn-accent:hover { opacity: 1; box-shadow: 0 12px 24px rgba(185,131,37,.42); }
.btn-outline { background: #fff; }
.field input, .field select { padding: 12px 14px; border-radius: 12px; background: #FDFCFA; transition: all .15s; }
.field input:focus, .field select:focus { border-color: var(--color-accent); background: #fff; box-shadow: 0 0 0 4px rgba(201,151,61,.18); }
.field label { text-transform: uppercase; letter-spacing: .6px; font-size: 10.5px; }
.calc { background: linear-gradient(135deg,#F1F5F7,#E8EFF3); border: 1px solid #DCE6EC; border-radius: 14px; padding: 14px 16px; }
.room-bill, .floor-row { border-radius: 14px; }

/* tables, members */
.data-table th { text-transform: uppercase; letter-spacing: .7px; font-size: 10.5px; }
.data-table tbody tr { transition: background .15s; } .data-table tbody tr:hover { background: #FBF8F1; }
.member-row { padding: 14px 6px; border-radius: 12px; transition: background .15s; } .member-row:hover { background: #FBF8F1; }
.member-row img { width: 46px; height: 46px; border: 2px solid var(--color-accent-soft); }
.empty-state { background: repeating-linear-gradient(135deg,transparent 0 12px,rgba(201,151,61,.04) 12px 24px); border-radius: 16px; }

/* modal */
.modal { backdrop-filter: blur(7px); background: rgba(10,26,38,.55); }
.modal-box { border-radius: 24px; padding: 28px; box-shadow: 0 30px 80px rgba(0,0,0,.4); animation: pop .28s ease both; }
.modal-x { width: 32px; height: 32px; border-radius: 50%; background: #F3EFE8; }
.invoice { border-top: 5px solid; border-image: var(--gold-grad) 1; padding-top: 16px; }
.tot td { background: #FBF8F1; }

/* login */
body:has(.auth-shell) { background: radial-gradient(700px 500px at 20% 10%,#2C5670 0%,transparent 60%), linear-gradient(160deg,#173446,#0A1A26); }
.auth-shell .card { border-radius: 26px; padding: 40px 32px; box-shadow: 0 30px 80px rgba(0,0,0,.45); animation: pop .5s ease both; }
.pin-row input { border-radius: 14px; background: #FDFCFA; font-size: 24px; }
.pin-row input:focus { border-color: var(--color-accent); box-shadow: 0 0 0 4px rgba(201,151,61,.2); }

/* mobile */
body .bottom-nav { background: rgba(255,255,255,.88); backdrop-filter: blur(16px); border-top: 0; box-shadow: 0 -10px 34px rgba(15,32,43,.14); border-radius: 22px 22px 0 0; }
body .bottom-nav a.active { color: var(--color-primary-dark); font-weight: 600; }
@media (max-width: 800px) {
  .sidebar { position: static; height: auto; }
  .quick { grid-template-columns: repeat(2,1fr); }
  .page-header h2 { font-size: 25px; }
  .panel { padding: 18px; }
  .entity-card .cover { height: 130px; }
}

/* ===== fixed left sidebar (never moves on scroll) ===== */
.admin-layout { display: block; }
.sidebar { position: fixed; top: 0; left: 0; bottom: 0; height: auto; width: var(--sidebar-w); overflow-y: auto; z-index: 60; }
.main-content { margin-left: var(--sidebar-w); max-width: none; }
.main-content > * { max-width: 1100px; }
@media (max-width: 800px) {
  .main-content { margin-left: 0; }
}

/* room filters */
.filter-bar { display: flex; flex-direction: column; gap: 12px; background: #fff; border: 1px solid var(--color-border); border-radius: 18px; padding: 16px 18px; margin-bottom: 22px; box-shadow: var(--shadow); }
.filter-bar:empty { display: none; }
.fgroup { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.fgroup > span { width: 54px; font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .7px; color: var(--color-ink-muted); }
.fchip { border: 1px solid var(--color-border); background: #fff; border-radius: 999px; padding: 7px 14px; font-size: 13px; font-weight: 500; color: var(--color-ink); cursor: pointer; transition: all .15s; }
.fchip:hover { border-color: var(--color-accent); }
.fchip em { font-style: normal; font-size: 11px; background: #F3EFE8; border-radius: 999px; padding: 1px 8px; margin-left: 4px; }
.fchip.on { background: var(--navy-grad); color: #fff; border-color: transparent; box-shadow: 0 6px 14px rgba(18,48,63,.25); }
.fchip.on em { background: rgba(255,255,255,.22); }
.chip.occ { background: #E8EFF3; color: #1F3B4D; }
.chip.vac { background: var(--color-success-bg); color: var(--color-success); }
@media (max-width: 800px) { .fgroup { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 4px; } .fgroup > span { flex: none; } .fchip { flex: none; } }