/* ============================================================
   The Grand ZDC Hotel - Hotel Management System
   Premium Luxury 5-Star Design System
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800;900&family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&family=Inter:wght@300;400;500;600;700&display=swap');

/* ============================================================
   CSS Variables / Design Tokens
   ============================================================ */
:root {
  /* Brand Luxury Palette */
  --primary:        #0F172A; /* Deep Obsidian Slate */
  --primary-light:  #1E293B;
  --primary-accent: #334155;
  --royal:          #1E1B4B; /* Royal Indigo */
  
  /* Gold Accents */
  --gold:           #D4AF37; /* Metallic Champagne Gold */
  --gold-light:     #F3E5AB;
  --gold-dark:      #B38728;
  --gold-gradient:  linear-gradient(135deg, #D4AF37 0%, #AA771C 100%);
  --gold-glow:      0 4px 20px rgba(212, 175, 55, 0.35);

  /* Status Colors */
  --success:        #10B981;
  --success-bg:     #ECFDF5;
  --warning:        #F59E0B;
  --warning-bg:     #FFFBEB;
  --danger:         #EF4444;
  --danger-bg:      #FEF2F2;
  --info:           #3B82F6;
  --info-bg:        #EFF6FF;
  --purple:         #8B5CF6;
  --purple-bg:      #F5F3FF;

  /* Neutrals */
  --dark:           #090D16;
  --dark2:          #111827;
  --dark3:          #1F2937;
  --mid:            #4B5563;
  --light:          #9CA3AF;
  --lighter:        #E5E7EB;
  --lightest:       #F9FAFB;
  --white:          #FFFFFF;
  --bg:             #F8FAFC;
  --card-bg:        #FFFFFF;

  /* Dimensions & Shapes */
  --sidebar-w:      268px;
  --header-h:       68px;
  --radius-xs:      6px;
  --radius-sm:      10px;
  --radius:         16px;
  --radius-lg:      24px;

  /* Shadows */
  --shadow-sm:      0 2px 8px rgba(15, 23, 42, 0.04);
  --shadow:         0 8px 24px rgba(15, 23, 42, 0.06);
  --shadow-md:      0 12px 36px rgba(15, 23, 42, 0.09);
  --shadow-lg:      0 20px 50px rgba(15, 23, 42, 0.14);
  --shadow-gold:    0 8px 30px rgba(212, 175, 55, 0.25);

  /* Transitions */
  --transition:     all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ============================================================
   Reset & Foundation
   ============================================================ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 14px;
}

body {
  font-family: 'Plus Jakarta Sans', 'Inter', sans-serif;
  background: var(--bg);
  color: var(--dark);
  line-height: 1.6;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6, .heading-font {
  font-family: 'Outfit', sans-serif;
  letter-spacing: -0.02em;
  color: var(--dark);
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

img {
  max-width: 100%;
  display: block;
}

ul {
  list-style: none;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: #F1F5F9;
}
::-webkit-scrollbar-thumb {
  background: #CBD5E1;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--gold);
}

/* ============================================================
   LUXURY SPLIT LOGIN PAGE
   ============================================================ */
.login-page {
  min-height: 100vh;
  display: flex;
  background: #090D16;
  position: relative;
  overflow: hidden;
}

.login-left {
  flex: 1.2;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 60px;
  background: url('../img/hotel_exterior.jpg') center/cover no-repeat;
  overflow: hidden;
}

.login-left::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(9, 13, 22, 0.94) 0%, rgba(15, 23, 42, 0.85) 50%, rgba(9, 13, 22, 0.96) 100%);
  backdrop-filter: blur(2px);
  z-index: 1;
}

.login-left-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  height: 100%;
  justify-content: space-between;
}

.login-brand-luxury {
  display: flex;
  align-items: center;
  gap: 16px;
}

.login-logo-img {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  border: 2px solid rgba(212, 175, 55, 0.6);
  box-shadow: var(--shadow-gold);
  object-fit: cover;
}

.login-brand-text h1 {
  font-size: 26px;
  font-weight: 800;
  color: #FFFFFF;
  margin-bottom: 2px;
}

.login-brand-text .gold-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 700;
  color: var(--gold-light);
  text-transform: uppercase;
  letter-spacing: 1.5px;
}

.login-hero-quote {
  max-width: 540px;
  margin: 40px 0;
}

.login-hero-quote h2 {
  font-size: 38px;
  line-height: 1.2;
  font-weight: 800;
  color: #FFFFFF;
  margin-bottom: 16px;
}

.login-hero-quote h2 span {
  background: var(--gold-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.login-hero-quote p {
  font-size: 15px;
  color: #94A3B8;
  line-height: 1.6;
}

.login-features-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  max-width: 560px;
}

.login-feature-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  backdrop-filter: blur(8px);
  transition: var(--transition);
}

.login-feature-card:hover {
  background: rgba(212, 175, 55, 0.1);
  border-color: rgba(212, 175, 55, 0.3);
  transform: translateY(-2px);
}

.login-feature-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: rgba(212, 175, 55, 0.15);
  color: var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}

.login-feature-card h4 {
  color: #FFFFFF;
  font-size: 13.5px;
  font-weight: 600;
}

.login-feature-card p {
  color: #94A3B8;
  font-size: 11.5px;
}

.login-footer-info {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 20px;
  font-size: 12px;
  color: #64748B;
}

/* Right Form Section */
.login-right {
  flex: 0.95;
  background: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px;
  position: relative;
  z-index: 2;
  box-shadow: -10px 0 40px rgba(0,0,0,0.25);
  overflow-y: auto;
}

.login-box {
  width: 100%;
  max-width: 440px;
}

.login-header h2 {
  font-size: 28px;
  font-weight: 800;
  color: var(--dark);
}

.login-header p {
  color: #64748B;
  font-size: 14px;
  margin-top: 6px;
  margin-bottom: 24px;
}

/* Luxury Role Selector Fast-Fill */
.demo-credentials-luxury {
  background: #F8FAFC;
  border: 1px solid #E2E8F0;
  border-radius: var(--radius);
  padding: 16px;
  margin-bottom: 24px;
  position: relative;
  overflow: hidden;
}

