/* ==========================================================================
   Economy Inn of America - Design System Style Sheet
   ========================================================================== */

/* 1. Global Custom Variables & Typography Imports */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Outfit:wght@400;500;600;700;800&display=swap');

:root {
  /* Dynamic Palette */
  --bg-main: #F8FAFC;             /* Clean, premium Slate-White background */
  --bg-card: #FFFFFF;             /* Crisp pure white cards */
  --bg-card-hover: #FFFFFF;
  --border-light: rgba(15, 23, 42, 0.06); /* Ultra-fine Slate borders */
  --border-focus: #2563EB;        /* Vibrant Royal/Cobalt Blue */
  
  --color-primary: #2563EB;       /* Vibrant Cobalt Blue (matches stars) */
  --color-primary-hover: #1D4ED8;
  --color-accent: #E11D48;        /* Crimson Rose (matches logo letters!) */
  --color-accent-hover: #BE123C;
  --color-success: #059669;       /* Premium Emerald Green */
  --color-danger: #DC2626;        /* Red Danger */
  
  --text-main: #0F172A;           /* Slate 900 for high-contrast readability */
  --text-muted: #475569;          /* Slate 600 for soft body descriptions */
  --text-inverse: #FFFFFF;        /* Inverse white text on dark buttons */
  
  /* Blurs and Shadow Systems */
  --blur-glass: 16px;
  --shadow-premium: 0 20px 40px -15px rgba(15, 23, 42, 0.08); /* Elegant soft shadows */
  --shadow-glow: 0 0 20px rgba(37, 99, 235, 0.1);
  
  /* Border Radii */
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 28px;
  
  /* Fonts */
  --font-heading: 'Outfit', 'Inter', sans-serif;
  --font-body: 'Inter', sans-serif;
  
  --transition-smooth: all 0.35s cubic-bezier(0.16, 1, 0.3, 1); /* Elegant iOS-style ease-out */
}

/* 2. Modern Reset */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  overflow-y: auto !important;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-main);
  color: var(--text-main);
  min-height: 100vh;
  line-height: 1.6;
  overflow-x: hidden;
  background-image: 
    radial-gradient(circle at 0% 0%, rgba(59, 130, 246, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 100% 100%, rgba(225, 29, 72, 0.06) 0%, transparent 50%);
  background-attachment: fixed;
}

/* High-contrast, Ultra-Visible Custom Scrollbars */
::-webkit-scrollbar {
  width: 14px; /* Thicker and extremely easy to see */
  height: 14px;
}
::-webkit-scrollbar-track {
  background: #CBD5E1; /* Solid medium slate-grey track */
  border-radius: var(--radius-sm);
}
::-webkit-scrollbar-thumb {
  background: #334155; /* Solid dark slate-grey thumb for maximum contrast */
  border: 3px solid #CBD5E1; /* Distinct gap layout */
  border-radius: var(--radius-md);
}
::-webkit-scrollbar-thumb:hover {
  background: var(--color-primary); /* Royal cobalt-blue on active focus */
}

/* Typography elements */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  letter-spacing: -0.02em;
  font-weight: 700;
  line-height: 1.2;
}

a {
  color: var(--color-primary);
  text-decoration: none;
  transition: var(--transition-smooth);
}
a:hover {
  color: var(--color-accent);
}

button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: var(--font-body);
  transition: var(--transition-smooth);
}

/* 3. Header & Navigation */
header.app-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(248, 250, 252, 0.8);
  backdrop-filter: blur(var(--blur-glass));
  -webkit-backdrop-filter: blur(var(--blur-glass));
  border-bottom: 1px solid var(--border-light);
}

.nav-container {
  max-width: 1680px;
  margin: 0 auto 0 0;
  padding: 1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  cursor: pointer;
}

.brand-logo {
  height: auto;
  max-height: 40px;
  width: 90px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-light);
  object-fit: contain;
  background: #FFF;
  box-shadow: var(--shadow-glow);
}

.brand-text {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 800;
  color: #020617; /* Slate 955 (extremely dark) for maximum legibility */
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.nav-link {
  font-weight: 500;
  color: var(--text-muted);
}
.nav-link:hover, .nav-link.active {
  color: var(--text-main);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 0.95rem;
  transition: var(--transition-smooth);
}

.btn-primary {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-hover) 100%);
  color: #FFFFFF;
  box-shadow: var(--shadow-glow);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 25px rgba(37, 99, 235, 0.45);
}
.btn-primary:active {
  transform: translateY(0);
}

