/* Import modern Outfit font */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700&display=swap');

:root {
  /* Ultra Modern Color Palette (Space Tech / Glassmorphism theme) */
  --bg-main: #070913;
  --bg-sidebar: rgba(14, 18, 36, 0.75);
  --bg-card: rgba(22, 28, 54, 0.45);
  --bg-card-hover: rgba(28, 36, 68, 0.6);
  --bg-input: rgba(30, 39, 73, 0.6);
  
  --text-main: #f3f4f6;
  --text-muted: #9ca3af;
  
  --color-primary: #6366f1; /* Glowing Indigo */
  --color-primary-hover: #4f46e5;
  --color-accent: #a855f7; /* Violet */
  
  /* Status Colors with Glowing Accent Options */
  --color-vacant: #10b981;
  --color-vacant-glow: rgba(16, 185, 129, 0.25);
  
  --color-occupied: #3b82f6;
  --color-occupied-glow: rgba(59, 130, 246, 0.25);
  
  --color-dirty: #f59e0b;
  --color-dirty-glow: rgba(245, 158, 11, 0.25);
  
  --color-cleaning: #a855f7;
  --color-cleaning-glow: rgba(168, 85, 247, 0.25);
  
  --color-maintenance: #ef4444;
  --color-maintenance-glow: rgba(239, 68, 68, 0.25);
  
  --border-color: rgba(255, 255, 255, 0.06);
  --border-glow: rgba(99, 102, 241, 0.2);
  --font-sans: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.2);
  --shadow-md: 0 8px 16px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.05);
  --shadow-lg: 0 16px 36px rgba(0, 0, 0, 0.6), inset 0 1px 1px rgba(255, 255, 255, 0.1);
  --shadow-glow: 0 0 20px rgba(99, 102, 241, 0.15);
  
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
}

body.light-theme {
  --bg-main: #f3f4f6;
  --bg-sidebar: #ffffff;
  --bg-card: #ffffff;
  --bg-card-hover: #f9fafb;
  --bg-input: #f3f4f6;
  
  --text-main: #1f2937;
  --text-muted: #6b7280;
  
  --color-primary: #4f46e5;
  --color-primary-hover: #3730a3;
  --color-accent: #8b5cf6;
  
  --border-color: #e5e7eb;
  --border-glow: rgba(79, 70, 229, 0.15);
  
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.12);
  --shadow-glow: 0 0 15px rgba(79, 70, 229, 0.08);
}

body.light-theme {
  background-image: 
    radial-gradient(circle at 80% 20%, rgba(99, 102, 241, 0.04) 0%, transparent 40%),
    radial-gradient(circle at 20% 80%, rgba(168, 85, 247, 0.03) 0%, transparent 40%);
}

/* Emerald Luxury (Forest Gold) Theme */
body.theme-emerald {
  --bg-main: #021a11;
  --bg-sidebar: rgba(4, 30, 20, 0.85);
  --bg-card: rgba(8, 45, 30, 0.5);
  --bg-card-hover: rgba(12, 60, 40, 0.65);
  --bg-input: rgba(6, 40, 26, 0.6);
  
  --text-main: #f0fdf4;
  --text-muted: #86efac;
  
  --color-primary: #10b981;
  --color-primary-hover: #059669;
  --color-accent: #fbbf24;
  
  --border-color: rgba(250, 204, 21, 0.08);
  --border-glow: rgba(250, 204, 21, 0.2);
  --shadow-glow: 0 0 20px rgba(250, 204, 21, 0.15);
}
body.theme-emerald {
  background-image: 
    radial-gradient(circle at 80% 20%, rgba(16, 185, 129, 0.08) 0%, transparent 40%),
    radial-gradient(circle at 20% 80%, rgba(251, 191, 36, 0.06) 0%, transparent 40%);
}

/* Royal Navy Theme */
body.theme-navy {
  --bg-main: #040914;
  --bg-sidebar: rgba(8, 16, 36, 0.85);
  --bg-card: rgba(14, 28, 60, 0.5);
  --bg-card-hover: rgba(20, 38, 80, 0.65);
  --bg-input: rgba(12, 24, 52, 0.6);
  
  --text-main: #eff6ff;
  --text-muted: #93c5fd;
  
  --color-primary: #3b82f6;
  --color-primary-hover: #2563eb;
  --color-accent: #f43f5e;
  
  --border-color: rgba(59, 130, 246, 0.08);
  --border-glow: rgba(59, 130, 246, 0.2);
  --shadow-glow: 0 0 20px rgba(59, 130, 246, 0.15);
}
body.theme-navy {
  background-image: 
    radial-gradient(circle at 80% 20%, rgba(59, 130, 246, 0.08) 0%, transparent 40%),
    radial-gradient(circle at 20% 80%, rgba(244, 63, 94, 0.06) 0%, transparent 40%);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
}