.demo-credentials-luxury::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gold-gradient);
}

.demo-cred-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.demo-cred-title span {
  color: var(--gold-dark);
}

.demo-role-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.demo-role-chip {
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: var(--radius-xs);
  padding: 8px 10px;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  text-align: center;
}

.demo-role-chip:hover {
  border-color: var(--gold);
  background: #FFFDF7;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(212, 175, 55, 0.15);
}

.demo-role-chip.active {
  border-color: var(--dark);
  background: var(--dark);
  color: white;
}

.demo-role-chip.active .chip-name {
  color: var(--gold);
}

.demo-role-chip.active .chip-user {
  color: #CBD5E1;
}

.chip-name {
  font-size: 11px;
  font-weight: 700;
  color: var(--dark);
}

.chip-user {
  font-size: 10px;
  color: #94A3B8;
}

/* ============================================================
   FORMS & INPUTS
   ============================================================ */
.form-group {
  margin-bottom: 20px;
}

.form-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: #334155;
  margin-bottom: 8px;
}

.input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.input-icon {
  position: absolute;
  left: 16px;
  color: #94A3B8;
  font-size: 18px;
  pointer-events: none;
  transition: var(--transition);
}

.form-control {
  width: 100%;
  padding: 13px 16px 13px 46px;
  border: 1.5px solid #E2E8F0;
  border-radius: var(--radius-sm);
  font-size: 14px;
  color: var(--dark);
  background: #F8FAFC;
  transition: var(--transition);
  font-family: inherit;
  outline: none;
}

.form-control:focus {
  border-color: var(--gold);
  background: #FFFFFF;
  box-shadow: 0 0 0 4px rgba(212, 175, 55, 0.12);
}

.form-control:focus + .input-icon,
.input-wrap:focus-within .input-icon {
  color: var(--gold-dark);
}

.form-control.no-icon {
  padding-left: 16px;
}

.toggle-pass {
  position: absolute;
  right: 14px;
  background: none;
  border: none;
  cursor: pointer;
  color: #94A3B8;
  font-size: 18px;
  padding: 4px;
  transition: var(--transition);
}

.toggle-pass:hover {
  color: var(--dark);
}

select.form-control {
  padding-left: 16px;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' fill='%2364748B' viewBox='0 0 16 16'%3E%3Cpath d='M7.247 11.14 2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
}

textarea.form-control {
  min-height: 100px;
  resize: vertical;
  padding-left: 16px;
  padding-top: 12px;
}

.form-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.form-row-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.form-row-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 22px;
  border-radius: var(--radius-sm);
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: var(--transition);
  font-family: inherit;
  text-decoration: none;
}

.btn-primary {
  background: var(--dark);
  color: #FFFFFF;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.25);
}

.btn-primary:hover {
  background: #1E293B;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.35);
}

.btn-gold {
  background: var(--gold-gradient);
  color: #090D16;
  font-weight: 700;
  box-shadow: var(--shadow-gold);
}

.btn-gold:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(212, 175, 55, 0.4);
}

.btn-secondary {
  background: #F1F5F9;
  color: #334155;
  border: 1px solid #E2E8F0;
}

.btn-secondary:hover {
  background: #E2E8F0;
  color: var(--dark);
}

.btn-success {
  background: var(--success);
  color: white;
}
.btn-success:hover {
  background: #059669;
  transform: translateY(-1px);
}

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

.btn-warning {
  background: var(--warning);
  color: white;
}

.btn-info {
  background: var(--info);
  color: white;
}

.btn-block {
  width: 100%;
}

.btn-sm {
  padding: 7px 14px;
  font-size: 12px;
  border-radius: var(--radius-xs);
}

.btn-lg {
  padding: 14px 28px;
  font-size: 15px;
}

/* ============================================================
   APP LAYOUT & SIDEBAR
   ============================================================ */
.app-layout {
  display: flex;
  min-height: 100vh;
}

.sidebar {
  width: var(--sidebar-w);
  height: 100vh;
  max-height: 100vh;
  background: #090D16;
  display: flex;
  flex-direction: column;
  position: fixed;
  left: 0;
  top: 0;
  bottom: 0;
  z-index: 100;
  transition: var(--transition);
  border-right: 1px solid rgba(255, 255, 255, 0.06);
  overflow: hidden;
  overscroll-behavior: contain;
}

.sidebar-brand {
  padding: 22px 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  flex-shrink: 0;
}

.sidebar-brand-logo {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: 1.5px solid rgba(212, 175, 55, 0.5);
  box-shadow: 0 0 15px rgba(212, 175, 55, 0.2);
  object-fit: cover;
  flex-shrink: 0;
}

.sidebar-brand-text h3 {
  color: #FFFFFF;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.2;
}

.sidebar-brand-text .hotel-stars {
  font-size: 10px;
  color: var(--gold);
  letter-spacing: 1px;
}

.sidebar-brand-text .role-badge {
  display: inline-block;
  padding: 2px 7px;
  border-radius: 4px;
  background: rgba(212, 175, 55, 0.15);
  color: var(--gold-light);
  font-size: 9.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-top: 3px;
}

.sidebar-nav {
  padding: 16px 12px 24px;
  flex: 1 1 auto;
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-width: thin;
  scrollbar-color: rgba(212, 175, 55, 0.35) transparent;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  scroll-behavior: auto;
}

.sidebar-nav::-webkit-scrollbar {
  width: 5px;
}

.sidebar-nav::-webkit-scrollbar-track {
  background: transparent;
}

.sidebar-nav::-webkit-scrollbar-thumb {
  background: rgba(212, 175, 55, 0.3);
  border-radius: 4px;
}

.sidebar-nav::-webkit-scrollbar-thumb:hover {
  background: var(--gold);
}