.btn-secondary {
  background: #F1F5F9;
  border: 1px solid rgba(15, 23, 42, 0.08);
  color: var(--text-main);
}
.btn-secondary:hover {
  background: #E2E8F0;
  transform: translateY(-2px);
}

.btn-accent {
  background: linear-gradient(135deg, var(--color-accent) 0%, var(--color-accent-hover) 100%);
  color: #FFFFFF;
  box-shadow: 0 0 15px rgba(225, 29, 72, 0.2);
}
.btn-accent:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 25px rgba(225, 29, 72, 0.4);
}

.btn-danger {
  background: var(--color-danger);
  color: #FFFFFF;
}
.btn-danger:hover {
  background: #DC2626;
  transform: translateY(-2px);
}

/* User Profile Badge */
.user-badge {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.5rem 1rem;
  background: rgba(59, 130, 246, 0.1);
  border: 1px solid rgba(59, 130, 246, 0.2);
  border-radius: 9999px;
  cursor: pointer;
  transition: var(--transition-smooth);
}
.user-badge:hover {
  background: rgba(59, 130, 246, 0.2);
}
.badge-dot {
  width: 8px;
  height: 8px;
  background-color: var(--color-success);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--color-success);
}
.user-role-label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.15rem 0.4rem;
  border-radius: 4px;
}
.role-owner { background: rgba(245, 158, 11, 0.2); color: var(--color-accent); }
.role-employee { background: rgba(16, 185, 129, 0.2); color: var(--color-success); }
.role-customer { background: rgba(59, 130, 246, 0.2); color: var(--color-primary); }
.role-housekeeping { background: rgba(139, 92, 246, 0.2); color: #8B5CF6; }

/* 4. Hero Section */
.hero-section {
  position: relative;
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding: 8rem 4rem;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  background: url('assets/hero.png') no-repeat center center/cover;
  filter: brightness(0.95) contrast(0.95) saturate(0.9);
  opacity: 0.45;
  transform: scale(1.02);
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.1) 0%, var(--bg-main) 100%);
}

.hero-content-wrapper {
  position: relative;
  z-index: 3;
  width: 100%;
  max-width: 1680px;
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 4rem;
  align-items: center;
  text-align: left;
}

.hero-text-block {
  display: flex;
  flex-direction: column;
}

.hero-tag {
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: 800;
  color: var(--color-primary);
  text-transform: uppercase;
  letter-spacing: 0.2em;
  margin-bottom: 1rem;
  text-shadow: 0 1px 2px rgba(255, 255, 255, 0.8);
}

.hero-title {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 800;
  margin-bottom: 1rem;
  line-height: 1.1;
  color: var(--text-main);
  text-shadow: 0 1px 2px rgba(255, 255, 255, 0.8);
}

.hero-title span {
  background: linear-gradient(135deg, #EF4444 0%, #B91C1C 100%); /* Premium vibrant red-to-crimson gradient */
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: none; /* Prevents parent text-shadow from bleeding inside the transparent text-clipped letters */
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.4)); /* Dark drop-shadow for legibility on dark backgrounds */
}

.hero-desc {
  font-size: 1.15rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
  max-width: 650px;
  margin-left: 0;
  margin-right: 0;
  text-shadow: 0 1px 2px rgba(255, 255, 255, 0.8);
}

@media (max-width: 1024px) {
  .hero-section {
    padding: 6rem 2rem;
  }
  .hero-content-wrapper {
    grid-template-columns: 1fr;
    gap: 3rem;
    text-align: center;
  }
  .hero-desc {
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 3rem;
  }
}

/* 5. Booking Search Widget */
.search-widget {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(var(--blur-glass));
  -webkit-backdrop-filter: blur(var(--blur-glass));
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  box-shadow: 
    0 30px 60px -15px rgba(15, 23, 42, 0.1),
    0 0 50px rgba(37, 99, 235, 0.04);
}

.search-form {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1.5rem;
  align-items: flex-end;
}