body {
  background-color: var(--bg-main);
  background-image: 
    radial-gradient(circle at 80% 20%, rgba(99, 102, 241, 0.08) 0%, transparent 40%),
    radial-gradient(circle at 20% 80%, rgba(168, 85, 247, 0.06) 0%, transparent 40%);
  color: var(--text-main);
  overflow: hidden;
  height: 100vh;
  display: flex;
}

/* Custom Scrollbar for modern look */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.02);
}
::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.12);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.2);
}

/* ================= UTILITY CLASSES ================= */
.hidden { display: none !important; }
.text-primary { color: var(--color-primary) !important; }
.text-success { color: var(--color-vacant) !important; }
.text-warning { color: var(--color-dirty) !important; }
.text-danger { color: var(--color-maintenance) !important; }
.divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border-color), transparent);
  margin: 24px 0;
}

/* Global View Container visibility fixer */
.view-container {
  display: none !important;
}
.view-container.active {
  display: flex !important;
}

/* ================= BUTTONS ================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 20px;
  font-size: 14px;
  font-weight: 500;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  outline: none;
  gap: 8px;
  box-shadow: var(--shadow-sm);
}

.btn-primary {
  background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.1);
  position: relative;
  overflow: hidden;
}
.btn-primary::after {
  content: '';
  position: absolute;
  top: 0; left: -50%; width: 200%; height: 100%;
  background: linear-gradient(to right, rgba(255,255,255,0) 0%, rgba(255,255,255,0.15) 50%, rgba(255,255,255,0) 100%);
  transform: skewX(-25deg);
  transition: 0.75s ease;
}
.btn-primary:hover::after {
  left: 125%;
}
.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 15px rgba(99, 102, 241, 0.35);
}

.btn-secondary {
  background: var(--bg-input);
  color: var(--text-main);
  border: 1px solid var(--border-color);
}
.btn-secondary:hover {
  background: var(--bg-card-hover);
  border-color: rgba(255, 255, 255, 0.15);
  transform: translateY(-1px);
}

.btn-danger {
  background: linear-gradient(135deg, #ef4444, #b91c1c);
  color: #fff;
}
.btn-danger:hover {
  box-shadow: 0 4px 15px rgba(239, 68, 68, 0.35);
  transform: translateY(-1px);
}

.btn-block {
  display: flex;
  width: 100%;
}
.btn-sm {
  padding: 6px 12px;
  font-size: 12px;
  border-radius: 6px;
}

/* ================= LOGIN VIEW ================= */
#login-container {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100vh;
  background: radial-gradient(circle at 50% 50%, #0d122c 0%, #05060d 100%);
}

.login-card {
  background: rgba(14, 20, 43, 0.55);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.05);
  padding: 48px;
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 440px;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.6), 0 0 40px rgba(99, 102, 241, 0.06);
  animation: slideUp 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.login-header {
  text-align: center;
  margin-bottom: 36px;
}

.login-logo {
  color: var(--color-primary);
  margin-bottom: 16px;
  filter: drop-shadow(0 0 12px rgba(99, 102, 241, 0.5));
}

.login-header h1 {
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -0.5px;
  background: linear-gradient(to right, #fff, #a5b4fc);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.login-header p {
  color: var(--text-muted);
  font-size: 14px;
  margin-top: 6px;
}

.form-group {
  margin-bottom: 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-group label {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
  letter-spacing: 0.5px;
}

.form-control, input[type="text"], input[type="password"], input[type="email"], input[type="number"], input[type="date"], input[type="time"], select, textarea {
  width: 100%;
  background-color: var(--bg-input);
  border: 1px solid var(--border-color);
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  color: var(--text-main);
  font-size: 14px;
  outline: none;
  transition: all 0.2s ease;
  box-shadow: inset 0 2px 4px rgba(0,0,0,0.2);
}

.form-control:focus, input:focus, select:focus, textarea:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2), inset 0 2px 4px rgba(0,0,0,0.1);
  background-color: rgba(30, 39, 73, 0.8);
}

.error-msg {
  color: var(--color-maintenance);
  font-size: 13px;
  margin-top: 20px;
  text-align: center;
  animation: shake 0.3s ease;
}

/* ================= MAIN APP WRAPPER ================= */
#app-container {
  display: flex;
  width: 100%;
  height: 100vh;
}

