/* ============================================================
   LUXELITE SUITES — Staff Portal Stylesheet
   Shared by: login.html, owner-portal.html, receptionist.html
   ============================================================ */

/* ── 1. PORTAL ROOT VARS ────────────────────────────────── */
:root {
  --sidebar-width:    260px;
  --sidebar-bg:       #111111;
  --sidebar-text:     rgba(255,255,255,0.72);
  --sidebar-active:   #C00000;
  --topbar-height:    64px;
  --portal-bg:        #F4F5F7;

  --status-green:  #27AE60;
  --status-yellow: #F39C12;
  --status-red:    #E74C3C;
  --status-grey:   #95A5A6;
  --status-blue:   #2980B9;
}

/* ── 2. PORTAL LAYOUT ───────────────────────────────────── */
.portal-body {
  background: var(--portal-bg);
  min-height: 100vh;
  font-family: var(--font-sans, 'Montserrat', sans-serif);
}

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

/* ── 3. SIDEBAR ─────────────────────────────────────────── */
.sidebar {
  width: var(--sidebar-width);
  background: var(--sidebar-bg);
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0;
  left: 0;
  height: 100vh;
  z-index: 200;
  transition: transform 0.3s ease;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,0.12) transparent;
  border-right: 1px solid rgba(255,255,255,0.06);
}

.sidebar::-webkit-scrollbar { width: 4px; }
.sidebar::-webkit-scrollbar-track { background: transparent; }
.sidebar::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.12); border-radius: 4px; }