.input-group {
  display: flex;
  flex-direction: column;
  text-align: left;
  gap: 0.5rem;
}

.input-group label {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-muted);
  letter-spacing: 0.05em;
}

.input-group select,
.input-group input {
  background: #FFFFFF;
  border: 1px solid rgba(15, 23, 42, 0.12);
  color: var(--text-main);
  padding: 0.85rem 1rem;
  border-radius: var(--radius-md);
  font-size: 0.95rem;
  font-family: var(--font-body);
  transition: var(--transition-smooth);
}

.input-group select:focus,
.input-group input:focus {
  outline: none;
  border-color: var(--border-focus);
  box-shadow: 0 0 10px rgba(37, 99, 235, 0.15);
  background: #FFFFFF;
}

/* Checkbox specific styling */
.checkbox-group {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.85rem 0;
  cursor: pointer;
  user-select: none;
}

.checkbox-group input {
  width: 20px;
  height: 20px;
  accent-color: var(--color-primary);
  cursor: pointer;
}

.checkbox-label-text {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-main);
}

/* 6. Section Styles */
.section-wrapper {
  max-width: 1680px;
  margin: 0 auto 0 0;
  padding: 5rem 2rem 12rem 2rem; /* Generous bottom padding to allow scrolling room at page bottom */
}

.section-header {
  margin-bottom: 3.5rem;
  text-align: center;
}

.section-tag {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-size: 0.85rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin-bottom: 0.5rem;
  display: inline-block;
}

.section-title {
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 800;
}

/* Amenities Grid */
.amenities-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2rem;
}

.amenity-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 2.25rem 2rem;
  transition: var(--transition-smooth);
}
.amenity-card:hover {
  transform: translateY(-5px) scale(1.02);
  background: var(--bg-card-hover);
  border-color: rgba(225, 29, 72, 0.3);
  box-shadow: 
    0 20px 40px -10px rgba(0, 0, 0, 0.6),
    0 0 20px rgba(225, 29, 72, 0.1);
}

.amenity-icon {
  font-size: 2.25rem;
  margin-bottom: 1.25rem;
}

.amenity-title {
  font-size: 1.2rem;
  margin-bottom: 0.75rem;
}

.amenity-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* 7. Room Showcase & Filters */
.room-filters {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 3rem;
  flex-wrap: wrap;
}

.filter-chip {
  padding: 0.5rem 1.25rem;
  border-radius: 9999px;
  background: rgba(15, 23, 42, 0.04);
  border: 1px solid var(--border-light);
  color: var(--text-muted);
  font-weight: 600;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.filter-chip.active, .filter-chip:hover {
  background: var(--color-primary);
  color: #FFFFFF;
  border-color: var(--color-primary);
  box-shadow: var(--shadow-glow);
}

.rooms-list {
  display: flex;
  flex-direction: column;
  gap: 3.5rem;
}

.room-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-premium);
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  transition: var(--transition-smooth);
  min-height: 380px;
}

.room-card:hover {
  transform: translateY(-6px) scale(1.005);
  border-color: rgba(37, 99, 235, 0.2);
  box-shadow: 0 25px 50px -15px rgba(15, 23, 42, 0.12);
}

/* Alternating rows for even room cards */
.room-card:nth-child(even) {
  direction: rtl;
}
.room-card:nth-child(even) .room-body {
  direction: ltr;
}
.room-card:nth-child(even) .room-badge {
  left: 1rem;
  right: auto;
}

.room-img-container {
  height: 100%;
  min-height: 380px;
  position: relative;
  overflow: hidden;
}

.room-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-smooth);
}
.room-card:hover .room-img {
  transform: scale(1.05);
}

.room-badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(8px);
  border: 1px solid var(--border-light);
  color: var(--text-main);
  padding: 0.35rem 0.85rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

.room-body {
  padding: 3rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  flex-grow: 1;
}

/* Mobile responsive collapse for alternating layout */
@media (max-width: 900px) {
  .room-card {
    grid-template-columns: 1fr;
    min-height: auto;
  }
  .room-card:nth-child(even) {
    direction: ltr;
  }
  .room-img-container {
    height: 240px;
    min-height: auto;
  }
  .room-body {
    padding: 2rem;
  }
}

