/* ============================================================
   HOTEL BIBHA PALACE — COMMERCIAL ADMIN PANEL v3.1
   Design: Refined Luxury Dark — Deep Slate + Warm Gold + Ivory
   v3.1 FIXES: sidebar overlap, page-wrapper, sticky summary,
               footer margin, maintenance badge, responsive
============================================================ */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@500;600;700&family=Plus+Jakarta+Sans:wght@300;400;500;600;700&display=swap');

:root {
  --sidebar-w:  220px;
  --topbar-h:   62px;
  --ink:        #0d1117;
  --slate:      #141c2e;
  --slate-mid:  #1e2a42;
  --slate-edge: #29375a;
  --gold:       #d4a843;
  --gold-light: #f0c96a;
  --gold-dim:   #9a7420;
  --ivory:      #f9f5ed;
  --ivory-dark: #ede8da;
  --emerald:    #059669;
  --emerald-lt: #d1fae5;
  --crimson:    #dc2626;
  --crimson-lt: #fee2e2;
  --sapphire:   #2563eb;
  --sapphire-lt:#dbeafe;
  --amber:      #d97706;
  --amber-lt:   #fef3c7;
  --violet:     #7c3aed;
  --violet-lt:  #ede9fe;
  --rose:       #e11d48;
  --bg-page:    #f2efe8;
  --bg-card:    #ffffff;
  --border:     #e8e3d8;
  --border-dk:  #d0c9b8;
  --text-head:  #1a1a2e;
  --text-body:  #374151;
  --text-muted: #6b7280;
  --text-light: #9ca3af;
  --t-primary:  #f0ebe0;
  --t-muted:    #7a8ba8;
  --radius:     12px;
  --radius-sm:  8px;
  --radius-xs:  5px;
  --shadow-xs:  0 1px 3px rgba(13,17,23,.06);
  --shadow-sm:  0 2px 10px rgba(13,17,23,.08);
  --shadow-md:  0 6px 24px rgba(13,17,23,.12);
  --shadow-lg:  0 16px 48px rgba(13,17,23,.18);
  --shadow-xl:  0 32px 80px rgba(13,17,23,.24);
  --font-head:  'Playfair Display', Georgia, serif;
  --font-body:  'Plus Jakarta Sans', -apple-system, sans-serif;
  --ease:       all .2s cubic-bezier(.4,0,.2,1);
}

