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

:root {
  --primary-hsl: 224, 76%, 48%; /* Indigo/Blue */
  --bg-hsl: 210, 40%, 98%;
  --card-bg-hsl: 0, 0%, 100%;
  --text-main-hsl: 224, 47%, 12%; /* Slate 900 */
  --text-muted-hsl: 220, 9%, 46%; /* Slate 500 */
  --border-hsl: 220, 13%, 91%;
  
  --primary: hsl(var(--primary-hsl));
  --bg: hsl(var(--bg-hsl));
  --card-bg: hsl(var(--card-bg-hsl));
  --text-main: hsl(var(--text-main-hsl));
  --text-muted: hsl(var(--text-muted-hsl));
  --border: hsl(var(--border-hsl));
  
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.08), 0 2px 4px -2px rgba(0, 0, 0, 0.04);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.06), 0 4px 6px -4px rgba(0, 0, 0, 0.04);
}

body {
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background-color: var(--bg);
  color: var(--text-main);
  -webkit-font-smoothing: antialiased;
}

/* Custom Glassmorphism Navbar */
.navbar-custom {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.navbar-custom .navbar-brand {
  font-weight: 700;
  color: var(--text-main);
  background: linear-gradient(135deg, hsl(224, 76%, 48%), hsl(250, 76%, 55%));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.navbar-custom .nav-link {
  color: var(--text-muted) !important;
  font-weight: 500;
}

.navbar-custom .nav-link.active, .navbar-custom .nav-link:hover {
  color: var(--primary) !important;
  font-weight: 600;
}

/* Premium Card Layout */
.card-custom {
  background: rgba(255, 255, 255, 0.85) !important;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid var(--border) !important;
  border-radius: 14px;
  box-shadow: var(--shadow-sm);
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.card-custom:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: rgba(var(--primary-hsl), 0.3) !important;
}

/* Custom tables */
.table-custom {
  margin-bottom: 0;
  background: transparent;
}

.table-custom th {
  font-weight: 600;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border);
  padding: 14px 16px;
}

.table-custom td {
  padding: 14px 16px;
  vertical-align: middle;
  border-bottom: 1px solid var(--border);
  color: var(--text-main);
}

.table-custom tbody tr {
  transition: background-color 0.2s;
}

.table-custom tbody tr:hover {
  background-color: rgba(var(--primary-hsl), 0.02) !important;
}

/* Interactive elements */
.btn-primary-custom {
  background: linear-gradient(135deg, hsl(224, 76%, 48%), hsl(240, 76%, 52%));
  border: none;
  border-radius: 8px;
  color: #fff !important;
  font-weight: 600;
  padding: 8px 18px;
  transition: all 0.2s;
}

.btn-primary-custom:hover {
  filter: brightness(1.08);
  box-shadow: 0 4px 12px rgba(var(--primary-hsl), 0.25);
}

.btn-primary-custom:active {
  transform: scale(0.97);
}

/* Offline Badge */
#offline-badge {
  background-color: rgba(220, 53, 69, 0.1);
  color: #dc3545;
  border: 1px solid rgba(220, 53, 69, 0.2);
  padding: 6px 12px;
  border-radius: 20px;
  font-weight: 600;
  animation: pulse 1.5s infinite;
}

@keyframes pulse {
  0% { opacity: 0.8; }
  50% { opacity: 1; }
  100% { opacity: 0.8; }
}

/* Room & Bed Matrix Component Styles */
.room-card {
  background: rgba(255, 255, 255, 0.95) !important;
  border-radius: 14px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  transition: all 0.25s ease;
}

.room-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: rgba(37, 99, 235, 0.3);
}

.room-type-badge {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 4px 10px;
  border-radius: 20px;
}

.badge-vip { background: rgba(245, 158, 11, 0.15); color: #d97706; border: 1px solid rgba(245, 158, 11, 0.3); }
.badge-suite { background: rgba(139, 92, 246, 0.15); color: #7c3aed; border: 1px solid rgba(139, 92, 246, 0.3); }
.badge-single { background: rgba(59, 130, 246, 0.15); color: #2563eb; border: 1px solid rgba(59, 130, 246, 0.3); }
.badge-double { background: rgba(16, 185, 129, 0.15); color: #059669; border: 1px solid rgba(16, 185, 129, 0.3); }

.bed-item {
  border-radius: 10px;
  padding: 12px 14px;
  margin-top: 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  transition: all 0.2s;
  border: 1px dashed var(--border);
}

.bed-item:hover {
  transform: scale(1.02);
  box-shadow: var(--shadow-sm);
}

.bed-available {
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.3);
  color: #047857;
}

.bed-occupied {
  background: rgba(239, 68, 68, 0.08);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: #b91c1c;
}

.bed-reserved {
  background: rgba(245, 158, 11, 0.08);
  border: 1px solid rgba(245, 158, 11, 0.3);
  color: #b45309;
}

.bed-cleaning {
  background: rgba(99, 102, 241, 0.08);
  border: 1px solid rgba(99, 102, 241, 0.3);
  color: #4338ca;
}

.bed-reserved-pending {
  background: rgba(245, 158, 11, 0.08);
  border: 1px solid rgba(245, 158, 11, 0.3);
  color: #b45309;
}

.bed-reserved-paid {
  background: rgba(52, 211, 153, 0.08);
  border: 1px solid rgba(52, 211, 153, 0.4);
  color: #065f46;
}

.bed-pending-checkout {
  background: rgba(249, 115, 22, 0.08);
  border: 1px solid rgba(249, 115, 22, 0.3);
  color: #c2410c;
}

.filter-pill {
  border-radius: 20px;
  padding: 6px 16px;
  font-size: 0.85rem;
  font-weight: 600;
  border: 1px solid var(--border);
  background: #fff;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.2s;
  margin-right: 8px;
}

.filter-pill.active, .filter-pill:hover {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}