.room-title-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 0.5rem;
  gap: 1rem;
}

.room-card-title {
  font-size: 1.35rem;
  font-weight: 700;
}

.room-price-info {
  text-align: right;
  flex-shrink: 0;
}

.room-card-price {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--color-accent);
  font-family: var(--font-heading);
}

.room-price-period {
  font-size: 0.75rem;
  color: var(--text-muted);
  display: block;
}

.room-bed-type {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--color-primary);
  margin-bottom: 1rem;
}

.room-card-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  flex-grow: 1;
}

.room-spec-icons {
  display: flex;
  gap: 1.25rem;
  font-size: 0.8rem;
  color: var(--text-muted);
  border-top: 1px solid var(--border-light);
  padding-top: 1.25rem;
  margin-bottom: 1.5rem;
}

.spec-item {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

/* 8. Native Overlay Overrides (<dialog>) */
dialog {
  margin: auto;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  width: 90%;
  max-width: 520px;
  color: var(--text-main);
  box-shadow: 0 25px 50px -12px rgba(15, 23, 42, 0.15);
}

dialog::backdrop {
  background: rgba(15, 23, 42, 0.4);
  backdrop-filter: blur(8px);
}

/* Open close scale animation */
dialog[open] {
  animation: modal-zoom 0.35s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

@keyframes modal-zoom {
  from { transform: scale(0.92); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

.dialog-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
  border-bottom: 1px solid var(--border-light);
  padding-bottom: 1rem;
}

.dialog-title {
  font-size: 1.5rem;
  font-weight: 800;
}

.dialog-close-btn {
  background: rgba(15, 23, 42, 0.05);
  border-radius: 50%;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
}
.dialog-close-btn:hover {
  background: var(--color-danger);
  color: #FFFFFF;
}

.dialog-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.dialog-form-footer {
  display: flex;
  justify-content: flex-end;
  gap: 1rem;
  margin-top: 1rem;
}

/* 9. Dynamic Portals / Dashboards (SPA Views) */
.spa-view {
  display: none;
}
.spa-view.active {
  display: block;
}

/* Owner & Employee Dashboard Layouts */
.dashboard-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 2.5rem;
  margin-top: 2rem;
}

@media (max-width: 900px) {
  .dashboard-layout {
    grid-template-columns: 1fr;
  }
}

.dashboard-sidebar {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  height: fit-content;
}

.sidebar-btn {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.85rem 1.25rem;
  border-radius: var(--radius-md);
  color: var(--text-muted);
  font-weight: 600;
  font-size: 0.95rem;
  text-align: left;
  transition: var(--transition-smooth);
}
.sidebar-btn:hover, .sidebar-btn.active {
  background: rgba(59, 130, 246, 0.15);
  color: var(--color-primary);
}

.dashboard-content {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
  min-width: 0; /* CRITICAL: Prevent grid tracks from expanding beyond page width when table rows expand in edit mode */
}

/* Reports Metrics Panel */
.metrics-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
}

.metric-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 1.75rem;
  position: relative;
  overflow: hidden;
}

.metric-accent-line {
  position: absolute;
  top: 0;
  left: 0;
  height: 4px;
  width: 100%;
}
.metric-accent-line.blue { background-color: var(--color-primary); }
.metric-accent-line.gold { background-color: var(--color-accent); }
.metric-accent-line.green { background-color: var(--color-success); }

.metric-label {
  font-size: 0.8rem;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--text-muted);
  letter-spacing: 0.05em;
  margin-bottom: 0.5rem;
}

.metric-value {
  font-size: 2.2rem;
  font-weight: 800;
  font-family: var(--font-heading);
}

.metric-trend {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 0.25rem;
}

/* Custom CSS Charts & Graphs */
.analytics-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 2rem;
}
@media (max-width: 900px) {
  .analytics-grid {
    grid-template-columns: 1fr;
  }
}

.analytics-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 2rem;
}

.card-heading {
  font-size: 1.25rem;
  margin-bottom: 1.5rem;
  border-bottom: 1px solid var(--border-light);
  padding-bottom: 0.75rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* Occupancy Map Grid (Rooms Overview) */
.occupancy-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 1.25rem;
}