/* ================= SIDEBAR ================= */
.sidebar {
  width: 260px;
  background-color: var(--bg-sidebar);
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
  border-right: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  z-index: 100;
}

.sidebar-brand {
  height: 75px;
  display: flex;
  align-items: center;
  padding: 0 28px;
  gap: 14px;
  border-bottom: 1px solid var(--border-color);
  color: var(--color-primary);
  font-weight: 700;
  font-size: 19px;
  letter-spacing: 1.5px;
}

.sidebar-menu {
  padding: 28px 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex-grow: 1;
  overflow-y: auto;
}

.menu-item {
  display: flex;
  align-items: center;
  padding: 12px 18px;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  border-radius: var(--radius-sm);
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  gap: 14px;
  border: 1px solid transparent;
}

.menu-item:hover {
  background-color: rgba(255, 255, 255, 0.04);
  color: var(--text-main);
  transform: translateX(2px);
}

.menu-item.active {
  background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.25);
}

.sidebar-footer {
  padding: 20px;
  border-top: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background-color: rgba(0,0,0,0.15);
}

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

.user-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 14px;
  border: 2px solid rgba(255, 255, 255, 0.1);
  box-shadow: var(--shadow-sm);
}

.user-name {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.2px;
}

.user-role {
  font-size: 11px;
  color: var(--text-muted);
}

.btn-logout {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 8px;
  border-radius: var(--radius-sm);
  transition: all 0.2s ease;
}

.btn-logout:hover {
  color: var(--color-maintenance);
  background-color: rgba(239, 68, 68, 0.12);
}

/* ================= MAIN CONTENT ================= */
.main-content {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  height: 100vh;
  overflow: hidden;
}

.content-header {
  height: 75px;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 36px;
  flex-shrink: 0;
  background-color: rgba(14, 18, 36, 0.2);
}

.header-left h2 {
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.5px;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 24px;
}

.clock-display {
  font-size: 14px;
  font-weight: 600;
  color: var(--color-primary);
  background-color: rgba(99, 102, 241, 0.08);
  padding: 8px 16px;
  border-radius: 20px;
  border: 1px solid rgba(99, 102, 241, 0.15);
  box-shadow: var(--shadow-sm);
}

.content-view {
  flex-grow: 1;
  padding: 36px;
  overflow-y: auto;
  display: none;
}

.content-view.active {
  display: block;
  animation: slideUp 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ================= VIEW: DASHBOARD ================= */
.stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 28px;
  margin-bottom: 36px;
}

.stat-card {
  background: var(--bg-card);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  box-shadow: var(--shadow-md);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.stat-card:hover {
  transform: translateY(-2px);
  border-color: var(--border-glow);
  box-shadow: 0 8px 24px rgba(99, 102, 241, 0.1);
}

.stat-card.warning-card {
  border-left: 4px solid var(--color-dirty);
}

.stat-card.warning-active {
  animation: statPulseGlow 2s infinite;
}

.stat-label {
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.stat-value {
  font-size: 32px;
  font-weight: 700;
  letter-spacing: -0.5px;
}

.stat-description {
  color: var(--text-muted);
  font-size: 12px;
}

.stat-progress-bar {
  height: 6px;
  background-color: rgba(255,255,255,0.05);
  border-radius: 3px;
  overflow: hidden;
  margin-top: 8px;
}

.stat-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--color-primary), var(--color-accent));
  border-radius: 3px;
}

.dashboard-section {
  background: var(--bg-card);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 32px;
  box-shadow: var(--shadow-md);
}

.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 28px;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 20px;
}

.section-header h3 {
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.2px;
}

.room-legends {
  display: flex;
  gap: 20px;
  font-size: 12px;
}

.legend {
  display: flex;
  align-items: center;
  gap: 8px;
}

.legend-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  box-shadow: 0 0 8px currentColor;
}
.legend-dot.vacant { background-color: var(--color-vacant); color: var(--color-vacant); }
.legend-dot.occupied { background-color: var(--color-occupied); color: var(--color-occupied); }
.legend-dot.dirty { background-color: var(--color-dirty); color: var(--color-dirty); }
.legend-dot.cleaning { background-color: var(--color-cleaning); color: var(--color-cleaning); }
.legend-dot.maintenance { background-color: var(--color-maintenance); color: var(--color-maintenance); }

/* Room matrix grid */
.floor-group {
  margin-bottom: 32px;
}

.floor-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 16px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.rooms-row {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 20px;
}