.nav-section-title {
  font-size: 10px;
  font-weight: 800;
  color: #475569;
  text-transform: uppercase;
  letter-spacing: 1.6px;
  padding: 12px 12px 6px;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  color: #94A3B8;
  cursor: pointer;
  transition: var(--transition);
  margin-bottom: 3px;
  text-decoration: none;
  font-size: 13.5px;
  font-weight: 500;
  position: relative;
}

.nav-item:hover {
  background: rgba(255, 255, 255, 0.05);
  color: #FFFFFF;
  transform: translateX(3px);
}

.nav-item.active {
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.2) 0%, rgba(212, 175, 55, 0.05) 100%);
  color: #FFFFFF;
  font-weight: 600;
  border: 1px solid rgba(212, 175, 55, 0.3);
}

.nav-item.active::before {
  content: '';
  position: absolute;
  left: 0;
  top: 6px;
  bottom: 6px;
  width: 3.5px;
  border-radius: 0 4px 4px 0;
  background: var(--gold);
}

.nav-item .nav-icon {
  font-size: 18px;
  width: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #64748B;
  transition: var(--transition);
}

.nav-item:hover .nav-icon,
.nav-item.active .nav-icon {
  color: var(--gold);
}

.sidebar-footer {
  padding: 14px 18px;
  border-top: 1px solid rgba(212, 175, 55, 0.2);
  background: #090D16;
  margin-top: auto;
  flex-shrink: 0;
  position: sticky;
  bottom: 0;
  z-index: 10;
  box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.5);
}

.sidebar-user {
  display: flex;
  align-items: center;
  gap: 12px;
}

.sidebar-user-avatar {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: var(--gold-gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  color: #090D16;
  font-size: 14px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.3);
  flex-shrink: 0;
}

.sidebar-user-info {
  flex: 1;
  min-width: 0;
}

.sidebar-user-info .u-name {
  font-size: 13px;
  font-weight: 700;
  color: #FFFFFF;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sidebar-user-info .u-role {
  font-size: 11px;
  color: #94A3B8;
  text-transform: capitalize;
}

/* ============================================================
   MAIN CONTENT & TOPBAR
   ============================================================ */
.main-content {
  margin-left: var(--sidebar-w);
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-width: 0;
  width: calc(100% - var(--sidebar-w));
  max-width: 100%;
  overflow-x: hidden;
}

.topbar {
  height: var(--header-h);
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid #E2E8F0;
  display: flex;
  align-items: center;
  padding: 0 28px;
  gap: 20px;
  position: sticky;
  top: 0;
  z-index: 50;
  box-shadow: var(--shadow-sm);
}

.topbar-left {
  display: flex;
  align-items: center;
  gap: 16px;
  flex: 1;
}

.topbar-title {
  font-size: 20px;
  font-weight: 800;
  color: var(--dark);
  font-family: 'Outfit', sans-serif;
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: #64748B;
  margin-top: 2px;
}

.breadcrumb a {
  color: var(--dark);
  font-weight: 500;
}

.breadcrumb a:hover {
  color: var(--gold-dark);
}

.topbar-right {
  display: flex;
  align-items: center;
  gap: 14px;
}

.topbar-clock {
  font-size: 12.5px;
  font-weight: 600;
  color: #64748B;
  padding: 6px 12px;
  background: #F1F5F9;
  border-radius: 20px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.search-bar {
  position: relative;
}

.search-bar input {
  padding: 9px 18px 9px 42px;
  border: 1.5px solid #E2E8F0;
  border-radius: 24px;
  font-size: 13px;
  background: #F8FAFC;
  width: 240px;
  outline: none;
  transition: var(--transition);
  font-family: inherit;
}

.search-bar input:focus {
  border-color: var(--gold);
  width: 290px;
  background: #FFFFFF;
  box-shadow: 0 0 0 4px rgba(212, 175, 55, 0.1);
}

.search-bar .s-icon {
  position: absolute;
  left: 15px;
  top: 50%;
  transform: translateY(-50%);
  color: #94A3B8;
  font-size: 15px;
}

.icon-btn {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  border: 1px solid #E2E8F0;
  background: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  position: relative;
  transition: var(--transition);
  color: #475569;
  font-size: 18px;
}

.icon-btn:hover {
  background: #F8FAFC;
  border-color: #CBD5E1;
  color: var(--dark);
}

.notif-badge {
  position: absolute;
  top: -2px;
  right: -2px;
  width: 18px;
  height: 18px;
  background: var(--danger);
  border-radius: 50%;
  font-size: 10px;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  border: 2px solid white;
}

.page-content {
  padding: 28px;
  flex: 1;
}

/* ============================================================
   CARDS & STATS
   ============================================================ */
.card {
  background: #FFFFFF;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid rgba(226, 232, 240, 0.8);
  transition: var(--transition);
}

.card-header {
  padding: 18px 24px;
  border-bottom: 1px solid #F1F5F9;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.card-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--dark);
  font-family: 'Outfit', sans-serif;
}

.card-body {
  padding: 24px;
}

.card-footer {
  padding: 16px 24px;
  border-top: 1px solid #F1F5F9;
  background: #FAFAFC;
  border-radius: 0 0 var(--radius) var(--radius);
}

/* Stat Cards */
.stat-card {
  background: #FFFFFF;
  border-radius: var(--radius);
  padding: 22px 24px;
  box-shadow: var(--shadow);
  border: 1px solid rgba(226, 232, 240, 0.8);
  position: relative;
  overflow: hidden;
  cursor: pointer;
  transition: var(--transition);
}

.stat-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.09);
  border-color: rgba(212, 175, 55, 0.35);
}

.stat-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3.5px;
}