.room-status-card {
  background: #FFFFFF;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  box-shadow: 0 4px 10px rgba(15, 23, 42, 0.03);
  transition: var(--transition-smooth);
}
.room-status-card:hover {
  transform: translateY(-2px);
  border-color: var(--color-primary);
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.06);
}

.room-status-card.occupied { border-left: 4px solid var(--color-danger); }
.room-status-card.available { border-left: 4px solid var(--color-success); }
.room-status-card.dirty { border-left: 4px solid var(--color-accent); }
.room-status-card.disabled { border-left: 4px solid var(--text-muted); opacity: 0.65; }

.room-status-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.room-status-number {
  font-size: 1.15rem;
  font-weight: 800;
  font-family: var(--font-heading);
}

.status-badge {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.15rem 0.5rem;
  border-radius: 4px;
}
.status-badge.avail { background: rgba(16, 185, 129, 0.15); color: var(--color-success); }
.status-badge.occ { background: rgba(239, 68, 68, 0.15); color: var(--color-danger); }
.status-badge.drty { background: rgba(245, 158, 11, 0.15); color: var(--color-accent); }

.room-status-info {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* CSS Dynamic Revenue Bars */
.revenue-bar-list {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.revenue-bar-item {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.revenue-bar-labels {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  font-weight: 600;
}

.revenue-bar-track {
  height: 10px;
  background: rgba(15, 23, 42, 0.06);
  border-radius: 5px;
  overflow: hidden;
  position: relative;
}

.revenue-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--color-primary) 0%, var(--color-primary-hover) 100%);
  border-radius: 5px;
  transition: width 1s cubic-bezier(0.1, 0.8, 0.2, 1);
}

/* Dynamic Pricing Grid for Admin */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}

.pricing-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 1.5rem;
}

.pricing-input-row {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  margin-top: 1rem;
}

.pricing-input-row input {
  background: #FFFFFF;
  border: 1px solid rgba(15, 23, 42, 0.12);
  border-radius: var(--radius-sm);
  color: var(--text-main);
  padding: 0.5rem 0.75rem;
  width: 90px;
  font-size: 1rem;
  font-weight: 700;
  text-align: right;
  font-family: var(--font-heading);
}

/* Bookings Listing Tables */
.table-container {
  overflow-x: auto;
  width: 100%;
  max-width: 100%;
  display: block;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-light);
}

table.bookings-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.9rem;
  table-layout: fixed;
}

table.bookings-table th {
  background: #F1F5F9;
  padding: 0.75rem 0.6rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 0.05em;
  border-bottom: 1px solid var(--border-light);
}

table.bookings-table td {
  padding: 0.75rem 0.6rem;
  border-bottom: 1px solid var(--border-light);
  background: #FFFFFF;
  color: var(--text-main);
  overflow: hidden;
  text-overflow: ellipsis;
  word-break: break-word;
}

table.bookings-table td input[type="text"],
table.bookings-table td input[type="email"],
table.bookings-table td input[type="number"],
table.bookings-table td input[type="date"],
table.bookings-table td select,
table.data-table td input[type="text"],
table.data-table td input[type="email"],
table.data-table td input[type="number"],
table.data-table td input[type="date"],
table.data-table td select {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  padding: 0.35rem 0.4rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-light);
  font-size: 0.8rem;
  font-family: inherit;
  background: var(--bg-card);
  color: var(--text-main);
}

table.data-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.9rem;
  table-layout: fixed;
}

table.data-table th {
  background: #F1F5F9;
  padding: 0.75rem 0.6rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 0.05em;
  border-bottom: 1px solid var(--border-light);
}

table.data-table td {
  padding: 0.75rem 0.6rem;
  border-bottom: 1px solid var(--border-light);
  background: #FFFFFF;
  color: var(--text-main);
}

table.bookings-table tr:hover td,
table.data-table tr:hover td {
  background: #F8FAFC;
}

.td-id {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--color-accent);
}