.room-card {
  background: rgba(22, 28, 54, 0.45);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  height: 100px;
  position: relative;
  overflow: hidden;
}

.room-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(255, 255, 255, 0.15);
}

.room-card-number {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.5px;
}

.room-card-type {
  font-size: 11px;
  color: var(--text-muted);
}

.room-card-status {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  align-self: flex-start;
  padding: 3px 8px;
  border-radius: 4px;
  margin-top: 8px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.05);
}

/* Glowing Room Cards styling */
.room-card.vacant { 
  border-left: 4px solid var(--color-vacant); 
}
.room-card.vacant:hover {
  box-shadow: 0 8px 24px var(--color-vacant-glow);
  border-color: var(--color-vacant);
}
.room-card.vacant .room-card-status { background-color: rgba(16, 185, 129, 0.12); color: var(--color-vacant); }

.room-card.occupied { 
  border-left: 4px solid var(--color-occupied); 
}
.room-card.occupied:hover {
  box-shadow: 0 8px 24px var(--color-occupied-glow);
  border-color: var(--color-occupied);
}
.room-card.occupied .room-card-status { background-color: rgba(59, 130, 246, 0.12); color: var(--color-occupied); }

.room-card.dirty { 
  border-left: 4px solid var(--color-dirty); 
}
.room-card.dirty:hover {
  box-shadow: 0 8px 24px var(--color-dirty-glow);
  border-color: var(--color-dirty);
}
.room-card.dirty .room-card-status { background-color: rgba(245, 158, 11, 0.12); color: var(--color-dirty); }

.room-card.cleaning { 
  border-left: 4px solid var(--color-cleaning); 
}
.room-card.cleaning:hover {
  box-shadow: 0 8px 24px var(--color-cleaning-glow);
  border-color: var(--color-cleaning);
}
.room-card.cleaning .room-card-status { background-color: rgba(168, 85, 247, 0.12); color: var(--color-cleaning); }

.room-card.maintenance { 
  border-left: 4px solid var(--color-maintenance); 
}
.room-card.maintenance:hover {
  box-shadow: 0 8px 24px var(--color-maintenance-glow);
  border-color: var(--color-maintenance);
}
.room-card.maintenance .room-card-status { background-color: rgba(239, 68, 68, 0.12); color: var(--color-maintenance); }

/* ================= VIEW: CALENDAR ================= */
.calendar-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  background: var(--bg-card);
  padding: 16px 24px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
}

.date-picker-nav {
  display: flex;
  align-items: center;
  gap: 12px;
}

.calendar-grid-wrapper {
  background: var(--bg-card);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  overflow-x: auto;
  max-width: 100%;
  box-shadow: var(--shadow-md);
}

.calendar-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 1200px;
}

.calendar-table th, .calendar-table td {
  border: 1px solid var(--border-color);
  padding: 16px 12px;
  text-align: center;
  font-size: 13px;
}

.calendar-table th {
  background-color: rgba(14, 18, 36, 0.5);
  font-weight: 600;
  color: var(--text-muted);
}

.calendar-table th:first-child, .calendar-table td:first-child {
  position: sticky;
  left: 0;
  background-color: #0e1224;
  z-index: 10;
  text-align: left;
  font-weight: 600;
  width: 180px;
  min-width: 180px;
  box-shadow: 4px 0 10px rgba(0,0,0,0.3);
}

.calendar-cell-date {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 4px;
}

.calendar-row-room {
  font-weight: 600;
  font-size: 15px;
}
.calendar-row-type {
  font-size: 10px;
  color: var(--text-muted);
  display: block;
  margin-top: 2px;
}

.calendar-cell-slot {
  cursor: pointer;
  position: relative;
  height: 64px;
  padding: 0;
  min-width: 100px;
}

.calendar-cell-slot:hover {
  background-color: rgba(255, 255, 255, 0.02);
}