.sidebar__brand {
  padding: 1.5rem 1.25rem;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.sidebar__brand-logo {
  height: 36px;
  width: auto;
}

.sidebar__brand-name {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.05rem;
  color: var(--color-white, #fff);
  line-height: 1.2;
}

.sidebar__brand-role {
  font-size: 0.7rem;
  color: rgba(255,255,255,0.45);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.sidebar__nav {
  flex: 1;
  padding: 1rem 0;
}

.sidebar__section-label {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.3);
  padding: 0.75rem 1.25rem 0.25rem;
  margin-top: 0.5rem;
}

.sidebar__link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.65rem 1rem;
  margin: 0.15rem 0.75rem;
  font-size: 0.875rem;
  color: var(--sidebar-text);
  transition: all 0.2s ease;
  border-radius: 8px;
  border-left: none;
  text-decoration: none;
}

.sidebar__link i {
  width: 1.1rem;
  text-align: center;
  font-size: 0.95rem;
  flex-shrink: 0;
  transition: color 0.2s ease;
}

.sidebar__link:hover {
  background: rgba(255,255,255,0.08);
  color: var(--color-white, #fff);
}

.sidebar__link--active {
  background: rgba(192,0,0,0.22);
  color: var(--color-white, #fff);
  font-weight: 600;
  box-shadow: inset 0 0 0 1px rgba(192,0,0,0.35);
}

.sidebar__footer {
  padding: 1rem 1.25rem;
  border-top: 1px solid rgba(255,255,255,0.08);
}

.sidebar__user {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.sidebar__avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--color-primary, #C00000);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.85rem;
  flex-shrink: 0;
}

.sidebar__user-name {
  font-size: 0.875rem;
  color: var(--color-white, #fff);
  font-weight: 600;
  line-height: 1.2;
}

.sidebar__user-email {
  font-size: 0.7rem;
  color: rgba(255,255,255,0.45);
}

.btn--signout {
  width: 100%;
  background: rgba(255,255,255,0.06);
  color: rgba(255,255,255,0.7);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 6px;
  padding: 0.5rem;
  font-size: 0.8rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  transition: all 0.2s ease;
}

.btn--signout:hover {
  background: rgba(192,0,0,0.2);
  color: #fff;
  border-color: rgba(192,0,0,0.4);
}

/* ── 4. MAIN AREA ───────────────────────────────────────── */
.portal-main {
  margin-left: var(--sidebar-width);
  flex: 1;
  min-width: 0;
}

/* ── 5. TOP BAR ─────────────────────────────────────────── */
.topbar {
  height: var(--topbar-height);
  background: var(--color-white, #fff);
  border-bottom: 1px solid #E8E8E8;
  display: flex;
  align-items: center;
  padding: 0 2rem;
  gap: 1rem;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
}

.topbar__title {
  flex: 1;
}

.topbar__title h1 {
  font-size: 1.1rem;
  color: #1A1A1A;
  font-family: var(--font-sans, 'Montserrat', sans-serif);
  font-weight: 600;
}

.topbar__title p {
  font-size: 0.78rem;
  color: #999;
  margin-top: 0.1rem;
}

.topbar__actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.topbar__date {
  font-size: 0.78rem;
  color: #888;
  background: #F5F5F5;
  padding: 0.35rem 0.75rem;
  border-radius: 20px;
}

.sidebar-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.2rem;
  cursor: pointer;
  color: #555;
  padding: 0.4rem;
}

/* ── 6. PORTAL CONTENT ──────────────────────────────────── */
.portal-content {
  padding: 2rem;
}

.portal-main {
  scrollbar-width: thin;
  scrollbar-color: #D0D0D0 transparent;
  scroll-behavior: smooth;
}
.portal-main::-webkit-scrollbar { width: 6px; }
.portal-main::-webkit-scrollbar-track { background: transparent; }
.portal-main::-webkit-scrollbar-thumb { background: #D0D0D0; border-radius: 6px; }

/* ── 7. STAT CARDS ──────────────────────────────────────── */
.stat-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
  margin-bottom: 2rem;
}

.stat-card {
  background: var(--color-white, #fff);
  border-radius: 14px;
  padding: 1.4rem 1.5rem;
  box-shadow: 0 2px 10px rgba(0,0,0,0.07);
  border: 1px solid #EBEBEB;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  position: relative;
  overflow: hidden;
}

.stat-card::after {
  content: '';
  position: absolute;
  bottom: 0;
  right: 0;
  width: 80px;
  height: 80px;
  border-radius: 50%;
  opacity: 0.07;
  transform: translate(25%, 25%);
}

.stat-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.1);
}

.stat-card--red {
  background: linear-gradient(135deg, #fff 55%, rgba(192,0,0,0.04));
}
.stat-card--red::after { background: var(--color-primary, #C00000); }

.stat-card--green {
  background: linear-gradient(135deg, #fff 55%, rgba(39,174,96,0.05));
}
.stat-card--green::after { background: var(--status-green); }

.stat-card--yellow {
  background: linear-gradient(135deg, #fff 55%, rgba(243,156,18,0.05));
}
.stat-card--yellow::after { background: var(--status-yellow); }

.stat-card--blue {
  background: linear-gradient(135deg, #fff 55%, rgba(41,128,185,0.05));
}
.stat-card--blue::after { background: var(--status-blue); }

.stat-card__icon {
  position: absolute;
  top: 1.1rem;
  right: 1.1rem;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.05rem;
}

.stat-card--red    .stat-card__icon { background: rgba(192,0,0,0.10); color: var(--color-primary, #C00000); }
.stat-card--green  .stat-card__icon { background: rgba(39,174,96,0.12); color: var(--status-green); }
.stat-card--yellow .stat-card__icon { background: rgba(243,156,18,0.12); color: var(--status-yellow); }
.stat-card--blue   .stat-card__icon { background: rgba(41,128,185,0.12); color: var(--status-blue); }

.stat-card__label {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #888;
  margin-bottom: 0.6rem;
  padding-right: 3rem;
}

.stat-card__value {
  font-size: 1.9rem;
  font-weight: 800;
  color: #1A1A1A;
  line-height: 1;
  font-family: 'Montserrat', sans-serif;
  letter-spacing: -0.02em;
}

.stat-card__sub {
  font-size: 0.73rem;
  color: #999;
  margin-top: 0.45rem;
}

/* ── 8. PANEL / WIDGET BOX ──────────────────────────────── */
.panel {
  background: var(--color-white, #fff);
  border-radius: 14px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.07);
  border: 1px solid #EBEBEB;
  overflow: hidden;
  margin-bottom: 1.5rem;
}

.panel__header {
  padding: 1.1rem 1.5rem;
  border-bottom: 1px solid #F0F0F0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  background: #FAFAFA;
}

.panel__header h3 {
  font-family: var(--font-sans, 'Montserrat', sans-serif);
  font-size: 0.92rem;
  font-weight: 700;
  color: #1A1A1A;
  display: flex;
  align-items: center;
}

.panel__body {
  padding: 1.5rem;
}

.panel__body--flush { padding: 0; }

/* ── 9. TABS ────────────────────────────────────────────── */
.tabs {
  display: flex;
  gap: 0.25rem;
  border-bottom: 2px solid #F0F0F0;
  padding: 0 1.5rem;
  background: var(--color-white, #fff);
}

.tab-btn {
  padding: 0.75rem 1.25rem;
  border: none;
  background: none;
  font-size: 0.875rem;
  font-weight: 500;
  color: #888;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  transition: all 0.2s ease;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.tab-btn:hover { color: #1A1A1A; }

.tab-btn--active {
  color: var(--color-primary, #C00000);
  border-bottom-color: var(--color-primary, #C00000);
  font-weight: 600;
}

.tab-badge {
  background: #F5F5F5;
  color: #666;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.15rem 0.5rem;
  border-radius: 20px;
}

.tab-btn--active .tab-badge {
  background: rgba(192,0,0,0.1);
  color: var(--color-primary, #C00000);
}

.tab-panel { display: none; }
.tab-panel--active { display: block; }

/* ── 10. DATA TABLE ─────────────────────────────────────── */
.data-table-wrapper {
  overflow-x: auto;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
}

.data-table thead {
  background: #F9F9F9;
  border-bottom: 2px solid #EEEEEE;
}

.data-table th {
  padding: 0.75rem 1.25rem;
  text-align: left;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #888;
  white-space: nowrap;
}

.data-table td {
  padding: 0.85rem 1.25rem;
  border-bottom: 1px solid #F5F5F5;
  vertical-align: middle;
  color: #333;
}

.data-table tbody tr:last-child td { border-bottom: none; }

.data-table tbody tr:nth-child(even) { background: #FAFAFA; }
.data-table tbody tr:hover { background: #F0F4FF; }

.data-table .td-name {
  font-weight: 600;
  color: #1A1A1A;
}

.data-table .td-room {
  font-weight: 700;
  color: var(--color-primary, #C00000);
}

.data-table .td-actions {
  white-space: nowrap;
  text-align: right;
}

.data-table--empty {
  text-align: center;
  padding: 3.5rem 2rem;
  color: #BBB;
  font-size: 0.85rem;
}

.data-table--empty i {
  font-size: 2.8rem;
  margin-bottom: 1rem;
  opacity: 0.3;
  display: block;
}

/* ── 11. STATUS BADGES ──────────────────────────────────── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.25rem 0.65rem;
  font-size: 0.72rem;
  font-weight: 700;
  border-radius: 20px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.badge--green  { background: rgba(39,174,96,0.12);  color: var(--status-green);  border: 1px solid rgba(39,174,96,0.25); }
.badge--yellow { background: rgba(243,156,18,0.12); color: var(--status-yellow); border: 1px solid rgba(243,156,18,0.25); }
.badge--red    { background: rgba(231,76,60,0.12);  color: var(--status-red);    border: 1px solid rgba(231,76,60,0.25); }
.badge--grey   { background: rgba(149,165,166,0.15); color: var(--status-grey);  border: 1px solid rgba(149,165,166,0.25); }
.badge--blue   { background: rgba(41,128,185,0.12); color: var(--status-blue);   border: 1px solid rgba(41,128,185,0.25); }
.badge--orange { background: rgba(234,88,12,0.12);  color: #c2410c;              border: 1px solid rgba(234,88,12,0.25); }
.badge--dark   { background: rgba(26,26,26,0.1);    color: #555;                 border: 1px solid rgba(26,26,26,0.12); }

/* ── 12. COUNTDOWN BADGE ────────────────────────────────── */
.countdown {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.3rem 0.75rem;
  border-radius: 6px;
  font-weight: 700;
  font-size: 0.85rem;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.03em;
  transition: all 0.3s ease;
}

.countdown--ok     { background: rgba(39,174,96,0.12);  color: var(--status-green); }
.countdown--warn   { background: rgba(243,156,18,0.12); color: var(--status-yellow); }
.countdown--urgent {
  background: rgba(231,76,60,0.12);
  color: var(--status-red);
  animation: pulse 1.2s ease-in-out infinite;
}
.countdown--expired {
  background: rgba(231,76,60,0.2);
  color: var(--status-red);
  font-weight: 800;
}

/* ── 13. ACTION BUTTONS (small, inside tables) ──────────── */
.btn-action {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.85rem;
  border-radius: 6px;
  font-size: 0.78rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
}

.btn-action--checkin {
  background: rgba(39,174,96,0.1);
  color: var(--status-green);
}
.btn-action--checkin:hover {
  background: var(--status-green);
  color: #fff;
}

.btn-action--checkout {
  background: rgba(192,0,0,0.08);
  color: var(--color-primary, #C00000);
}
.btn-action--checkout:hover {
  background: var(--color-primary, #C00000);
  color: #fff;
}

.btn-action--view {
  background: rgba(41,128,185,0.1);
  color: var(--status-blue);
}
.btn-action--view:hover {
  background: var(--status-blue);
  color: #fff;
}

/* ── 14. MODAL ──────────────────────────────────────────── */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.55);
  z-index: 900;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  backdrop-filter: blur(2px);
}

.modal-overlay--open {
  display: flex;
}

.modal-content {
  background: var(--color-white, #fff);
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.25);
  width: 100%;
  max-width: 560px;
  max-height: 92vh;
  overflow-y: auto;
  position: relative;
}

.modal-content--wide {
  max-width: 720px;
}

.modal-header {
  padding: 1.5rem 1.75rem;
  border-bottom: 1px solid #F0F0F0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  background: var(--color-white, #fff);
  z-index: 1;
}

.modal-header h2 {
  font-size: 1.1rem;
  font-family: var(--font-sans, 'Montserrat', sans-serif);
  font-weight: 700;
}

.modal-close {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #F5F5F5;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #666;
  font-size: 0.95rem;
  transition: all 0.2s ease;
}

.modal-close:hover {
  background: #E0E0E0;
  color: #333;
}

.modal-body {
  padding: 1.75rem;
}

.modal-footer {
  padding: 1.25rem 1.75rem;
  border-top: 1px solid #F0F0F0;
  display: flex;
  gap: 0.75rem;
  justify-content: flex-end;
}

/* ── 15. PORTAL FORM INPUTS ─────────────────────────────── */
.portal-form .form-group {
  margin-bottom: 1.1rem;
}

.portal-form label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  color: #555;
  margin-bottom: 0.35rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.portal-form input,
.portal-form select,
.portal-form textarea {
  width: 100%;
  padding: 0.7rem 1rem;
  border: 1.5px solid #E0E0E0;
  border-radius: 8px;
  font-size: 0.9rem;
  color: #1A1A1A;
  background: #FAFAFA;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.portal-form input:focus,
.portal-form select:focus,
.portal-form textarea:focus {
  border-color: var(--color-primary, #C00000);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(192,0,0,0.08);
}

.portal-form .form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.portal-form .form-help {
  font-size: 0.75rem;
  color: #999;
  margin-top: 0.3rem;
}

.portal-form .rate-auto {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.portal-form .rate-auto input {
  flex: 1;
}

.portal-form .rate-auto .rate-tag {
  font-size: 0.75rem;
  color: #888;
  background: #F0F0F0;
  padding: 0.3rem 0.6rem;
  border-radius: 4px;
  white-space: nowrap;
}

/* ── 16. CHECKOUT SUMMARY ───────────────────────────────── */
.checkout-summary {
  background: #F9F9F9;
  border-radius: 10px;
  padding: 1.25rem;
  margin-bottom: 1.5rem;
}

.checkout-summary__row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem 0;
  font-size: 0.875rem;
  color: #555;
  border-bottom: 1px dashed #E8E8E8;
}

.checkout-summary__row:last-child {
  border-bottom: none;
  padding-top: 0.75rem;
  font-weight: 700;
  font-size: 1rem;
  color: #1A1A1A;
}

.checkout-summary__row span:last-child {
  color: var(--color-primary, #C00000);
  font-weight: 600;
}

/* ── 17. ROOM STATUS GRID ───────────────────────────────── */
.room-grid {
  display: grid;
  grid-template-columns: repeat(10, minmax(0, 1fr));
  gap: 0.4rem;
  margin-bottom: 1.5rem;
}

.room-tile {
  min-height: 58px;
  min-width: 0;
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  padding: 4px;
  text-align: center;
  overflow: hidden;
  font-size: 0.7rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
}
.room-tile > span { max-width: 100%; }

.room-tile:hover {
  transform: scale(1.12);
  z-index: 10;
}

.room-tile--available   { background: rgba(39,174,96,0.13);   color: var(--status-green);  border: 1.5px solid rgba(39,174,96,0.3);   box-shadow: 0 2px 6px rgba(39,174,96,0.08); }
.room-tile--occupied    { background: rgba(231,76,60,0.11);   color: var(--status-red);    border: 1.5px solid rgba(231,76,60,0.28);  box-shadow: 0 2px 6px rgba(231,76,60,0.08); }
.room-tile--flexitime   { background: rgba(243,156,18,0.13);  color: var(--status-yellow); border: 1.5px solid rgba(243,156,18,0.3);  box-shadow: 0 2px 6px rgba(243,156,18,0.08); }
.room-tile--maintenance { background: rgba(149,165,166,0.13); color: var(--status-grey);   border: 1.5px solid rgba(149,165,166,0.3); box-shadow: 0 2px 6px rgba(149,165,166,0.07); }
.room-tile--dirty       { background: rgba(155,89,182,0.13);  color: #8E44AD;              border: 1.5px solid rgba(155,89,182,0.3);  box-shadow: 0 2px 6px rgba(155,89,182,0.08); }

/* Maintenance wrench button (visible on tile hover) */
.room-tile__maint-btn {
  display: none;
  position: absolute;
  top: 2px;
  right: 2px;
  width: 16px;
  height: 16px;
  background: rgba(0,0,0,0.18);
  border: none;
  border-radius: 3px;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  font-size: 0.55rem;
  color: rgba(255,255,255,0.85);
  padding: 0;
  line-height: 1;
  transition: background 0.15s ease;
}
.room-tile:hover .room-tile__maint-btn { display: flex; }
.room-tile__maint-btn:hover { background: rgba(192,0,0,0.5); }

.room-legend {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  font-size: 0.78rem;
  color: #666;
  margin-top: 0.5rem;
}

.room-legend__item {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.room-legend__dot {
  width: 12px;
  height: 12px;
  border-radius: 3px;
}

.room-legend__dot--available   { background: var(--status-green); }
.room-legend__dot--occupied    { background: var(--status-red); }
.room-legend__dot--flexitime   { background: var(--status-yellow); }
.room-legend__dot--maintenance { background: var(--status-grey); }
.room-legend__dot--dirty       { background: #9B59B6; }

/* Room tile tooltip */
.room-popover {
  display: none;
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  background: #1A1A1A;
  color: #fff;
  padding: 0.5rem 0.75rem;
  border-radius: 6px;
  font-size: 0.72rem;
  white-space: nowrap;
  z-index: 100;
  pointer-events: none;
}

.room-popover::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 5px solid transparent;
  border-top-color: #1A1A1A;
}

.room-tile:hover .room-popover { display: block; }

/* ── 18. CHART CONTAINER ────────────────────────────────── */
.chart-container {
  position: relative;
  width: 100%;
  height: 300px;
}

/* ── 19. DATE RANGE PICKER ──────────────────────────────── */
.date-range-bar {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
}

.date-range-bar label {
  font-size: 0.8rem;
  font-weight: 600;
  color: #666;
}

.date-range-bar input[type="date"] {
  padding: 0.5rem 0.75rem;
  border: 1.5px solid #E0E0E0;
  border-radius: 6px;
  font-size: 0.875rem;
  color: #333;
  background: #fff;
  outline: none;
}

.date-range-bar input[type="date"]:focus {
  border-color: var(--color-primary, #C00000);
}

/* Period selector buttons */
.period-btns {
  display: flex;
  gap: 0.35rem;
  flex-wrap: wrap;
}

.period-btn {
  padding: 0.35rem 0.85rem;
  border-radius: 20px;
  border: 1.5px solid #E0E0E0;
  background: #fff;
  font-size: 0.78rem;
  font-weight: 600;
  color: #666;
  cursor: pointer;
  transition: all 0.2s ease;
}

.period-btn:hover { border-color: var(--color-primary, #C00000); color: var(--color-primary, #C00000); }

.period-btn--active {
  background: var(--color-primary, #C00000);
  border-color: var(--color-primary, #C00000);
  color: #fff;
}

/* ── 20. FINANCIAL TABLE ────────────────────────────────── */
.financial-summary-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
}

.financial-summary-table th {
  background: #F5F5F5;
  padding: 0.75rem 1rem;
  text-align: left;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #888;
  border-bottom: 2px solid #EEEEEE;
}

.financial-summary-table td {
  padding: 0.8rem 1rem;
  border-bottom: 1px solid #F0F0F0;
  vertical-align: middle;
}

.financial-summary-table tfoot td {
  font-weight: 700;
  font-size: 0.95rem;
  color: #1A1A1A;
  background: #FAFAFA;
  border-top: 2px solid #EEEEEE;
  border-bottom: none;
}

.financial-summary-table .amount {
  font-weight: 600;
  color: var(--color-primary, #C00000);
}

/* ── 21. SETTINGS FORM ──────────────────────────────────── */
.settings-section {
  margin-bottom: 2rem;
}

.settings-section h3 {
  font-family: var(--font-sans, 'Montserrat', sans-serif);
  font-size: 0.95rem;
  font-weight: 700;
  color: #1A1A1A;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid #F0F0F0;
}

.rate-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.rate-card {
  background: #FAFAFA;
  border: 1.5px solid #E8E8E8;
  border-radius: 10px;
  padding: 1.25rem;
  transition: border-color 0.2s ease;
}

.rate-card:hover { border-color: var(--color-primary, #C00000); }

.rate-card__type {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #888;
  margin-bottom: 0.5rem;
}

.rate-card__input-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.rate-card__currency {
  font-weight: 700;
  color: #555;
  font-size: 1rem;
}

.rate-card__input {
  flex: 1;
  padding: 0.6rem 0.75rem;
  border: 1.5px solid #E0E0E0;
  border-radius: 6px;
  font-size: 1rem;
  font-weight: 600;
  color: #1A1A1A;
  background: #fff;
  outline: none;
  transition: border-color 0.2s ease;
}

.rate-card__input:focus {
  border-color: var(--color-primary, #C00000);
}

/* ── 22. LOGIN PAGE ─────────────────────────────────────── */
.login-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #1A1A1A 0%, #2D1010 100%);
  padding: 1.5rem;
  position: relative;
  overflow: hidden;
}

.login-page::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('../assets/images/hero/hero-bg.jpg') center/cover no-repeat;
  opacity: 0.08;
}

.login-card {
  background: #fff;
  border-radius: 20px;
  padding: 2.5rem;
  width: 100%;
  max-width: 420px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.4);
  position: relative;
  z-index: 1;
}

.login-card__brand {
  text-align: center;
  margin-bottom: 2rem;
}

.login-card__logo {
  height: 48px;
  width: auto;
  margin: 0 auto 0.75rem;
}

.login-card__brand-name {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.4rem;
  color: #1A1A1A;
}

.login-card__subtitle {
  font-size: 0.8rem;
  color: #888;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-top: 0.25rem;
}

.login-card h2 {
  font-family: var(--font-sans, 'Montserrat', sans-serif);
  font-size: 1.1rem;
  font-weight: 700;
  color: #1A1A1A;
  margin-bottom: 1.5rem;
  text-align: center;
}

.login-error {
  background: rgba(192,0,0,0.08);
  border: 1px solid rgba(192,0,0,0.2);
  color: var(--color-primary, #C00000);
  border-radius: 8px;
  padding: 0.75rem 1rem;
  font-size: 0.83rem;
  margin-bottom: 1rem;
  display: none;
  align-items: center;
  gap: 0.5rem;
}

.login-error--show { display: flex; }

.login-card .btn--primary {
  width: 100%;
  justify-content: center;
  padding: 0.85rem;
  font-size: 0.9rem;
  margin-top: 0.5rem;
}

.login-back {
  display: block;
  text-align: center;
  font-size: 0.8rem;
  color: #999;
  margin-top: 1.25rem;
  transition: color 0.2s ease;
}

.login-back:hover { color: var(--color-primary, #C00000); }

/* ── Mobile sidebar backdrop ────────────────────────────── */
.sidebar-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.45);
  z-index: 150;
  backdrop-filter: blur(2px);
  transition: opacity 0.3s ease;
}

.sidebar-backdrop--open {
  display: block;
}

/* ── 23. FAB (Floating Action Button) ───────────────────── */
@keyframes fabPulse {
  0%   { box-shadow: 0 4px 20px rgba(192,0,0,0.4), 0 0 0 0 rgba(192,0,0,0.3); }
  60%  { box-shadow: 0 4px 20px rgba(192,0,0,0.4), 0 0 0 14px rgba(192,0,0,0); }
  100% { box-shadow: 0 4px 20px rgba(192,0,0,0.4), 0 0 0 0 rgba(192,0,0,0); }
}

.fab {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--color-primary, #C00000);
  color: #fff;
  border: none;
  font-size: 1.4rem;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(192,0,0,0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  z-index: 500;
  animation: fabPulse 2.4s ease-out infinite;
}

.fab--text {
  width: auto;
  border-radius: 28px;
  padding: 0 1.5rem;
  height: 48px;
  font-size: 0.875rem;
  font-weight: 600;
  gap: 0.5rem;
  font-family: inherit;
}

.fab:hover {
  transform: scale(1.07) translateY(-2px);
  box-shadow: 0 8px 28px rgba(192,0,0,0.55);
  animation: none;
}

.fab--secondary {
  bottom: 6rem;
  background: #1A1A1A;
  box-shadow: 0 4px 16px rgba(0,0,0,0.3);
  animation: none;
}
.fab--secondary:hover {
  background: #333;
  box-shadow: 0 8px 24px rgba(0,0,0,0.4);
}

/* Housekeeping panel dirty badge */
.hk-dirty-badge {
  background: rgba(155,89,182,0.15);
  color: #8E44AD;
  border: 1px solid rgba(155,89,182,0.3);
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.15rem 0.5rem;
  border-radius: 20px;
  margin-left: 0.5rem;
}

/* ── 24. TOAST ──────────────────────────────────────────── */
.toast-container {
  position: fixed;
  top: 1rem;
  right: 1rem;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  pointer-events: none;
}

.toast {
  background: #1A1A1A;
  color: #fff;
  padding: 0.75rem 1.25rem;
  border-radius: 8px;
  font-size: 0.875rem;
  box-shadow: 0 4px 16px rgba(0,0,0,0.2);
  display: flex;
  align-items: center;
  gap: 0.6rem;
  pointer-events: auto;
  max-width: 320px;
}

.toast--success { border-left: 3px solid var(--status-green); }
.toast--error   { border-left: 3px solid var(--status-red); }
.toast--info    { border-left: 3px solid var(--status-blue); }

/* ── 25. RESPONSIVE PORTAL ──────────────────────────────── */
@media (max-width: 1200px) {
  .stat-cards { grid-template-columns: repeat(2, 1fr); }
  .room-grid  { grid-template-columns: repeat(8, minmax(0, 1fr)); }
}

@media (max-width: 900px) {
  .sidebar {
    transform: translateX(-100%);
    box-shadow: 4px 0 20px rgba(0,0,0,0.2);
  }
  .sidebar--open {
    transform: translateX(0);
  }
  .portal-main {
    margin-left: 0;
  }
  .sidebar-toggle { display: flex; }
  .room-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .rate-grid { grid-template-columns: 1fr; }
}

@media (min-width: 901px) {
  .sidebar-backdrop { display: none !important; }
}

@media (max-width: 600px) {
  .stat-cards { grid-template-columns: 1fr 1fr; }
  .portal-content { padding: 1rem; }
  .room-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .portal-form .form-row { grid-template-columns: 1fr; }
  .modal-content { border-radius: 12px 12px 0 0; position: fixed; bottom: 0; left: 0; right: 0; max-height: 90vh; max-width: 100%; margin: 0; }
  .modal-overlay { align-items: flex-end; padding: 0; }
}