.stat-card.primary::before { background: var(--gold-gradient); }
.stat-card.success::before { background: linear-gradient(90deg, #10B981, #34D399); }
.stat-card.warning::before { background: linear-gradient(90deg, #F59E0B, #FBBF24); }
.stat-card.danger::before  { background: linear-gradient(90deg, #EF4444, #F87171); }
.stat-card.info::before    { background: linear-gradient(90deg, #3B82F6, #60A5FA); }
.stat-card.accent::before  { background: linear-gradient(90deg, #8B5CF6, #A78BFA); }
.stat-card.gold::before    { background: var(--gold-gradient); }

.stat-label {
  font-size: 11.5px;
  font-weight: 700;
  color: #64748B;
  text-transform: uppercase;
  letter-spacing: 0.8px;
}

.stat-value {
  font-size: 30px;
  font-weight: 800;
  color: var(--dark);
  margin: 8px 0 6px;
  font-family: 'Outfit', sans-serif;
  letter-spacing: -0.02em;
}

.stat-change {
  font-size: 12.5px;
  color: #64748B;
  display: flex;
  align-items: center;
  gap: 5px;
}

.stat-change.up { color: #059669; font-weight: 600; }
.stat-change.down { color: #DC2626; font-weight: 600; }

/* Modern Bespoke Icon Box - High-End Vector Icon Container */
.stat-icon, .stat-icon-box {
  position: absolute;
  right: 20px;
  top: 22px;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  opacity: 1;
  transition: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.05);
  flex-shrink: 0;
}

.stat-card:hover .stat-icon,
.stat-card:hover .stat-icon-box {
  transform: scale(1.1) rotate(4deg);
}

.stat-card.primary .stat-icon,
.stat-card.primary .stat-icon-box {
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.08) 0%, rgba(30, 41, 59, 0.04) 100%);
  color: #0F172A;
  border: 1px solid rgba(15, 23, 42, 0.12);
}

.stat-card.success .stat-icon,
.stat-card.success .stat-icon-box {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.14) 0%, rgba(52, 211, 153, 0.08) 100%);
  color: #059669;
  border: 1px solid rgba(16, 185, 129, 0.25);
  box-shadow: 0 4px 14px rgba(16, 185, 129, 0.12);
}

.stat-card.warning .stat-icon,
.stat-card.warning .stat-icon-box {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.15) 0%, rgba(251, 191, 36, 0.08) 100%);
  color: #D97706;
  border: 1px solid rgba(245, 158, 11, 0.25);
  box-shadow: 0 4px 14px rgba(245, 158, 11, 0.12);
}

.stat-card.danger .stat-icon,
.stat-card.danger .stat-icon-box {
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.14) 0%, rgba(248, 113, 113, 0.08) 100%);
  color: #DC2626;
  border: 1px solid rgba(239, 68, 68, 0.25);
  box-shadow: 0 4px 14px rgba(239, 68, 68, 0.12);
}

.stat-card.info .stat-icon,
.stat-card.info .stat-icon-box {
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.14) 0%, rgba(96, 165, 250, 0.08) 100%);
  color: #2563EB;
  border: 1px solid rgba(59, 130, 246, 0.25);
  box-shadow: 0 4px 14px rgba(59, 130, 246, 0.12);
}

.stat-card.accent .stat-icon,
.stat-card.accent .stat-icon-box {
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.14) 0%, rgba(167, 139, 250, 0.08) 100%);
  color: #7C3AED;
  border: 1px solid rgba(139, 92, 246, 0.25);
  box-shadow: 0 4px 14px rgba(139, 92, 246, 0.12);
}

.stat-card.gold .stat-icon,
.stat-card.gold .stat-icon-box {
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.18) 0%, rgba(243, 229, 171, 0.1) 100%);
  color: #B38728;
  border: 1px solid rgba(212, 175, 55, 0.35);
  box-shadow: 0 4px 16px rgba(212, 175, 55, 0.2);
}

/* Executive KPI Strip & Metric Boxes */
.kpi-strip {
  background: linear-gradient(135deg, #090D16 0%, #0F172A 50%, #1E1B4B 100%);
  border-radius: var(--radius);
  padding: 20px 24px;
  color: #FFFFFF;
  margin-bottom: 24px;
  border: 1px solid rgba(212, 175, 55, 0.25);
  box-shadow: 0 12px 36px rgba(9, 13, 22, 0.25);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 16px;
  position: relative;
  overflow: hidden;
}

.kpi-strip::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--gold-gradient);
}

.kpi-metric-box {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 14px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(8px);
  transition: all 0.25s ease;
}

.kpi-metric-box:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(212, 175, 55, 0.3);
  transform: translateY(-2px);
}

.kpi-metric-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(212, 175, 55, 0.16);
  color: var(--gold-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
  border: 1px solid rgba(212, 175, 55, 0.3);
}

.kpi-metric-title {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: #94A3B8;
  font-weight: 600;
}

.kpi-metric-value {
  font-size: 20px;
  font-weight: 800;
  color: #FFFFFF;
  font-family: 'Outfit', sans-serif;
  margin-top: 2px;
  line-height: 1.2;
}

.kpi-metric-sub {
  font-size: 11px;
  color: #CBD5E1;
  margin-top: 2px;
}

/* Live Room Status Matrix & Rack */
.room-matrix-container {
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid #E2E8F0;
  box-shadow: 0 4px 20px rgba(15, 23, 42, 0.04);
  padding: 22px;
  margin-bottom: 24px;
}

.room-rack-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 12px;
  margin-top: 16px;
  max-height: 380px;
  overflow-y: auto;
  padding-right: 4px;
}

.room-rack-card {
  position: relative;
  background: #F8FAFC;
  border: 1.5px solid #E2E8F0;
  border-radius: 12px;
  padding: 12px;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 90px;
}

.room-rack-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.08);
}