/* ── RESET ─────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { height: 100%; scroll-behavior: smooth; }
body { font-family: var(--font-body); font-size: 13.5px; background: var(--bg-page); color: var(--text-body); -webkit-font-smoothing: antialiased; min-height: 100vh; }
a { text-decoration: none; color: inherit; transition: var(--ease); }
::-webkit-scrollbar { width: 5px; height: 5px; }
::-webkit-scrollbar-thumb { background: var(--slate-edge); border-radius: 99px; }

/* ── TOPBAR ────────────────────────────────────────── */
.topbar { position: fixed; top: 0; left: 0; right: 0; height: var(--topbar-h); background: var(--ink); display: flex; align-items: center; justify-content: space-between; padding: 0 20px; z-index: 1040; border-bottom: 1px solid rgba(212,168,67,.15); box-shadow: 0 4px 20px rgba(0,0,0,.35); gap: 12px; }
.topbar-brand { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.brand-crest { width: 36px; height: 36px; background: linear-gradient(135deg, var(--gold), var(--gold-dim)); border-radius: var(--radius-sm); display: flex; align-items: center; justify-content: center; font-size: 17px; box-shadow: 0 4px 12px rgba(212,168,67,.3); flex-shrink: 0; }
.brand-name { font-family: var(--font-head); font-size: 15px; font-weight: 600; color: var(--ivory); white-space: nowrap; }
.brand-sub { font-size: 9px; color: var(--t-muted); letter-spacing: 1.2px; text-transform: uppercase; }
.topbar-center { display: flex; align-items: center; gap: 10px; flex: 1; max-width: 460px; margin: 0 16px; }
.topbar-search { flex: 1; position: relative; }
.topbar-search input { width: 100%; background: var(--slate); border: 1px solid var(--slate-edge); color: var(--t-primary); border-radius: 22px; padding: 7px 14px 7px 36px; font-family: var(--font-body); font-size: 12.5px; transition: var(--ease); }
.topbar-search input::placeholder { color: var(--t-muted); }
.topbar-search input:focus { outline: none; border-color: var(--gold); background: var(--slate-mid); box-shadow: 0 0 0 3px rgba(212,168,67,.12); }
.topbar-search .si { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--t-muted); font-size: 13px; pointer-events: none; }
.btn-new-booking { background: linear-gradient(135deg, var(--gold), var(--gold-dim)); color: #1a1200; font-family: var(--font-body); font-weight: 700; font-size: 12px; padding: 7px 14px; border-radius: var(--radius-sm); border: none; cursor: pointer; white-space: nowrap; box-shadow: 0 4px 12px rgba(212,168,67,.25); transition: var(--ease); display: flex; align-items: center; gap: 5px; }
.btn-new-booking:hover { transform: translateY(-1px); box-shadow: 0 6px 18px rgba(212,168,67,.35); color: #1a1200; }
.topbar-right { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.topbar-icon-btn { width: 34px; height: 34px; border-radius: var(--radius-sm); background: var(--slate); border: 1px solid var(--slate-edge); color: var(--t-muted); display: flex; align-items: center; justify-content: center; cursor: pointer; font-size: 14px; transition: var(--ease); position: relative; flex-shrink: 0; }
.topbar-icon-btn:hover { background: var(--slate-mid); color: var(--gold); border-color: rgba(212,168,67,.3); }
.notif-dot { position: absolute; top: 5px; right: 5px; width: 6px; height: 6px; border-radius: 50%; background: var(--rose); border: 1.5px solid var(--ink); }
.user-chip { display: flex; align-items: center; gap: 7px; background: var(--slate); border: 1px solid var(--slate-edge); border-radius: 22px; padding: 3px 10px 3px 3px; cursor: pointer; transition: var(--ease); }
.user-chip:hover { border-color: rgba(212,168,67,.35); }
.uc-avatar { width: 26px; height: 26px; border-radius: 50%; background: linear-gradient(135deg, var(--sapphire), var(--violet)); display: flex; align-items: center; justify-content: center; font-size: 10px; font-weight: 700; color: #fff; flex-shrink: 0; }
.uc-name { font-size: 11.5px; font-weight: 600; color: var(--t-primary); white-space: nowrap; }
.uc-role { font-size: 9px; color: var(--t-muted); text-transform: uppercase; letter-spacing: .5px; }
.topbar-logout { display: flex; align-items: center; gap: 5px; background: transparent; border: 1px solid rgba(220,38,38,.3); color: #f87171; border-radius: var(--radius-xs); padding: 6px 10px; font-size: 12px; font-weight: 500; cursor: pointer; transition: var(--ease); white-space: nowrap; }
.topbar-logout:hover { background: rgba(220,38,38,.1); border-color: var(--crimson); color: #f87171; }
.sidebar-toggle-btn { background: none; border: none; color: var(--t-muted); font-size: 20px; cursor: pointer; padding: 4px; display: none; transition: var(--ease); flex-shrink: 0; }
.sidebar-toggle-btn:hover { color: var(--gold); }

/* ── PAGE WRAPPER (KEY FIX) ────────────────────────
   Use padding-left instead of margin-left on children.
   This prevents any overlap between fixed sidebar and content.
─────────────────────────────────────────────────── */
.page-wrapper {
  padding-top: var(--topbar-h);
  padding-left: var(--sidebar-w);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  transition: padding-left .28s cubic-bezier(.4,0,.2,1);
}

/* ── SIDEBAR ───────────────────────────────────────── */
.sidebar { position: fixed; top: var(--topbar-h); left: 0; width: var(--sidebar-w); height: calc(100vh - var(--topbar-h)); background: var(--slate); display: flex; flex-direction: column; overflow-y: auto; overflow-x: hidden; z-index: 1030; transition: transform .28s cubic-bezier(.4,0,.2,1); border-right: 1px solid rgba(255,255,255,.04); }
.sidebar::-webkit-scrollbar { width: 3px; }
.sidebar::-webkit-scrollbar-thumb { background: var(--slate-edge); }
.sidebar-hotel { padding: 16px 14px 12px; border-bottom: 1px solid rgba(255,255,255,.05); display: flex; align-items: center; gap: 9px; }
.sidebar-hotel-icon { width: 30px; height: 30px; background: linear-gradient(135deg, rgba(212,168,67,.2), rgba(212,168,67,.05)); border: 1px solid rgba(212,168,67,.2); border-radius: var(--radius-xs); display: flex; align-items: center; justify-content: center; font-size: 13px; flex-shrink: 0; }
.sidebar-hotel-name { font-family: var(--font-head); font-size: 12.5px; font-weight: 600; color: var(--gold-light); line-height: 1.2; }
.sidebar-hotel-tag { font-size: 9px; color: var(--t-muted); letter-spacing: 1px; text-transform: uppercase; }
.sidebar-section { padding: 14px 10px 4px; }
.sidebar-section-label { font-size: 9px; font-weight: 700; letter-spacing: 1.5px; color: rgba(122,139,168,.4); text-transform: uppercase; padding: 0 8px; margin-bottom: 4px; }
.sidebar-link { display: flex; align-items: center; gap: 9px; padding: 8px 10px; border-radius: var(--radius-xs); color: var(--t-muted); font-size: 12.5px; font-weight: 400; transition: var(--ease); position: relative; margin-bottom: 1px; }
.sidebar-link i { font-size: 14px; min-width: 16px; }
.sidebar-link:hover { background: var(--slate-mid); color: var(--t-primary); }
.sidebar-link.active { background: linear-gradient(90deg, rgba(212,168,67,.14) 0%, transparent 100%); color: var(--gold-light); font-weight: 600; }
.sidebar-link.active::before { content: ''; position: absolute; left: 0; top: 5px; bottom: 5px; width: 3px; background: var(--gold); border-radius: 0 3px 3px 0; }
.sidebar-badge { margin-left: auto; background: var(--rose); color: #fff; font-size: 9px; font-weight: 700; padding: 2px 6px; border-radius: 10px; }
.sidebar-footer { margin-top: auto; padding: 12px 14px; border-top: 1px solid rgba(255,255,255,.04); }
.sidebar-footer-text { font-size: 10px; color: rgba(122,139,168,.4); text-align: center; }

/* ── MAIN CONTENT ──────────────────────────────────
   No margin-left needed — page-wrapper padding handles it.
   min-width:0 prevents flex children from overflowing.
─────────────────────────────────────────────────── */
.main-content { flex: 1; padding: 24px 26px; width: 100%; min-width: 0; overflow-x: hidden; }

/* ── FOOTER ────────────────────────────────────────
   Also inside page-wrapper, so no margin-left needed.
─────────────────────────────────────────────────── */
.footer { background: var(--ink); color: var(--t-muted); font-size: 11.5px; padding: 13px 26px; border-top: 1px solid rgba(212,168,67,.1); width: 100%; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.footer-brand { color: var(--gold); font-family: var(--font-head); font-size: 13px; font-weight: 600; }
.footer-links { display: flex; gap: 16px; }
.footer-links a { color: var(--t-muted); font-size: 11.5px; }
.footer-links a:hover { color: var(--gold); }

/* ── PAGE TITLE ─────────────────────────────────── */
.page-title { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 22px; gap: 12px; flex-wrap: wrap; }
.page-title h4 { font-family: var(--font-head); font-weight: 700; font-size: 21px; color: var(--text-head); margin: 0 0 4px; display: flex; align-items: center; gap: 8px; }
.page-title h4 i { color: var(--gold); font-size: 19px; }
.breadcrumb { font-size: 11.5px; background: none; padding: 0; margin: 0; }
.breadcrumb-item + .breadcrumb-item::before { color: var(--text-muted); }
.breadcrumb-item a { color: var(--sapphire); }
.breadcrumb-item.active { color: var(--text-muted); }

/* ── STAT CARDS ─────────────────────────────────── */
.stat-card { border-radius: var(--radius); padding: 20px 18px; color: #fff; position: relative; overflow: hidden; border: none; transition: var(--ease); box-shadow: var(--shadow-sm); }
.stat-card::after { content: ''; position: absolute; inset: 0; background: linear-gradient(135deg, rgba(255,255,255,.06) 0%, transparent 60%); border-radius: var(--radius); pointer-events: none; }
.stat-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.stat-label { font-size: 10px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; opacity: .7; margin-bottom: 8px; }
.stat-value { font-family: var(--font-head); font-size: 28px; font-weight: 700; line-height: 1; margin-bottom: 6px; }
.stat-sub { font-size: 11px; opacity: .65; }
.stat-icon { position: absolute; right: 12px; bottom: 6px; font-size: 52px; opacity: .1; pointer-events: none; }
.stat-trend { display: inline-flex; align-items: center; gap: 3px; font-size: 10px; font-weight: 600; background: rgba(255,255,255,.15); border-radius: 20px; padding: 2px 8px; margin-top: 7px; }
.sc-gold   { background: linear-gradient(135deg, #92650a, #c4901e); }
.sc-blue   { background: linear-gradient(135deg, #1a4391, #1e53b8); }
.sc-green  { background: linear-gradient(135deg, #065f46, #059669); }
.sc-rose   { background: linear-gradient(135deg, #9f1239, #e11d48); }
.sc-violet { background: linear-gradient(135deg, #5b21b6, #7c3aed); }
.sc-teal   { background: linear-gradient(135deg, #0f766e, #0d9488); }
.sc-slate  { background: linear-gradient(135deg, #1e2a42, #29375a); }
.sc-amber  { background: linear-gradient(135deg, #92400e, #b45309); }

/* ── CARDS ──────────────────────────────────────── */
.card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-xs); overflow: hidden; }
.card-header { padding: 13px 16px; font-family: var(--font-head); font-weight: 600; font-size: 13.5px; background: var(--bg-card); border-bottom: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; gap: 10px; color: var(--text-head); }
.card-header i { color: var(--gold); }
.card-body { padding: 16px; }
.card-header-dark { background: var(--slate); color: var(--t-primary); border-color: rgba(255,255,255,.04); }
.card-header-dark i { color: var(--gold-light); }

/* ── TABLES ─────────────────────────────────────── */
.table { font-size: 13px; margin: 0; width: 100%; border-collapse: collapse; }
.table thead th { background: var(--slate); color: var(--t-muted); font-family: var(--font-body); font-size: 10.5px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; padding: 11px 13px; border: none; white-space: nowrap; }
.table tbody td { padding: 11px 13px; vertical-align: middle; border-bottom: 1px solid var(--border); color: var(--text-body); }
.table tbody tr:last-child td { border-bottom: none; }
.table tbody tr { transition: background .15s; }
.table tbody tr:hover { background: var(--ivory); }
.table tfoot td { padding: 11px 13px; font-weight: 600; border-top: 2px solid var(--border-dk); }
.actions-cell { display: flex; gap: 4px; flex-wrap: nowrap; align-items: center; }

/* ── BUTTONS ────────────────────────────────────── */
.btn { font-family: var(--font-body); font-weight: 600; font-size: 13px; border-radius: var(--radius-xs); transition: var(--ease); display: inline-flex; align-items: center; gap: 5px; cursor: pointer; border: 1.5px solid transparent; white-space: nowrap; }
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-gold    { background: linear-gradient(135deg, var(--gold), var(--gold-dim)); color: #1a1200; border-color: transparent; box-shadow: 0 3px 10px rgba(212,168,67,.25); }
.btn-gold:hover { box-shadow: 0 5px 16px rgba(212,168,67,.35); color: #1a1200; }
.btn-primary { background: var(--sapphire); border-color: var(--sapphire); color: #fff; }
.btn-primary:hover { background: #1d4ed8; border-color: #1d4ed8; color: #fff; }
.btn-success { background: var(--emerald); border-color: var(--emerald); color: #fff; }
.btn-success:hover { background: #047857; color: #fff; }
.btn-warning { background: var(--amber); border-color: var(--amber); color: #fff; }
.btn-warning:hover { background: #b45309; color: #fff; }
.btn-danger  { background: var(--crimson); border-color: var(--crimson); color: #fff; }
.btn-danger:hover  { background: #b91c1c; color: #fff; }
.btn-secondary { background: #6b7280; border-color: #6b7280; color: #fff; }
.btn-dark    { background: var(--slate); border-color: var(--slate-edge); color: var(--t-primary); }
.btn-dark:hover { background: var(--slate-mid); color: #fff; }
.btn-outline-primary   { border-color: var(--sapphire); color: var(--sapphire); background: transparent; }
.btn-outline-primary:hover   { background: var(--sapphire); color: #fff; }
.btn-outline-success   { border-color: var(--emerald); color: var(--emerald); background: transparent; }
.btn-outline-success:hover   { background: var(--emerald); color: #fff; }
.btn-outline-danger    { border-color: var(--crimson); color: var(--crimson); background: transparent; }
.btn-outline-danger:hover    { background: var(--crimson); color: #fff; }
.btn-outline-secondary { border-color: #d1d5db; color: var(--text-muted); background: transparent; }
.btn-outline-secondary:hover { background: var(--text-muted); color: #fff; }
.btn-outline-dark { border-color: var(--slate); color: var(--slate); background: transparent; }
.btn-outline-dark:hover { background: var(--slate); color: #fff; }
.btn-lg  { padding: 11px 22px; font-size: 14px; }
.btn-sm  { padding: 6px 12px; font-size: 12px; }
.btn-xs  { padding: 4px 9px;  font-size: 11px; }

/* ── FORMS ──────────────────────────────────────── */
.form-control, .form-select { font-family: var(--font-body); font-size: 13.5px; border: 1.5px solid var(--border); border-radius: var(--radius-sm); padding: 9px 13px; color: var(--text-body); background: #fff; transition: var(--ease); width: 100%; }
.form-control:focus, .form-select:focus { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(212,168,67,.12); outline: none; }
.form-label { font-size: 11.5px; font-weight: 700; color: var(--text-muted); margin-bottom: 5px; letter-spacing: .3px; text-transform: uppercase; display: block; }
.form-text { font-size: 11px; color: var(--text-light); }
.input-group-text { background: var(--ivory); border: 1.5px solid var(--border); color: var(--text-muted); font-size: 13px; }
textarea.form-control { resize: vertical; min-height: 80px; }
.form-section { border-left: 3px solid var(--gold); padding-left: 12px; margin-bottom: 6px; }
.form-section-title { font-family: var(--font-head); font-size: 14px; font-weight: 600; color: var(--text-head); }

/* ── BADGES ─────────────────────────────────────── */
.badge { font-family: var(--font-body); font-size: 10.5px; font-weight: 700; padding: 4px 9px; border-radius: 20px; letter-spacing: .3px; display: inline-block; white-space: nowrap; }
.badge-confirmed { background: #d1fae5; color: #065f46; }
.badge-pending   { background: #fef3c7; color: #92400e; }
.badge-cancelled { background: #fee2e2; color: #9f1239; }
.badge-checkedin { background: #dbeafe; color: #1e3a8a; }
.badge-checkout  { background: #f3f4f6; color: #374151; }
.badge-available { background: #d1fae5; color: #065f46; }
.badge-occupied  { background: #fee2e2; color: #9f1239; }
.badge-paid      { background: #d1fae5; color: #065f46; }
.badge-partial   { background: #fef3c7; color: #92400e; border: 1px solid #fcd34d; }
.badge-unpaid    { background: #fee2e2; color: #991b1b; }
.badge-partial   { background: #fef3c7; color: #92400e; }
.badge-refunded  { background: #dbeafe; color: #1e3a8a; }
.bg-success { background: #059669 !important; }
.bg-danger  { background: var(--crimson) !important; }
.bg-warning { background: var(--amber) !important; }
.bg-info    { background: var(--sapphire) !important; }
.bg-dark    { background: var(--slate) !important; }

/* ── BOOKING STEPS ──────────────────────────────── */
.booking-steps { display: flex; align-items: center; gap: 0; padding: 4px 0; overflow-x: auto; scrollbar-width: none; }
.booking-steps::-webkit-scrollbar { display: none; }
.step-item { display: flex; align-items: center; gap: 7px; flex-shrink: 0; }
.step-number { width: 30px; height: 30px; border-radius: 50%; background: var(--border); color: var(--text-muted); font-size: 11.5px; font-weight: 700; display: flex; align-items: center; justify-content: center; flex-shrink: 0; transition: var(--ease); }
.step-item.active .step-number { background: var(--gold); color: #1a1200; box-shadow: 0 0 0 5px rgba(212,168,67,.15); }
.step-item.done   .step-number { background: var(--emerald); color: #fff; }
.step-label { font-size: 11px; color: var(--text-muted); font-weight: 500; white-space: nowrap; }
.step-item.active .step-label { color: var(--amber); font-weight: 700; }
.step-item.done   .step-label { color: var(--emerald); }
.step-line { flex: 1; height: 2px; background: var(--border); margin: 0 6px; min-width: 20px; }
.step-line.done { background: var(--emerald); }

/* ── ROOM GRID ──────────────────────────────────── */
.room-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 12px; }
.room-card { border: 2px solid var(--border); border-radius: var(--radius); padding: 14px; cursor: pointer; transition: var(--ease); position: relative; background: var(--bg-card); }
.room-card:hover { border-color: var(--gold); box-shadow: 0 0 0 4px rgba(212,168,67,.08); transform: translateY(-1px); }
.room-card.selected { border-color: var(--emerald); background: #f0fdf9; }
.room-card .room-no { font-family: var(--font-head); font-size: 20px; font-weight: 700; color: var(--text-head); }
.room-card .room-type { font-size: 11px; color: var(--text-muted); margin: 2px 0 8px; }
.room-card .room-price { font-size: 14px; font-weight: 700; color: var(--gold-dim); }
.room-card .room-checkbox { position: absolute; top: 11px; right: 11px; width: 17px; height: 17px; accent-color: var(--emerald); }
.room-card .room-total { font-size: 11px; color: var(--text-light); margin-top: 3px; }

/* ── AMOUNT BOX ─────────────────────────────────── */
.amount-box { background: var(--slate); color: var(--t-primary); border-radius: var(--radius); padding: 18px; border: 1px solid rgba(212,168,67,.1); }
.amount-row { display: flex; justify-content: space-between; align-items: center; padding: 7px 0; font-size: 13px; border-bottom: 1px solid rgba(255,255,255,.05); }
.amount-row:last-child { border-bottom: none; }
.amount-total { font-size: 21px; font-weight: 700; color: var(--gold-light); }
.amount-label { color: var(--t-muted); }

/* ── STICKY BOOKING SUMMARY (KEY FIX) ───────────── */
.booking-summary-sticky {
  position: sticky;
  top: calc(var(--topbar-h) + 16px);
  max-height: calc(100vh - var(--topbar-h) - 40px);
  overflow-y: auto;
}

/* ── QUICK ACTIONS ──────────────────────────────── */
.quick-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 22px; }
.quick-action-btn { display: flex; align-items: center; gap: 9px; padding: 11px 16px; border-radius: var(--radius); border: 1.5px solid var(--border); background: var(--bg-card); color: var(--text-body); font-size: 12.5px; font-weight: 600; transition: var(--ease); cursor: pointer; text-decoration: none; box-shadow: var(--shadow-xs); }
.quick-action-btn i { font-size: 17px; }
.quick-action-btn:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); color: var(--text-body); border-color: var(--gold); }
.qa-gold   { border-left: 3px solid var(--gold); } .qa-gold   i { color: var(--gold); }
.qa-green  { border-left: 3px solid var(--emerald); } .qa-green  i { color: var(--emerald); }
.qa-blue   { border-left: 3px solid var(--sapphire); } .qa-blue   i { color: var(--sapphire); }
.qa-violet { border-left: 3px solid var(--violet); } .qa-violet i { color: var(--violet); }
.qa-rose   { border-left: 3px solid var(--rose); } .qa-rose   i { color: var(--rose); }

/* ── TODAY PANEL ────────────────────────────────── */
.today-panel { border-radius: var(--radius); background: var(--bg-card); border: 1px solid var(--border); overflow: hidden; }
.today-panel-header { background: var(--slate); color: var(--t-primary); padding: 12px 15px; font-family: var(--font-head); font-size: 13px; font-weight: 600; display: flex; align-items: center; gap: 8px; border-bottom: 1px solid rgba(212,168,67,.12); }
.today-panel-header i { color: var(--gold); }
.today-item { display: flex; align-items: center; padding: 11px 15px; border-bottom: 1px solid var(--border); gap: 10px; font-size: 13px; transition: background .15s; }
.today-item:last-child { border-bottom: none; }
.today-item:hover { background: var(--ivory); }
.ti-room { width: 42px; min-width: 42px; height: 36px; border-radius: var(--radius-xs); background: var(--slate); color: var(--gold); font-family: var(--font-head); display: flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; padding: 2px 4px; flex-shrink: 0; }
.ti-name { font-weight: 600; color: var(--text-head); font-size: 12.5px; }
.ti-meta { font-size: 11px; color: var(--text-muted); }
.ti-badge { margin-left: auto; flex-shrink: 0; }
.ti-action { flex-shrink: 0; }

/* ── ROOM STATUS GRID ───────────────────────────── */
.room-status-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(78px, 1fr)); gap: 7px; }
.rsb { border-radius: var(--radius-xs); padding: 9px 6px; text-align: center; font-size: 11.5px; transition: var(--ease); cursor: pointer; }
.rsb:hover { transform: scale(1.05); }
.rsb .rsb-num  { font-family: var(--font-head); font-size: 15px; font-weight: 700; }
.rsb .rsb-type { font-size: 9px; opacity: .75; }
.rsb.free        { background: #d1fae5; color: #065f46; border: 1.5px solid #6ee7b7; }
.rsb.occupied    { background: #fee2e2; color: #9f1239; border: 1.5px solid #fca5a5; }
.rsb.checkout    { background: #fef3c7; color: #78350f; border: 1.5px solid #fcd34d; }
.rsb.maintenance { background: #f3f4f6; color: #6b7280; border: 1.5px solid #d1d5db; }

/* ── ALERTS ─────────────────────────────────────── */
.alert { border-radius: var(--radius-sm); border: none; font-size: 13px; padding: 11px 15px; }
.alert-success { background: #d1fae5; color: #065f46; border-left: 4px solid var(--emerald); }
.alert-danger  { background: #fee2e2; color: #9f1239; border-left: 4px solid var(--crimson); }
.alert-warning { background: #fef3c7; color: #78350f; border-left: 4px solid var(--amber); }
.alert-info    { background: #dbeafe; color: #1e3a8a; border-left: 4px solid var(--sapphire); }

/* ── PAGINATION ─────────────────────────────────── */
.pagination .page-link { border-radius: var(--radius-xs) !important; margin: 0 2px; border-color: var(--border); color: var(--text-muted); font-size: 12.5px; padding: 5px 11px; font-family: var(--font-body); font-weight: 600; }
.pagination .page-item.active .page-link { background: var(--gold); border-color: var(--gold); color: #1a1200; }
.pagination .page-link:hover { background: var(--gold); color: #1a1200; border-color: var(--gold); }

/* ── MODAL ──────────────────────────────────────── */
.modal-content { border: none; border-radius: var(--radius); box-shadow: 0 32px 80px rgba(0,0,0,.24); }
.modal-header { background: var(--slate); color: var(--t-primary); border-radius: var(--radius) var(--radius) 0 0; border: none; padding: 14px 18px; border-bottom: 1px solid rgba(212,168,67,.1); }
.modal-header .btn-close { filter: invert(1) opacity(.5); }
.modal-title { font-family: var(--font-head); font-weight: 600; font-size: 15px; }
.modal-footer { border-color: var(--border); padding: 11px 18px; }

/* ── INFO GRID ──────────────────────────────────── */
.info-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0; }
.info-item { padding: 10px 0; border-bottom: 1px solid var(--border); }
.info-item:nth-child(odd)  { padding-right: 16px; }
.info-item:nth-child(even) { padding-left: 16px; border-left: 1px solid var(--border); }
.info-label { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .8px; color: var(--text-light); margin-bottom: 3px; }
.info-value { font-size: 13px; font-weight: 600; color: var(--text-head); }

/* ── GUEST GROUP ────────────────────────────────── */
.guest-group { background: var(--ivory); border: 1.5px solid var(--border-dk); border-radius: var(--radius); padding: 16px; margin-bottom: 12px; position: relative; }
.guest-group-num { position: absolute; top: -11px; left: 14px; background: var(--gold); color: #1a1200; font-size: 10px; font-weight: 800; padding: 2px 9px; border-radius: 20px; letter-spacing: .5px; text-transform: uppercase; }

/* ── LOGIN ──────────────────────────────────────── */
.login-wrapper { min-height: 100vh; display: flex; align-items: center; justify-content: center; background: var(--ink); position: relative; overflow: hidden; }
.login-bg-orb { position: absolute; border-radius: 50%; filter: blur(80px); pointer-events: none; }
.login-bg-orb-1 { width: 500px; height: 500px; background: radial-gradient(circle, rgba(212,168,67,.09), transparent 70%); top: -100px; left: -150px; }
.login-bg-orb-2 { width: 400px; height: 400px; background: radial-gradient(circle, rgba(37,99,235,.08), transparent 70%); bottom: -80px; right: -80px; }
.login-card { background: var(--slate); border: 1px solid rgba(212,168,67,.15); border-radius: 18px; padding: 42px 38px; width: 100%; max-width: 420px; box-shadow: 0 40px 100px rgba(0,0,0,.5); position: relative; z-index: 2; }
.login-crest { width: 58px; height: 58px; background: linear-gradient(135deg, var(--gold), var(--gold-dim)); border-radius: 15px; display: inline-flex; align-items: center; justify-content: center; font-size: 27px; margin-bottom: 13px; box-shadow: 0 8px 28px rgba(212,168,67,.3); }
.login-title { font-family: var(--font-head); font-size: 21px; font-weight: 700; color: var(--ivory); margin: 0 0 4px; }
.login-sub { font-size: 12px; color: var(--t-muted); letter-spacing: .5px; }
.login-card .form-label { color: var(--t-muted); }
.login-card .form-control { background: var(--slate-mid); border-color: var(--slate-edge); color: var(--t-primary); }
.login-card .form-control:focus { border-color: var(--gold); background: var(--slate-mid); box-shadow: 0 0 0 3px rgba(212,168,67,.12); }
.login-card .form-control::placeholder { color: rgba(122,139,168,.5); }
.login-card .input-group-text { background: var(--slate-mid); border-color: var(--slate-edge); }
.login-btn { background: linear-gradient(135deg, var(--gold), var(--gold-dim)); border: none; color: #1a1200; font-family: var(--font-head); font-weight: 700; font-size: 14px; width: 100%; padding: 12px; border-radius: var(--radius-sm); cursor: pointer; transition: var(--ease); margin-top: 8px; box-shadow: 0 6px 20px rgba(212,168,67,.25); }
.login-btn:hover { transform: translateY(-2px); box-shadow: 0 10px 30px rgba(212,168,67,.35); }

/* ── PRINT ──────────────────────────────────────── */
@media print {
  .sidebar, .topbar, .footer, .no-print { display: none !important; }
  .page-wrapper { padding: 0 !important; }
  .main-content { padding: 0 !important; }
  body { background: #fff; }
}

/* ── RESPONSIVE 1200px ──────────────────────────── */
@media (max-width: 1200px) {
  :root { --sidebar-w: 200px; }
}

/* ── RESPONSIVE 992px ───────────────────────────── */
@media (max-width: 992px) {
  :root { --sidebar-w: 220px; }
  .sidebar { transform: translateX(calc(-1 * var(--sidebar-w))); }
  .sidebar.show { transform: translateX(0); box-shadow: 0 32px 80px rgba(13,17,23,.4); }
  .page-wrapper { padding-left: 0; }
  .sidebar-toggle-btn { display: block; }
  .topbar-center { display: none; }
}

/* ── RESPONSIVE 768px ───────────────────────────── */
@media (max-width: 768px) {
  .main-content { padding: 14px; }
  .info-grid { grid-template-columns: 1fr; }
  .info-item:nth-child(even) { border-left: none; padding-left: 0; }
  .room-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
  .booking-summary-sticky { position: static; max-height: none; overflow-y: visible; }
  .footer-links { display: none; }
  .quick-actions { gap: 8px; }
}

/* ── RESPONSIVE 576px ───────────────────────────── */
@media (max-width: 576px) {
  .page-title { flex-direction: column; gap: 8px; }
  .quick-action-btn { padding: 9px 11px; font-size: 12px; }
  .topbar { padding: 0 12px; gap: 8px; }
  .stat-value { font-size: 22px; }
  .uc-role, .uc-name { display: none; }
  .topbar-icon-btn { display: none; }
  .topbar-right { gap: 6px; }
  .room-grid { grid-template-columns: 1fr 1fr; }
}