.booking-bar {
  position: absolute;
  top: 10px;
  bottom: 10px;
  left: 6px;
  right: 6px;
  background-color: var(--color-occupied);
  color: #fff;
  border-radius: 6px;
  display: flex;
  align-items: center;
  padding: 0 12px;
  font-size: 11px;
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  box-shadow: var(--shadow-sm);
  z-index: 2;
  cursor: pointer;
  transition: all 0.2s ease;
  border: 1px solid rgba(255,255,255,0.08);
}
.booking-bar:hover {
  transform: scale(1.02);
  z-index: 5;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

.booking-bar.confirmed {
  background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
}
.booking-bar.checked-in {
  background: linear-gradient(135deg, var(--color-occupied), #1d4ed8);
}

/* ================= TABLES & DATA LISTS ================= */
.toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 28px;
  background: var(--bg-card);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  padding: 20px 28px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
}

.search-box {
  display: flex;
  gap: 12px;
  max-width: 500px;
  width: 100%;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--bg-card);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.data-table th, .data-table td {
  padding: 18px 28px;
  text-align: left;
  font-size: 14px;
  border-bottom: 1px solid var(--border-color);
}

.data-table th {
  background-color: rgba(14, 18, 36, 0.45);
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  font-size: 12px;
  letter-spacing: 0.8px;
}

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

.data-table tbody tr {
  transition: background-color 0.2s ease;
}
.data-table tbody tr:hover {
  background-color: rgba(255, 255, 255, 0.015);
}

.guest-thumb {
  width: 46px;
  height: 46px;
  border-radius: 8px;
  object-fit: cover;
  background-color: var(--bg-input);
  border: 1px solid rgba(255,255,255,0.08);
}

/* ================= VIEW: BILLING & CHECKOUT ================= */
.billing-container {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 28px;
  align-items: start;
}

.card {
  background: var(--bg-card);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 28px;
  box-shadow: var(--shadow-md);
  margin-bottom: 28px;
}

.card-wide {
  grid-column: span 2;
}

.card h3 {
  font-size: 17px;
  font-weight: 600;
  margin-bottom: 24px;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 14px;
  letter-spacing: -0.2px;
}

.details-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 14px;
  font-size: 14px;
}

.details-row span {
  color: var(--text-muted);
}

.total-row {
  font-size: 20px;
  font-weight: 700;
  color: var(--color-primary);
  margin-top: 20px;
  border-top: 1px dashed var(--border-color);
  padding-top: 20px;
}

.radio-group {
  display: flex;
  gap: 20px;
  margin-top: 8px;
}

.radio-group label {
  font-size: 14px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Invoice Sheet Container */
.invoice-container {
  background-color: #fff;
  color: #111;
  padding: 48px;
  border-radius: var(--radius-sm);
  min-height: 500px;
  box-shadow: var(--shadow-lg);
  font-size: 12px;
  line-height: 1.6;
}

.no-invoice-notice {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  height: 320px;
  font-size: 14px;
  border: 1px dashed var(--border-color);
  border-radius: var(--radius-sm);
}

.invoice-actions {
  display: flex;
  gap: 16px;
  margin-top: 20px;
}

/* ================= VIEW: HOUSEKEEPING & STAFF TABS ================= */
.tabs-header {
  display: flex;
  gap: 12px;
  margin-bottom: 28px;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 1px;
}

.tab-btn {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 14px;
  font-weight: 600;
  padding: 14px 24px;
  cursor: pointer;
  position: relative;
  transition: color 0.2s ease;
}

.tab-btn:hover {
  color: var(--text-main);
}

.tab-btn.active {
  color: var(--color-primary);
}

.tab-btn.active::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--color-primary), var(--color-accent));
}

.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
  animation: slideUp 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ================= VIEW: REPORTS ================= */
.reports-toolbar {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}

.inline-group {
  flex-grow: 1;
  min-width: 180px;
}

.reports-container {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
}

.chart-container {
  background-color: rgba(0,0,0,0.25);
  border-radius: var(--radius-sm);
  padding: 24px;
  min-height: 280px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border-color);
}

.report-table-wrapper {
  max-height: 400px;
  overflow-y: auto;
}

/* ================= MODALS & DIALOGS ================= */
.modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(3, 4, 8, 0.82);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.modal-backdrop.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-card {
  background: rgba(18, 24, 48, 0.85);
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-lg);
  width: 90%;
  max-width: 540px;
  box-shadow: var(--shadow-lg), 0 0 50px rgba(99, 102, 241, 0.05);
  display: flex;
  flex-direction: column;
  max-height: 90vh;
  transform: translateY(24px);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-card form {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  min-height: 0;
  overflow: hidden;
}

.modal-backdrop.active .modal-card {
  transform: translateY(0);
}

.modal-card.modal-large {
  max-width: 980px;
  height: 650px;
}

