/* EllTek Spatial VisionOS Glassmorphism Theme (Crystal Clean & Premium) */
[x-cloak] { display: none !important; }

:root {
  --app-bg-image: url('https://images.unsplash.com/photo-1600585154340-be6161a56a0c?auto=format&fit=crop&w=1920&q=80');
  --spatial-bg: rgba(22, 24, 34, 0.75);
  --spatial-card: rgba(30, 33, 46, 0.65);
  --spatial-card-sub: rgba(40, 44, 60, 0.55);
  --spatial-border: rgba(255, 255, 255, 0.12);
  --spatial-border-glow: rgba(255, 255, 255, 0.28);
  --amber-glow: rgba(245, 158, 11, 0.25);
  --emerald-glow: rgba(16, 185, 129, 0.25);
}

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background-color: #090a0f;
  color: #f3f4f6;
  margin: 0;
  padding: 0;
  min-height: 100vh;
  letter-spacing: -0.01em;
}

/* Background Wallpaper Canvas */
.wallpaper-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-image: var(--app-bg-image);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  z-index: -2;
  transition: background-image 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.wallpaper-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: radial-gradient(circle at 50% 35%, rgba(12, 14, 24, 0.4) 0%, rgba(5, 6, 12, 0.88) 100%);
  backdrop-filter: brightness(0.9) contrast(1.05);
  z-index: -1;
  pointer-events: none;
}

/* Outer Master Spatial Stage Frame (Crystal Clean Glass Cover) */
.spatial-stage-frame {
  background: var(--spatial-bg);
  backdrop-filter: blur(36px) saturate(190%);
  -webkit-backdrop-filter: blur(36px) saturate(190%);
  border: 1px solid var(--spatial-border);
  border-radius: 32px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6), 
              inset 0 1px 0 rgba(255, 255, 255, 0.16);
  padding: 28px;
  transition: all 0.3s ease;
}

/* Inner Glass Cards */
.spatial-card {
  background: var(--spatial-card);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 22px;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.12);
  transition: all 0.25s ease;
}

.spatial-card:hover {
  border-color: rgba(255, 255, 255, 0.22);
}

.spatial-card-sub {
  background: var(--spatial-card-sub);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  transition: all 0.2s ease;
}

.spatial-card-sub:hover {
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-1px);
}

/* Navigation Docks */
.spatial-pill-dock {
  background: rgba(30, 33, 48, 0.85);
  backdrop-filter: blur(32px) saturate(190%);
  -webkit-backdrop-filter: blur(32px) saturate(190%);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 9999px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.15);
  padding: 4px 6px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.spatial-pill-btn {
  border-radius: 9999px;
  padding: 6px 14px;
  font-size: 0.8rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.75);
  background: transparent;
  border: 1px solid transparent;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  white-space: nowrap;
}

.spatial-pill-btn:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.12);
}

.spatial-pill-btn.active {
  background: #ffffff;
  color: #0f172a;
  font-weight: 600;
  box-shadow: 0 4px 15px rgba(255, 255, 255, 0.3);
}

/* Custom Glass Search & Input Controls */
.glass-input {
  background: rgba(18, 20, 30, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 14px;
  color: #ffffff;
  padding: 9px 15px;
  font-size: 0.85rem;
  outline: none;
  transition: all 0.2s ease;
  width: 100%;
}

.glass-input:focus {
  border-color: rgba(245, 158, 11, 0.6);
  box-shadow: 0 0 18px rgba(245, 158, 11, 0.25);
  background: rgba(22, 26, 40, 0.9);
}

/* HIGH-CONTRAST ROOM STATUS BADGES */
.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 12px;
  border-radius: 9999px;
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.status-occupied {
  background: rgba(239, 68, 68, 0.25);
  color: #fca5a5;
  border: 1px solid rgba(239, 68, 68, 0.5);
  box-shadow: 0 0 12px rgba(239, 68, 68, 0.25);
}

.status-vacant {
  background: rgba(16, 185, 129, 0.25);
  color: #6ee7b7;
  border: 1px solid rgba(16, 185, 129, 0.5);
  box-shadow: 0 0 12px rgba(16, 185, 129, 0.25);
}

.status-dirty {
  background: rgba(245, 158, 11, 0.25);
  color: #fde047;
  border: 1px solid rgba(245, 158, 11, 0.5);
  box-shadow: 0 0 12px rgba(245, 158, 11, 0.25);
}

.status-clean {
  background: rgba(59, 130, 246, 0.25);
  color: #93c5fd;
  border: 1px solid rgba(59, 130, 246, 0.5);
  box-shadow: 0 0 12px rgba(59, 130, 246, 0.25);
}

.status-inspected {
  background: rgba(168, 85, 247, 0.25);
  color: #e9d5ff;
  border: 1px solid rgba(168, 85, 247, 0.5);
  box-shadow: 0 0 12px rgba(168, 85, 247, 0.25);
}

.status-ooo {
  background: rgba(107, 114, 128, 0.35);
  color: #e5e7eb;
  border: 1px solid rgba(107, 114, 128, 0.5);
}

/* Switch Toggle Slider */
.glass-switch {
  position: relative;
  display: inline-block;
  width: 42px;
  height: 22px;
}

.glass-switch input { opacity: 0; width: 0; height: 0; }

.glass-switch .slider {
  position: absolute;
  cursor: pointer;
  top: 0; left: 0; right: 0; bottom: 0;
  background-color: rgba(255, 255, 255, 0.18);
  transition: .3s;
  border-radius: 9999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.glass-switch .slider:before {
  position: absolute;
  content: "";
  height: 16px;
  width: 16px;
  left: 2px;
  bottom: 2px;
  background-color: white;
  transition: .3s;
  border-radius: 50%;
}

.glass-switch input:checked + .slider {
  background-color: #f59e0b;
  border-color: rgba(245, 158, 11, 0.6);
}

.glass-switch input:checked + .slider:before {
  transform: translateX(20px);
}

/* Glass Pagination Links */
.glass-pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.8rem;
  color: #94a3b8;
}

.glass-pagination a, .glass-pagination span.page-btn {
  padding: 5px 12px;
  border-radius: 9999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.05);
  color: #ffffff;
  transition: all 0.2s ease;
}

.glass-pagination a:hover {
  background: rgba(255, 255, 255, 0.18);
  border-color: rgba(255, 255, 255, 0.25);
}

.glass-pagination .active-page {
  background: #ffffff;
  color: #0f172a;
  font-weight: 700;
}