.room-rack-card.status-available {
  border-color: rgba(16, 185, 129, 0.4);
  background: linear-gradient(180deg, #F0FDF4 0%, #FFFFFF 100%);
}

.room-rack-card.status-occupied {
  border-color: rgba(239, 68, 68, 0.35);
  background: linear-gradient(180deg, #FEF2F2 0%, #FFFFFF 100%);
}

.room-rack-card.status-dirty {
  border-color: rgba(245, 158, 11, 0.4);
  background: linear-gradient(180deg, #FFFBEB 0%, #FFFFFF 100%);
}

.room-rack-card.status-cleaning {
  border-color: rgba(59, 130, 246, 0.4);
  background: linear-gradient(180deg, #EFF6FF 0%, #FFFFFF 100%);
}

.room-rack-card.status-maintenance {
  border-color: rgba(100, 116, 139, 0.4);
  background: linear-gradient(180deg, #F1F5F9 0%, #FFFFFF 100%);
}

.room-rack-card.status-blocked {
  border-color: rgba(148, 163, 184, 0.4);
  background: #F8FAFC;
  opacity: 0.75;
}

.room-rack-num {
  font-family: 'Outfit', sans-serif;
  font-size: 16px;
  font-weight: 800;
  color: var(--dark);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.room-rack-type {
  font-size: 11px;
  color: #64748B;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-top: 2px;
}

.room-rack-footer {
  margin-top: 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11px;
  font-weight: 700;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
  margin-right: 6px;
  flex-shrink: 0;
}
.pulse-dot.available { background: #10B981; box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.2); }
.pulse-dot.occupied  { background: #EF4444; box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.2); }
.pulse-dot.dirty     { background: #F59E0B; box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.2); }
.pulse-dot.cleaning  { background: #3B82F6; box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2); }
.pulse-dot.maintenance { background: #64748B; box-shadow: 0 0 0 3px rgba(100, 116, 139, 0.2); }

/* Rank Badges */
.rank-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  font-weight: 800;
  font-size: 12px;
  gap: 2px;
}
.rank-badge.rank-1 { background: #FEF3C7; color: #B45309; border: 1.5px solid #FCD34D; }
.rank-badge.rank-2 { background: #F1F5F9; color: #475569; border: 1.5px solid #CBD5E1; }
.rank-badge.rank-3 { background: #FFEDD5; color: #C2410C; border: 1.5px solid #FDBA74; }
.rank-badge.rank-def { background: #F8FAFC; color: #64748B; border: 1px solid #E2E8F0; }

/* ============================================================
   TABLES
   ============================================================ */
.table-wrap {
  overflow-x: auto;
  border-radius: var(--radius-sm);
}

.table {
  width: 100%;
  border-collapse: collapse;
  white-space: nowrap;
}

.table th {
  background: #F8FAFC;
  padding: 13px 18px;
  font-size: 11.5px;
  font-weight: 700;
  color: #475569;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  text-align: left;
  border-bottom: 1.5px solid #E2E8F0;
}

.table td {
  padding: 15px 18px;
  border-bottom: 1px solid #F1F5F9;
  font-size: 13.5px;
  color: #1E293B;
  vertical-align: middle;
}

.table tbody tr {
  transition: var(--transition);
}

.table tbody tr:hover {
  background: #F8FAFC;
}

/* ============================================================
   BADGES & PILLS
   ============================================================ */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.3px;
}

.badge-success { background: #ECFDF5; color: #065F46; border: 1px solid #A7F3D0; }
.badge-danger  { background: #FEF2F2; color: #991B1B; border: 1px solid #FECACA; }
.badge-warning { background: #FFFBEB; color: #92400E; border: 1px solid #FDE68A; }
.badge-info    { background: #EFF6FF; color: #1E40AF; border: 1px solid #BFDBFE; }
.badge-primary { background: #F8FAFC; color: #0F172A; border: 1px solid #CBD5E1; }
.badge-gold    { background: #FFFDF0; color: #855800; border: 1px solid #F3E5AB; }
.badge-secondary { background: #F1F5F9; color: #475569; border: 1px solid #E2E8F0; }
.badge-dark    { background: #1E293B; color: #FFFFFF; }

/* ============================================================
   ROOM STATUS CARDS & GRID
   ============================================================ */
.room-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 14px;
}

.room-card {
  background: #FFFFFF;
  border-radius: var(--radius-sm);
  padding: 16px 14px;
  text-align: center;
  border: 1.5px solid #E2E8F0;
  cursor: pointer;
  transition: var(--transition);
  position: relative;
  box-shadow: var(--shadow-sm);
}

.room-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.room-card.available   { border-color: #10B981; background: #F0FDF4; }
.room-card.occupied    { border-color: #EF4444; background: #FEF2F2; }
.room-card.dirty       { border-color: #F59E0B; background: #FFFBEB; }
.room-card.cleaning    { border-color: #3B82F6; background: #EFF6FF; }
.room-card.maintenance { border-color: #64748B; background: #F8FAFC; }
.room-card.blocked     { border-color: #1E293B; background: #0F172A; color: white; }

.room-number {
  font-size: 22px;
  font-weight: 800;
  font-family: 'Outfit', sans-serif;
  line-height: 1.2;
}

.room-type-label {
  font-size: 11px;
  color: #64748B;
  margin: 4px 0 8px;
  font-weight: 600;
}

.room-card.blocked .room-type-label {
  color: #94A3B8;
}

.room-status-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  margin: 0 auto;
}

.room-card.available .room-status-dot   { background: #10B981; }
.room-card.occupied .room-status-dot    { background: #EF4444; }
.room-card.dirty .room-status-dot       { background: #F59E0B; }
.room-card.cleaning .room-status-dot   { background: #3B82F6; }
.room-card.maintenance .room-status-dot { background: #64748B; }

/* Room Showcase Card (Image + Details) */
.room-showcase-card {
  background: white;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid #E2E8F0;
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.room-showcase-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.room-showcase-img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  position: relative;
}

.room-showcase-body {
  padding: 18px 20px;
}

/* ============================================================
   MODALS
   ============================================================ */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(9, 13, 22, 0.65);
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  backdrop-filter: blur(6px);
  opacity: 0;
  pointer-events: none;
  transition: var(--transition);
}

.modal-overlay.active,
.modal-overlay[style*="display: flex"],
.modal-overlay[style*="display:flex"] {
  opacity: 1 !important;
  pointer-events: all !important;
  visibility: visible !important;
}

.modal {
  background: #FFFFFF;
  border-radius: var(--radius-lg);
  max-width: 620px;
  width: 100%;
  max-height: 90vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transform: scale(0.95) translateY(15px);
  transition: var(--transition);
  box-shadow: var(--shadow-lg);
}

.modal-overlay.active .modal {
  transform: scale(1) translateY(0);
}

.modal-lg {
  max-width: 920px;
}

.modal-header {
  padding: 20px 26px;
  border-bottom: 1px solid #F1F5F9;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.modal-title {
  font-size: 18px;
  font-weight: 800;
  color: var(--dark);
  font-family: 'Outfit', sans-serif;
}

.modal-close {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: none;
  background: #F1F5F9;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  color: #64748B;
  transition: var(--transition);
}

.modal-close:hover {
  background: #FEE2E2;
  color: #DC2626;
}

.modal-body {
  padding: 26px;
  overflow-y: auto;
}

.modal-footer {
  padding: 16px 26px;
  border-top: 1px solid #F1F5F9;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  background: #FAFAFC;
}

/* ============================================================
   DROPDOWNS & PANELS
   ============================================================ */
.dropdown {
  position: relative;
}

.dropdown-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 10px);
  background: #FFFFFF;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  border: 1px solid #E2E8F0;
  min-width: 220px;
  z-index: 150;
  display: none;
  animation: dropIn 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
}

.dropdown.open .dropdown-menu {
  display: block;
}

@keyframes dropIn {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}

.dropdown-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 18px;
  font-size: 13.5px;
  color: #334155;
  cursor: pointer;
  transition: var(--transition);
}

.dropdown-item:hover {
  background: #F8FAFC;
  color: var(--dark);
}

.dropdown-divider {
  height: 1px;
  background: #F1F5F9;
  margin: 4px 0;
}

.notif-panel {
  position: absolute;
  right: 0;
  top: calc(100% + 10px);
  width: 380px;
  background: white;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  border: 1px solid #E2E8F0;
  z-index: 150;
  display: none;
  overflow: hidden;
}

.dropdown.open .notif-panel {
  display: block;
  animation: dropIn 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.notif-header {
  padding: 16px 20px;
  border-bottom: 1px solid #F1F5F9;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #FAFAFC;
}

.notif-item {
  padding: 14px 20px;
  border-bottom: 1px solid #F8FAFC;
  display: flex;
  gap: 12px;
  cursor: pointer;
  transition: var(--transition);
}

.notif-item:hover {
  background: #F8FAFC;
}

.notif-item.unread {
  background: #FFFDF7;
}

.notif-icon {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  flex-shrink: 0;
}

/* ============================================================
   GRIDS & UTILITIES
   ============================================================ */
.grid { display: grid; gap: 20px; }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-1-2 { grid-template-columns: 1fr 2fr; }
.grid-2-1 { grid-template-columns: 2fr 1fr; }

.d-flex { display: flex; }
.align-center { align-items: center; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }
.gap-8 { gap: 8px; }
.gap-12 { gap: 12px; }
.gap-16 { gap: 16px; }
.gap-20 { gap: 20px; }

.text-center { text-align: center; }
.text-right { text-align: right; }

.fw-500 { font-weight: 500; }
.fw-600 { font-weight: 600; }
.fw-700 { font-weight: 700; }
.fw-800 { font-weight: 800; }

.fs-11 { font-size: 11px; }
.fs-12 { font-size: 12px; }
.fs-13 { font-size: 13px; }
.fs-14 { font-size: 14px; }
.fs-16 { font-size: 16px; }
.fs-18 { font-size: 18px; }
.fs-20 { font-size: 20px; }
.fs-24 { font-size: 24px; }

.text-primary { color: var(--dark); }
.text-gold    { color: var(--gold-dark); }
.text-success { color: var(--success); }
.text-danger  { color: var(--danger); }
.text-warning { color: var(--warning); }
.text-muted   { color: #64748B; }

.mt-4 { margin-top: 4px; }
.mt-8 { margin-top: 8px; }
.mt-12 { margin-top: 12px; }
.mt-16 { margin-top: 16px; }
.mt-20 { margin-top: 20px; }
.mt-24 { margin-top: 24px; }
.mb-8 { margin-bottom: 8px; }
.mb-12 { margin-bottom: 12px; }
.mb-16 { margin-bottom: 16px; }
.mb-20 { margin-bottom: 20px; }
.mb-24 { margin-bottom: 24px; }
.p-20 { padding: 20px; }
.w-100 { width: 100%; }
.cursor-pointer { cursor: pointer; }

/* Alert */
.alert {
  padding: 13px 18px;
  border-radius: var(--radius-sm);
  font-size: 13.5px;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.alert-danger { background: #FEF2F2; color: #B91C1C; border: 1px solid #FECACA; }
.alert-success { background: #F0FDF4; color: #15803D; border: 1px solid #BBF7D0; }
.alert-warning { background: #FFFBEB; color: #B45309; border: 1px solid #FDE68A; }
.alert-info { background: #EFF6FF; color: #1D4ED8; border: 1px solid #BFDBFE; }

/* Avatar */
.avatar {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: var(--gold-gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #090D16;
  font-weight: 800;
  font-size: 15px;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

/* ============================================================
   PANEL ENHANCEMENTS: SIDEBAR, TOPBAR & EXECUTIVE FOOTER
   ============================================================ */
/* Mobile Sidebar Backdrop */
.sidebar-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(9, 13, 22, 0.7);
  backdrop-filter: blur(6px);
  z-index: 99;
  transition: opacity 0.3s ease;
}

.sidebar-backdrop.active {
  display: block;
  animation: fadeIn 0.25s ease;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* Live Guest Website Pill in Sidebar */
.live-site-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  background: rgba(212, 175, 55, 0.12);
  border: 1px solid rgba(212, 175, 55, 0.35);
  border-radius: 10px;
  color: #FDE047;
  font-size: 11.5px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.25s ease;
}

.live-site-pill:hover {
  background: var(--gold);
  color: #090D16;
  border-color: var(--gold);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(212, 175, 55, 0.3);
}

/* Sidebar Nav Badges */
.nav-badge {
  margin-left: auto;
  padding: 2px 8px;
  border-radius: 12px;
  font-size: 10px;
  font-weight: 800;
  line-height: 1.4;
  letter-spacing: 0.5px;
}

.nav-badge.badge-primary {
  background: var(--gold-gradient);
  color: #090D16;
}

.nav-badge.badge-warning {
  background: #F59E0B;
  color: #FFF;
}

/* Sidebar Logout Button */
.sidebar-logout-btn {
  color: #94A3B8;
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  transition: all 0.2s;
  text-decoration: none;
}

.sidebar-logout-btn:hover {
  color: #EF4444;
  background: rgba(239, 68, 68, 0.15);
}

/* Sidebar Status Dot */
.status-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #10B981;
  box-shadow: 0 0 6px #10B981;
  margin-right: 4px;
}

/* Outline Gold Button */
.btn-outline-gold {
  background: rgba(212, 175, 55, 0.08);
  border: 1px solid var(--gold);
  color: var(--gold-dark);
  font-weight: 700;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s;
}

.btn-outline-gold:hover {
  background: var(--gold-gradient);
  color: #090D16;
  border-color: var(--gold);
}

/* Panel Executive Footer */
.panel-executive-footer {
  height: 48px;
  background: #FFFFFF;
  border-top: 1px solid #E2E8F0;
  padding: 0 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  color: #64748B;
  margin-top: auto;
  box-shadow: 0 -2px 10px rgba(0,0,0,0.02);
}

.status-indicator-live {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #10B981;
  box-shadow: 0 0 8px #10B981;
  display: inline-block;
  margin-right: 6px;
}

/* Collapsed Sidebar on Desktop */
body.sidebar-collapsed .sidebar {
  width: 72px;
}

body.sidebar-collapsed .main-content {
  margin-left: 72px;
}

body.sidebar-collapsed .sidebar-brand-text,
body.sidebar-collapsed .nav-section-title,
body.sidebar-collapsed .nav-item span,
body.sidebar-collapsed .nav-badge,
body.sidebar-collapsed .sidebar-user-info,
body.sidebar-collapsed .live-site-pill span {
  display: none !important;
}

body.sidebar-collapsed .nav-item {
  justify-content: center;
  padding: 12px;
}

body.sidebar-collapsed .live-site-pill {
  justify-content: center;
  padding: 10px;
}

/* Animations */
@keyframes slideUp { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: translateY(0); } }
.animate-slideup { animation: slideUp 0.35s cubic-bezier(0.16, 1, 0.3, 1); }

/* ============================================================
   RESPONSIVE DESIGN SYSTEM (MOBILE, TABLET, DESKTOP)
   ============================================================ */

/* Global Anti-Overflow Base */
html, body {
  overflow-x: hidden !important;
  max-width: 100vw !important;
  width: 100% !important;
}

.app-layout {
  overflow-x: hidden !important;
  max-width: 100vw !important;
  width: 100% !important;
}

.main-content {
  overflow-x: hidden !important;
  max-width: 100% !important;
  min-width: 0 !important;
}

.page-content {
  overflow-x: hidden !important;
  max-width: 100% !important;
  min-width: 0 !important;
}

/* Mobile Sidebar Close Button */
.sidebar-mobile-close {
  display: none;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #FFFFFF;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  margin-left: auto;
  transition: var(--transition);
}
.sidebar-mobile-close:hover {
  background: rgba(239, 68, 68, 0.25);
  color: #EF4444;
  border-color: rgba(239, 68, 68, 0.4);
}

/* Base Responsive Utilities for Tables & Containers */
.table-responsive, .table-wrap, .card > table, .card-body > table {
  display: block !important;
  width: 100% !important;
  max-width: 100% !important;
  overflow-x: auto !important;
  -webkit-overflow-scrolling: touch !important;
}
.table-responsive::-webkit-scrollbar,
.table-wrap::-webkit-scrollbar {
  height: 6px;
}
.table-responsive::-webkit-scrollbar-thumb,
.table-wrap::-webkit-scrollbar-thumb {
  background: rgba(212, 175, 55, 0.35);
  border-radius: 4px;
}
.table-responsive table, .table-wrap table {
  min-width: 580px;
  width: 100%;
}

/* Cards & Panels Never Blow Out Screen */
.card {
  min-width: 0 !important;
  max-width: 100% !important;
  overflow: hidden;
}

.card-body {
  min-width: 0 !important;
  max-width: 100% !important;
}

/* Breakpoint: <= 1200px (Laptops & Small Desktops) */
@media (max-width: 1200px) {
  .kpi-strip {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 14px !important;
  }
  .grid-4 {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}

/* Breakpoint: <= 992px (Tablets, iPad, Foldables) */
@media (max-width: 992px) {
  .login-left { display: none; }
  .login-right { flex: 1; }

  .sidebar-mobile-close {
    display: flex;
  }

  /* Off-Canvas Drawer Sidebar */
  .sidebar {
    position: fixed !important;
    left: 0 !important;
    top: 0 !important;
    bottom: 0 !important;
    height: 100vh !important;
    max-height: 100vh !important;
    width: 290px !important;
    max-width: 85vw !important;
    transform: translateX(-100%) !important;
    z-index: 1050 !important;
    box-shadow: 0 0 60px rgba(0, 0, 0, 0.8) !important;
    transition: transform 0.32s cubic-bezier(0.4, 0, 0.2, 1) !important;
    overflow: hidden !important;
  }

  .sidebar.open {
    transform: translateX(0) !important;
  }

  .sidebar-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(9, 13, 22, 0.75);
    backdrop-filter: blur(6px);
    z-index: 1040;
    transition: opacity 0.3s ease;
  }

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

  .main-content {
    margin-left: 0 !important;
    width: 100% !important;
    max-width: 100vw !important;
    min-width: 0 !important;
    overflow-x: hidden !important;
  }

  .topbar {
    padding: 0 16px;
    height: 64px;
    width: 100% !important;
  }

  .page-content {
    padding: 18px 14px;
    width: 100% !important;
  }

  /* Force ALL multi-column grids to stack gracefully on tablets and mobiles */
  .grid, 
  .grid-4, 
  .grid-3, 
  .grid-2, 
  .grid-1-2, 
  .grid-2-1,
  .restaurant-pos-layout,
  .restaurant-order-grid,
  .booking-layout-grid,
  [style*="grid-template-columns"] {
    grid-template-columns: 1fr !important;
  }

  /* Restaurant POS / New Order Mobile Adaptation */
  .restaurant-pos-body {
    flex-direction: column !important;
    height: auto !important;
    min-height: 0 !important;
  }

  .restaurant-pos-menu {
    border-right: none !important;
    border-bottom: 2px solid var(--lighter) !important;
    max-height: 460px !important;
  }

  .restaurant-pos-cart,
  [style*="width:280px"],
  [style*="width: 280px"],
  [style*="width:380px"],
  [style*="width: 380px"] {
    width: 100% !important;
    max-width: 100% !important;
  }

  .restaurant-cat-filters {
    overflow-x: auto !important;
    flex-wrap: nowrap !important;
    -webkit-overflow-scrolling: touch !important;
    padding-bottom: 6px !important;
  }
  .restaurant-cat-filters .btn {
    flex-shrink: 0 !important;
  }
}

/* Breakpoint: <= 768px (Phablets, Large Phones) */
@media (max-width: 768px) {
  .topbar {
    padding: 0 12px !important;
    height: 60px !important;
    gap: 8px !important;
  }

  .topbar-left {
    min-width: 0 !important;
    gap: 8px !important;
  }

  .topbar-title {
    font-size: 15px !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    max-width: 170px !important;
  }

  .topbar-clock, .search-bar, .breadcrumb, .btn-outline-gold {
    display: none !important;
  }

  .topbar-right {
    gap: 8px !important;
    flex-shrink: 0 !important;
  }

  /* Page Header Wrap & Actions */
  .page-header-wrap {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 14px !important;
  }

  .page-header-actions {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 8px !important;
    width: 100% !important;
  }

  .page-header-actions .btn {
    flex: 1 1 calc(50% - 6px) !important;
    justify-content: center !important;
    text-align: center !important;
    font-size: 12.5px !important;
    padding: 9px 12px !important;
  }

  /* Card Headers & Filter Bars */
  .card-header {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 12px !important;
    padding: 14px 14px !important;
  }

  .card-header > div:last-child {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 8px !important;
    width: 100% !important;
  }

  .card-header form, form.d-flex {
    width: 100% !important;
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 8px !important;
  }

  .pos-header-controls {
    width: 100% !important;
    justify-content: stretch !important;
  }
  .pos-header-controls select {
    flex: 1 1 120px !important;
    width: auto !important;
  }

  /* Force inline-width selects/inputs to be responsive */
  .card-header select,
  .card-header input,
  form.d-flex select,
  form.d-flex input,
  select[style*="width"],
  input[style*="width"],
  div[style*="width"] {
    max-width: 100% !important;
  }

  .card-header form select,
  .card-header form input {
    flex: 1 1 120px !important;
    width: auto !important;
  }

  .form-row, .form-row-3, .form-row-4, .form-grid {
    grid-template-columns: 1fr !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 12px !important;
  }

  .panel-executive-footer {
    flex-direction: column;
    height: auto;
    padding: 14px 16px;
    gap: 8px;
    text-align: center;
  }

  /* Room Matrix rack responsive */
  .room-matrix-container {
    padding: 14px 12px !important;
  }
  .room-rack-grid {
    grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)) !important;
    gap: 8px !important;
  }
  .room-rack-card {
    padding: 10px 8px !important;
  }
  .room-filters,
  #roomRackFilterBtns {
    overflow-x: auto !important;
    flex-wrap: nowrap !important;
    padding-bottom: 6px !important;
    -webkit-overflow-scrolling: touch !important;
    width: 100% !important;
  }
  .filter-pill,
  #roomRackFilterBtns .btn {
    flex-shrink: 0 !important;
    white-space: nowrap !important;
  }
}

/* Breakpoint: <= 576px (Mobile Phones) */
@media (max-width: 576px) {
  .page-content {
    padding: 12px 10px !important;
  }

  .page-header-actions .btn {
    flex: 1 1 100% !important;
  }

  .card-body {
    padding: 14px 12px !important;
  }

  .kpi-strip {
    grid-template-columns: 1fr !important;
    padding: 14px 12px !important;
    gap: 10px !important;
  }

  .stat-card {
    padding: 14px 12px !important;
    gap: 10px !important;
  }

  .stat-value {
    font-size: 20px !important;
  }

  .topbar-title {
    max-width: 130px !important;
    font-size: 14px !important;
  }

  .btn-sm {
    padding: 6px 10px;
    font-size: 11.5px;
  }

  /* Bottom drawer style for modals on phones */
  .modal-overlay {
    padding: 8px;
    align-items: flex-end;
  }

  .modal {
    max-width: 100% !important;
    width: 100% !important;
    max-height: 90vh !important;
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
  }

  .modal-header {
    padding: 14px 16px;
  }

  .modal-body {
    padding: 14px 12px;
  }

  .modal-footer {
    padding: 12px 14px;
    flex-wrap: wrap;
    gap: 8px;
  }

  .modal-footer .btn {
    flex: 1 1 100%;
    justify-content: center;
  }

  .room-rack-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 8px !important;
  }
}

/* Breakpoint: <= 380px (Very Small Phones) */
@media (max-width: 380px) {
  .topbar-title {
    max-width: 95px !important;
    font-size: 13.5px !important;
  }

  .page-content {
    padding: 8px 6px !important;
  }

  .card-header {
    padding: 10px 8px !important;
  }
}

/* Print Styles */
@media print {
  .sidebar, .topbar, .panel-executive-footer, .no-print, .btn, .sidebar-backdrop, .modal-overlay {
    display: none !important;
  }
  .main-content {
    margin: 0 !important;
    width: 100% !important;
  }
  .page-content {
    padding: 0 !important;
  }
  .card {
    box-shadow: none !important;
    border: 1px solid #E2E8F0 !important;
  }
}