.modal-header {
  padding: 24px 28px;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.modal-header h3 {
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.2px;
}

.btn-close {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 26px;
  cursor: pointer;
  line-height: 1;
  transition: color 0.2s ease;
}

.btn-close:hover {
  color: var(--text-main);
}

.modal-body {
  padding: 28px;
  overflow-y: auto;
  flex-grow: 1;
}

.modal-subtext {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 20px;
}

.modal-footer {
  padding: 20px 28px;
  border-top: 1px solid var(--border-color);
  display: flex;
  justify-content: flex-end;
  gap: 14px;
}

/* New Booking Modal Grid Section */
.modal-grid-section {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 28px;
}

.modal-grid-section h4 {
  grid-column: span 2;
  font-size: 15px;
  font-weight: 600;
  color: var(--color-primary);
  margin-bottom: 12px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.guest-search-panel {
  grid-column: span 2;
  background: rgba(0, 0, 0, 0.2);
  padding: 20px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-color);
  margin-bottom: 20px;
}

.input-append {
  display: flex;
  gap: 12px;
  margin-top: 8px;
}

.guest-lookup-text {
  font-size: 12px;
  color: var(--color-vacant);
  margin-top: 10px;
}

/* Webcam Capture */
.photo-capture-panel {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: rgba(0, 0, 0, 0.25);
  padding: 20px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-color);
  align-self: start;
}

.photo-capture-panel label {
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 12px;
  align-self: flex-start;
  color: var(--text-muted);
}

.webcam-viewer {
  width: 180px;
  height: 180px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background-color: #0b0c15;
  border: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  position: relative;
  box-shadow: inset 0 0 15px rgba(0,0,0,0.5);
}

.webcam-viewer video, .webcam-viewer canvas {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.webcam-viewer img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.8;
}

.webcam-buttons {
  display: flex;
  gap: 8px;
}

/* Room checkboxes in booking modal */
.checkbox-tile-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
  gap: 12px;
  max-height: 200px;
  overflow-y: auto;
  border: 1px solid var(--border-color);
  padding: 16px;
  border-radius: var(--radius-sm);
  background: rgba(0, 0, 0, 0.2);
}

.checkbox-tile {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px;
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  transition: all 0.2s ease;
}
.checkbox-tile:hover {
  background-color: var(--bg-card-hover);
  border-color: rgba(255, 255, 255, 0.15);
}

.checkbox-tile input {
  cursor: pointer;
}

.pricing-summary-box {
  grid-column: span 2;
  background: rgba(99, 102, 241, 0.08);
  border: 1px solid rgba(99, 102, 241, 0.25);
  border-radius: var(--radius-sm);
  padding: 20px;
  font-size: 13px;
  margin-top: 20px;
  line-height: 1.6;
}

/* VIP & Blacklist Badges */
.vip-badge {
  background-color: rgba(245, 158, 11, 0.12);
  color: var(--color-dirty);
  border: 1px solid rgba(245, 158, 11, 0.2);
  display: inline-block;
  padding: 3px 8px;
  font-size: 10px;
  font-weight: 700;
  border-radius: 4px;
}

.blacklist-badge {
  background-color: rgba(239, 68, 68, 0.12);
  color: var(--color-maintenance);
  border: 1px solid rgba(239, 68, 68, 0.2);
  display: inline-block;
  padding: 3px 8px;
  font-size: 10px;
  font-weight: 700;
  border-radius: 4px;
}

.blacklist-reason-text {
  font-size: 12px;
  color: var(--color-maintenance);
  margin-top: 10px;
  font-style: italic;
}

.profile-summary {
  display: flex;
  gap: 28px;
}

.profile-photo-container {
  width: 150px;
  height: 150px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  overflow: hidden;
  background-color: var(--bg-input);
  box-shadow: var(--shadow-sm);
}

.profile-photo-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.profile-details-text {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 14px;
}

/* ================= CONTEXT MENU ================= */
.context-menu {
  position: absolute;
  background: rgba(14, 18, 36, 0.88);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-sm);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  z-index: 2000;
  width: 200px;
  overflow: hidden;
  animation: slideUp 0.15s cubic-bezier(0.16, 1, 0.3, 1);
}

.context-menu.hidden {
  display: none !important;
}

.context-header {
  padding: 10px 14px;
  font-size: 11px;
  color: var(--text-muted);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  background-color: rgba(0,0,0,0.2);
}

.context-item {
  display: block;
  padding: 11px 14px;
  font-size: 13px;
  color: var(--text-main);
  text-decoration: none;
  transition: all 0.2s ease;
}

.context-item:hover {
  background-color: rgba(255,255,255,0.05);
  transform: translateX(2px);
}

/* WhatsApp Queue Logs Modal styling */
.whatsapp-queue {
  display: flex;
  flex-direction: column;
  gap: 18px;
  max-height: 450px;
  overflow-y: auto;
}