/* 10. Printable Booking Confirmation Screen */
.confirmation-card {
  max-width: 680px;
  margin: 2rem auto;
  background: #FFF;
  color: #111827;
  border-radius: var(--radius-md);
  padding: 3rem;
  box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

.conf-header {
  border-bottom: 2px solid #E5E7EB;
  padding-bottom: 1.5rem;
  margin-bottom: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.conf-logo {
  height: auto;
  max-height: 48px;
  width: 100px;
  object-fit: contain;
  border-radius: 4px;
  background: #FFF;
  border: 1px solid #E5E7EB;
}

.conf-brand-title {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 800;
  color: #0B132B; /* Darker navy for perfect invoice contrast */
}

.conf-code-badge {
  background: #EFF6FF;
  border: 1px solid #BFDBFE;
  padding: 0.5rem 1.25rem;
  border-radius: var(--radius-sm);
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.25rem;
  color: #2563EB;
}

.conf-details-table {
  width: 100%;
  margin-bottom: 2rem;
}

.conf-details-table td {
  padding: 0.75rem 0;
  border-bottom: 1px solid #F3F4F6;
  font-size: 0.95rem;
}

.conf-details-table td.label {
  font-weight: 700;
  color: #4B5563;
  width: 40%;
}

.conf-details-table td.value {
  color: #111827;
}

.conf-pricing-breakdown {
  background: #F9FAFB;
  border-radius: var(--radius-sm);
  padding: 1.5rem;
  margin-bottom: 2rem;
}

.price-row {
  display: flex;
  justify-content: space-between;
  padding: 0.5rem 0;
  font-size: 0.9rem;
  color: #4B5563;
}

.price-row.total {
  border-top: 2px solid #E5E7EB;
  padding-top: 1rem;
  font-weight: 800;
  font-size: 1.2rem;
  color: #111827;
}

.conf-footer-notes {
  text-align: center;
  font-size: 0.8rem;
  color: #6B7280;
  border-top: 1px solid #E5E7EB;
  padding-top: 1.5rem;
}

/* Interactive confirmation buttons block */
.conf-actions-panel {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-top: 2rem;
}

/* Print CSS Stylesheet configuration */
@media print {
  html, body {
    height: auto !important;
    min-height: auto !important;
    background: #FFF !important;
    color: #111827 !important;
  }

  body > *:not(#view-confirmation),
  #view-confirmation > *:not(.section-wrapper),
  #view-confirmation .section-wrapper > *:not(.confirmation-card),
  .conf-actions-panel,
  .app-header,
  .app-footer {
    display: none !important;
  }

  #view-confirmation,
  #view-confirmation .section-wrapper {
    display: block !important;
    position: static !important;
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
    box-shadow: none !important;
  }

  .confirmation-card {
    display: block !important;
    visibility: visible !important;
    border: none !important;
    box-shadow: none !important;
    margin: 0 auto !important;
    padding: 1.5rem !important;
    max-width: 100% !important;
    width: 100% !important;
    page-break-inside: avoid !important;
    break-inside: avoid !important;
  }

  * {
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
  }
}

/* 11. Footer */
footer.app-footer {
  border-top: 1px solid var(--border-light);
  background: rgba(11, 15, 25, 0.95);
  margin-top: 5rem;
  padding: 3rem 2rem 1.5rem;
}

.footer-content {
  max-width: 1680px;
  margin: 0 auto 0 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-brand h4 {
  font-size: 1.25rem;
  margin-bottom: 1rem;
  color: #FFF;
}

.footer-brand p {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.footer-links h5 {
  font-size: 0.95rem;
  text-transform: uppercase;
  margin-bottom: 1.25rem;
  letter-spacing: 0.05em;
  color: #FFF;
}

.footer-links ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-links a {
  font-size: 0.9rem;
  color: var(--text-muted);
}
.footer-links a:hover {
  color: var(--color-primary);
}

.footer-bottom {
  text-align: center;
  font-size: 0.8rem;
  color: var(--text-muted);
  border-top: 1px solid var(--border-light);
  padding-top: 1.5rem;
  max-width: 1680px;
  margin: 0 auto 0 0;
}

/* 12. Custom Searchable Multiselect Checkbox Dropdown */
.custom-multiselect {
  position: relative;
  width: 100%;
}
.multiselect-trigger:focus {
  border-color: var(--color-primary) !important;
  outline: none;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}
.multiselect-dropdown {
  border-color: var(--border-light);
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
  animation: dropdownFadeIn 0.15s ease-out;
}
@keyframes dropdownFadeIn {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: translateY(0); }
}
.multiselect-search-container input:focus {
  border-color: var(--color-primary);
  outline: none;
}
.multiselect-option-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.5rem 0.75rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: background 0.15s ease;
  font-size: 0.875rem;
}
.multiselect-option-item:hover {
  background: #f1f5f9;
}
.multiselect-option-item input[type="checkbox"] {
  width: 1rem;
  height: 1rem;
  border-radius: 4px;
  border: 1px solid var(--border-light);
  accent-color: var(--color-primary);
  cursor: pointer;
}
.multiselect-option-label {
  display: flex;
  flex-direction: column;
  line-height: 1.25;
}
.multiselect-option-name {
  font-weight: 600;
  color: var(--text-main);
}
.multiselect-option-email {
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* ==========================================================================
   13. Mobile Responsiveness Overrides
   ========================================================================== */
@media (max-width: 768px) {
  /* Navigation Bar */
  .nav-container {
    flex-direction: column;
    gap: 1rem;
    padding: 1rem;
    align-items: center;
  }
  .nav-menu {
    gap: 1.25rem;
    flex-wrap: wrap;
    justify-content: center;
    width: 100%;
  }
  .brand {
    justify-content: center;
  }
  .brand-text {
    font-size: 1.2rem;
  }

  /* Section Padding */
  .section-wrapper {
    padding: 3rem 1rem 6rem 1rem;
  }
  .section-header {
    margin-bottom: 2rem;
  }

  /* Search Widget Box */
  .search-widget {
    padding: 1.5rem;
  }
  .search-form {
    grid-template-columns: 1fr !important;
    gap: 1rem;
  }
  #search-rooms-btn {
    width: 100%;
  }

  /* Hero Section */
  .hero-section {
    min-height: auto;
    padding: 4rem 1rem;
  }
  .hero-title {
    font-size: 2.2rem;
    line-height: 1.2;
  }
  .hero-desc {
    font-size: 1rem;
    margin-bottom: 1.5rem;
  }

  /* Direct Booking Ribbon */
  .direct-booking-ribbon {
    padding: 1.5rem 0;
  }
  .direct-booking-ribbon .section-wrapper {
    flex-direction: column;
    gap: 1.5rem;
    align-items: flex-start;
    padding: 0 1.5rem;
  }

  /* Room Card Rows */
  .room-title-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.25rem;
  }
  .room-price-info {
    text-align: left;
  }
  .room-card-price {
    font-size: 1.4rem;
  }

  /* Printable Confirmation / Receipt */
  .confirmation-card {
    padding: 1.25rem;
    margin: 1rem auto;
    box-shadow: none;
    border: 1px solid #E5E7EB;
  }
  .conf-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }
  .conf-actions-panel {
    flex-direction: column;
    gap: 1rem;
    width: 100%;
  }
  .conf-actions-panel .btn {
    width: 100%;
  }
  .conf-details-table td.label {
    width: 50%;
  }

  /* Native Overlay Modals */
  dialog {
    padding: 1.5rem;
    width: 95%;
  }
  .dialog-form-footer {
    flex-direction: column;
    gap: 0.75rem;
  }
  .dialog-form-footer .btn {
    width: 100%;
  }

  /* Dashboard Admin Tables & Grid Adjustments */
  .dashboard-layout {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  .dashboard-sidebar {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 0.5rem;
    padding: 1rem;
  }
  .sidebar-btn {
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
    flex: 1 1 calc(50% - 0.5rem);
    justify-content: center;
  }
  .analytics-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  .metrics-row {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .dashboard-sidebar {
    flex-direction: column;
  }
  .sidebar-btn {
    flex: 1 1 100%;
  }
}

/* Table Column Resizing handles */
table.bookings-table th,
table.data-table th {
  position: relative !important;
}

.col-resizer {
  position: absolute;
  top: 0;
  right: 0;
  width: 6px;
  height: 100%;
  cursor: col-resize;
  user-select: none;
  z-index: 100;
  background-color: transparent;
  transition: background-color 0.2s;
}

.col-resizer:hover,
.col-resizer.resizing {
  background-color: var(--color-primary, #2563eb);
  width: 6px;
}

body.resizing-active,
body.resizing-active * {
  cursor: col-resize !important;
  user-select: none !important;
}