.whatsapp-item {
  background-color: rgba(0, 0, 0, 0.2);
  border: 1px solid var(--border-color);
  padding: 20px;
  border-radius: var(--radius-sm);
  font-size: 13px;
}

.whatsapp-item-meta {
  display: flex;
  justify-content: space-between;
  color: var(--text-muted);
  font-size: 11px;
  margin-bottom: 10px;
}

.whatsapp-item-body {
  white-space: pre-wrap;
  color: var(--text-main);
  background-color: rgba(0, 0, 0, 0.25);
  padding: 12px;
  border-radius: 6px;
  border: 1px solid rgba(255,255,255,0.03);
}

.notification-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  background-color: var(--color-maintenance);
  color: #fff;
  font-size: 9px;
  font-weight: bold;
  padding: 2px 6px;
  border-radius: 10px;
  border: 1px solid var(--bg-main);
}

/* Loading Spinner Overlay */
.loading-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(3, 4, 8, 0.8);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 9999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 20px;
}

.spinner {
  width: 54px;
  height: 54px;
  border: 4px solid rgba(255, 255, 255, 0.05);
  border-top: 4px solid var(--color-primary);
  border-radius: 50%;
  animation: spin 1s cubic-bezier(0.55, 0.085, 0.68, 0.53) infinite;
  filter: drop-shadow(0 0 10px var(--color-primary));
}

.loading-text {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-muted);
  letter-spacing: 0.5px;
}

/* settings controls */
.database-controls {
  display: flex;
  align-items: center;
  gap: 24px;
}

.backup-info {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.5;
}

.audit-log-container {
  max-height: 300px;
  overflow-y: auto;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
}

/* ================= ANIMATIONS ================= */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slideUp {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

@keyframes statPulseGlow {
  0% { border-color: var(--border-color); box-shadow: var(--shadow-sm); }
  50% { border-color: var(--color-dirty); box-shadow: 0 0 15px var(--color-dirty-glow); }
  100% { border-color: var(--border-color); box-shadow: var(--shadow-sm); }
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-6px); }
  75% { transform: translateX(6px); }
}

/* Autocomplete Dropdown */
.autocomplete-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: rgba(14, 20, 43, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-sm);
  max-height: 200px;
  overflow-y: auto;
  z-index: 100;
  box-shadow: var(--shadow-lg);
  margin-top: 4px;
}

.autocomplete-item {
  padding: 12px 16px;
  cursor: pointer;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  font-size: 13px;
  transition: background-color 0.2s ease;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.autocomplete-item:last-child {
  border-bottom: none;
}

.autocomplete-item:hover {
  background-color: rgba(255, 255, 255, 0.05);
}

.autocomplete-item strong {
  color: #fff;
}

.autocomplete-item span {
  color: var(--text-muted);
}

/* Wizard Steps Indicator */
.wizard-steps-indicator {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin-bottom: 24px;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 20px;
}

.wizard-step {
  display: flex;
  align-items: center;
  gap: 10px;
  opacity: 0.5;
  transition: all 0.3s ease;
}

.wizard-step.active {
  opacity: 1;
}

.wizard-step.completed .step-num {
  background-color: var(--color-vacant);
  border-color: var(--color-vacant);
  color: #fff;
}

.wizard-step.active .step-num {
  background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
  border-color: var(--color-primary);
  box-shadow: 0 0 12px rgba(99, 102, 241, 0.4);
  color: #fff;
}

.step-num {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 2px solid var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 13px;
  background-color: transparent;
  color: var(--text-muted);
  transition: all 0.3s ease;
}

.step-label {
  font-size: 14px;
  font-weight: 600;
}

.wizard-step-line {
  height: 2px;
  width: 60px;
  background-color: var(--border-color);
  transition: all 0.3s ease;
}

.wizard-step-line.active {
  background-color: var(--color-primary);
}

#booking-form {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  overflow: hidden;
  height: calc(100% - 40px); /* accounting for header padding */
}

.wizard-slider-window {
  overflow: hidden;
  width: 100%;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  height: 0;
  min-height: 0;
}

.wizard-slider-track {
  display: flex;
  width: 200%;
  height: 100%;
  min-height: 0;
  flex-grow: 1;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.wizard-step-content {
  width: 50%;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  height: 100%;
  max-height: 100%;
  min-height: 0;
  overflow: hidden;
}

.wizard-step-content .modal-body {
  overflow-y: auto;
  flex-grow: 1;
}

#edit-guest-form {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  overflow: hidden;
  height: calc(100% - 40px);
}

/* WhatsApp Premium Chat Bubble Mockup */
.whatsapp-premium-bubble {
  background: #0b141a; /* WhatsApp dark mode chat bubble background */
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  overflow: hidden;
  max-width: 100%;
  margin-top: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.25);
  display: flex;
  flex-direction: column;
}

.whatsapp-bubble-image-wrapper {
  width: 100%;
  max-height: 160px;
  overflow: hidden;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.whatsapp-bubble-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.whatsapp-bubble-body {
  padding: 12px 14px 6px 14px;
  font-size: 13.5px;
  line-height: 1.5;
  color: #e9edef;
  white-space: pre-line;
}

.whatsapp-bubble-footer {
  padding: 0 14px 10px 14px;
  font-size: 11px;
  color: #8696a0;
  letter-spacing: 0.3px;
}

.whatsapp-bubble-actions {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  justify-content: center;
  background: rgba(255, 255, 255, 0.02);
}

.whatsapp-bubble-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 10px 0;
  color: #53bdeb; /* WhatsApp blue link color */
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.2s ease;
}

.whatsapp-bubble-btn:hover {
  background: rgba(255, 255, 255, 0.04);
}

/* ================= PRINT STYLES FOR INVOICE ================= */
@media print {
  body * {
    visibility: hidden;
  }
  #invoice-preview-area, #invoice-preview-area * {
    visibility: visible;
  }
  #invoice-preview-area {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    box-shadow: none;
    padding: 0;
    margin: 0;
    color: #000 !important;
    background-color: #fff !important;
    font-size: 12px;
  }
  
  #invoice-preview-area th {
    background-color: #f3f4f6 !important;
    color: #000 !important;
    border-bottom: 2px solid #000 !important;
  }
  #invoice-preview-area td {
    border-bottom: 1px solid #e5e7eb !important;
  }
  .invoice-container {
    color: #000 !important;
    background-color: #fff !important;
  }
}

/* ================= CHANNEL MANAGER & REVIEWS STYLES ================= */
.status-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: var(--color-dirty);
  display: inline-block;
}
.status-dot.online {
  background-color: var(--color-vacant);
  box-shadow: 0 0 8px var(--color-vacant);
  animation: pulse-glow-green 2s infinite;
}
@keyframes pulse-glow-green {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 6px rgba(16, 185, 129, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

.review-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.review-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.review-stars {
  color: #ffb800;
  font-size: 15px;
  letter-spacing: 2px;
}
.review-source {
  font-size: 11px;
  background: rgba(255, 255, 255, 0.08);
  padding: 3px 8px;
  border-radius: 50px;
  color: #bbb;
}
.review-comment {
  font-size: 13.5px;
  line-height: 1.5;
  color: #e9edef;
  font-style: italic;
}
.review-reply-box {
  background: rgba(0, 0, 0, 0.15);
  border-left: 3px solid var(--color-primary);
  padding: 12px 15px;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-size: 13px;
  color: #bbb;
  line-height: 1.5;
}
.review-reply-box strong {
  color: var(--color-primary);
}

/* ================= RESPONSIVE VIEWPORTS AND SIDEBAR DRAWERS ================= */
@media (max-width: 1024px) {
  .sidebar {
    position: fixed;
    top: 0;
    left: -280px;
    bottom: 0;
    width: 280px;
    z-index: 1000;
    transition: left 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 10px 0 30px rgba(0, 0, 0, 0.5);
    background: rgba(14, 18, 36, 0.95) !important;
    backdrop-filter: blur(30px) !important;
    -webkit-backdrop-filter: blur(30px) !important;
  }
  .sidebar.active {
    left: 0;
  }
  .main-content {
    margin-left: 0 !important;
    width: 100% !important;
  }
  .mobile-menu-toggle {
    display: inline-flex !important;
  }
  .stat-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 15px !important;
  }
}

@media (max-width: 768px) {
  .content-header {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 12px !important;
    height: auto !important;
    padding: 15px !important;
  }
  .header-right {
    width: 100% !important;
    justify-content: flex-start !important;
    gap: 8px !important;
    flex-wrap: wrap !important;
  }
  .stat-grid {
    grid-template-columns: 1fr !important;
  }
  .form-grid {
    grid-template-columns: 1fr !important;
    gap: 12px !important;
  }
  .modal-card {
    width: 95% !important;
    max-height: 95vh !important;
    padding: 15px !important;
  }
  .modal-large {
    width: 98% !important;
  }
  .room-matrix-grid {
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr)) !important;
    gap: 10px !important;
  }
  .whatsapp-templates-workspace {
    grid-template-columns: 1fr !important;
  }
}
