/* ==========================================================================
   HOLIO DESIGN SYSTEM - Professional SaaS/CRM Dark Theme
   ========================================================================== */

/* Hide reCAPTCHA v3 badge */
.grecaptcha-badge { visibility: hidden !important; }

* {
  font-family: 'Outfit', sans-serif;
}

/* === COLOR SYSTEM === */
:root {
  --bg-base: #0b0f1a;
  --bg-surface: #111827;
  --bg-elevated: #1a2234;
  --bg-hover: #1f2b42;
  --bg-overlay: rgba(11, 15, 26, 0.96);

  --border-subtle: rgba(148, 163, 184, 0.08);
  --border-medium: rgba(148, 163, 184, 0.14);
  --border-strong: rgba(148, 163, 184, 0.22);

  --text-primary: #f1f5f9;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --text-faint: #475569;

  --accent: #f59e0b;
  --accent-light: #fbbf24;
  --accent-surface: rgba(245, 158, 11, 0.1);
  --accent-border: rgba(245, 158, 11, 0.25);
  --accent-glow: rgba(245, 158, 11, 0.06);

  --sidebar-width: 260px;
  --radius-xs: 6px;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 14px;
  --radius-xl: 18px;
}


/* === APP LAYOUT === */
.app-layout {
  background: var(--bg-base);
  color: var(--text-primary);
  min-height: 100vh;
}

.app-sidebar {
  width: var(--sidebar-width);
  background: var(--bg-surface);
  border-right: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
  height: 100vh;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 40;
  overflow-y: auto;
  overflow-x: hidden;
}

.app-sidebar::after {
  content: "";
  position: absolute;
  top: 0;
  right: -1px;
  bottom: 0;
  width: 1px;
  background: linear-gradient(to bottom, transparent 0%, rgba(245, 158, 11, 0.1) 50%, transparent 100%);
  pointer-events: none;
}

.app-content {
  margin-left: var(--sidebar-width);
  min-height: 100vh;
  position: relative;
}

.app-content::before {
  content: "";
  position: fixed;
  top: 0;
  left: var(--sidebar-width);
  right: 0;
  bottom: 0;
  background-image: radial-gradient(circle, rgba(148, 163, 184, 0.03) 1px, transparent 1px);
  background-size: 28px 28px;
  pointer-events: none;
  z-index: 0;
}

.content-wrapper {
  position: relative;
  z-index: 1;
  padding: 32px 40px;
}

/* Sidebar Header */
.sidebar-header {
  padding: 24px 20px 20px;
  border-bottom: 1px solid var(--border-subtle);
}

/* Sidebar Navigation */
.sidebar-nav {
  flex: 1;
  padding: 16px 12px;
  overflow-y: auto;
}

.sidebar-section {
  margin-bottom: 24px;
}

.sidebar-section-label {
  display: block;
  padding: 0 12px 8px;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-faint);
}

.sidebar-link {
  display: flex;
  align-items: center;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  font-weight: 500;
  font-size: 0.875rem;
  transition: all 0.15s ease;
  margin-bottom: 2px;
  position: relative;
  text-decoration: none;
}

.sidebar-link:hover {
  color: var(--text-primary);
  background: var(--bg-elevated);
}

.sidebar-link.active {
  color: var(--accent-light);
  background: var(--accent-surface);
}

.sidebar-link.active::before {
  content: '';
  position: absolute;
  left: 0;
  top: 6px;
  bottom: 6px;
  width: 3px;
  background: var(--accent);
  border-radius: 0 3px 3px 0;
}

.sidebar-icon {
  width: 20px;
  text-align: center;
  margin-right: 12px;
  font-size: 0.9375rem;
  opacity: 0.7;
}

.sidebar-link.active .sidebar-icon {
  opacity: 1;
}

/* Sidebar Footer */
.sidebar-footer {
  padding: 16px 12px;
  border-top: 1px solid var(--border-subtle);
}

.sidebar-user {
  display: flex;
  align-items: center;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  background: var(--bg-elevated);
  margin-bottom: 12px;
}

.sidebar-user-avatar {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-light) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 12px;
  flex-shrink: 0;
}

.sidebar-user-avatar i {
  color: white;
  font-size: 0.8125rem;
}

.sidebar-footer-link {
  display: flex;
  align-items: center;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  font-weight: 500;
  font-size: 0.8125rem;
  transition: all 0.15s ease;
  margin-bottom: 2px;
  text-decoration: none;
}

.sidebar-footer-link:hover {
  color: var(--text-primary);
  background: var(--bg-elevated);
}

.sidebar-footer-link.danger {
  color: #f87171;
}

.sidebar-footer-link.danger:hover {
  background: rgba(220, 38, 38, 0.1);
}

.sidebar-footer-link i {
  width: 20px;
  text-align: center;
  margin-right: 10px;
  font-size: 0.8125rem;
  opacity: 0.6;
}

.sidebar-divider {
  height: 1px;
  background: var(--border-subtle);
  margin: 8px 12px;
}

/* Mobile Sidebar */
.mobile-header {
  display: none;
  align-items: center;
  padding: 16px 20px;
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border-subtle);
  position: sticky;
  top: 0;
  z-index: 30;
}

.mobile-header-toggle {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  margin-right: 16px;
}

.sidebar-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  z-index: 35;
}


/* === BACKGROUND (legacy support) === */
.gradient-bg {
  background: var(--bg-base);
}

.gradient-text {
  background: linear-gradient(135deg, #f59e0b 0%, #fbbf24 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}


/* === SURFACES === */
.glass-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
}

.glass-nav {
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border-subtle);
}


/* === CARD SYSTEM === */
.hotel-card,
.device-card,
.room-card,
.floor-card {
  background: var(--bg-surface);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-subtle);
  transition: all 0.2s ease;
  position: relative;
  overflow: hidden;
}

.hotel-card::before,
.device-card::before,
.floor-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--accent-light));
  opacity: 0;
  transition: opacity 0.2s ease;
}

.hotel-card:hover::before,
.device-card:hover::before,
.floor-card:hover::before {
  opacity: 1;
}

.hotel-card:hover,
.device-card:hover,
.room-card:hover,
.floor-card:hover {
  border-color: var(--border-medium);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
  transform: translateY(-3px);
}


/* === STATUS INDICATORS === */
.status-connected { color: #34d399; }
.status-not_configured { color: #f87171; }
.status-connecting { color: #fbbf24; }
.status-disconnected { color: #9ca3af; }

.status-dot-connected {
  background: linear-gradient(135deg, #34d399, #059669);
  box-shadow: 0 0 8px rgba(52, 211, 153, 0.4);
  animation: pulse 2s infinite;
}

.status-dot-not_configured {
  background: linear-gradient(135deg, #f87171, #dc2626);
  box-shadow: 0 0 8px rgba(248, 113, 113, 0.4);
}

.status-dot-connecting {
  background: linear-gradient(135deg, #fbbf24, #d97706);
  box-shadow: 0 0 8px rgba(251, 191, 36, 0.4);
  animation: pulse 2s infinite;
}

.status-dot-disconnected {
  background: linear-gradient(135deg, #9ca3af, #6b7280);
  box-shadow: 0 0 8px rgba(156, 163, 175, 0.2);
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(1.1); }
}

.status-online { color: #34d399; }
.status-offline { color: #f87171; }
.status-warning { color: #fbbf24; }

.status-dot-online {
  background: linear-gradient(135deg, #34d399, #059669);
  box-shadow: 0 0 8px rgba(52, 211, 153, 0.4);
  animation: pulse 2s infinite;
}
.status-dot-offline {
  background: linear-gradient(135deg, #f87171, #dc2626);
  box-shadow: 0 0 8px rgba(248, 113, 113, 0.4);
}
.status-dot-warning {
  background: linear-gradient(135deg, #fbbf24, #d97706);
  box-shadow: 0 0 8px rgba(251, 191, 36, 0.4);
  animation: pulse 2s infinite;
}


/* === HOTEL SIDEBAR NAVIGATION (nav-item) === */
.nav-item {
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  transition: all 0.15s ease;
  cursor: pointer;
  margin-bottom: 4px;
  position: relative;
  color: var(--text-muted);
  text-decoration: none;
}

.nav-item:hover {
  background: var(--bg-elevated);
  color: var(--accent-light);
}

.nav-item.active {
  background: var(--accent-surface);
  color: var(--accent-light);
}

.nav-item.active::after {
  content: '';
  position: absolute;
  left: 0;
  top: 6px;
  bottom: 6px;
  width: 3px;
  background: var(--accent);
  border-radius: 0 3px 3px 0;
}


/* === ROOM GRID === */
.room-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 140px));
  gap: 16px;
}

.room-item {
  aspect-ratio: 1;
  border-radius: var(--radius-md);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  border: 2px solid transparent;
  position: relative;
  overflow: hidden;
  text-decoration: none;
}

.room-clean {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.1), rgba(5, 150, 105, 0.06));
  border-color: rgba(16, 185, 129, 0.3);
}

.room-inspected {
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.1), rgba(37, 99, 235, 0.06));
  border-color: rgba(59, 130, 246, 0.3);
}

.room-dirty {
  background: linear-gradient(135deg, rgba(249, 115, 22, 0.1), rgba(234, 88, 12, 0.06));
  border-color: rgba(249, 115, 22, 0.3);
}

.room-out_of_service {
  background: linear-gradient(135deg, rgba(107, 114, 128, 0.1), rgba(75, 85, 99, 0.06));
  border-color: rgba(107, 114, 128, 0.3);
  opacity: 0.75;
}

.room-out_of_order {
  background: linear-gradient(135deg, rgba(220, 38, 38, 0.1), rgba(185, 28, 28, 0.06));
  border-color: rgba(220, 38, 38, 0.3);
}

.room-freeze {
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.1), rgba(37, 99, 235, 0.06));
  border-color: rgba(59, 130, 246, 0.3);
}

.room-preheat {
  background: linear-gradient(135deg, rgba(249, 115, 22, 0.1), rgba(234, 88, 12, 0.06));
  border-color: rgba(249, 115, 22, 0.3);
}

.room-occupied {
  background: linear-gradient(135deg, rgba(220, 38, 38, 0.1), rgba(185, 28, 28, 0.06));
  border-color: rgba(220, 38, 38, 0.3);
}

.room-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
}


/* === DEVICE CONTROLS === */
.device-control {
  background: var(--bg-surface);
  border-radius: var(--radius-lg);
  padding: 24px;
  margin-bottom: 20px;
  border: 1px solid var(--border-subtle);
  transition: all 0.2s ease;
  position: relative;
  overflow: hidden;
}

.device-control::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--accent-light));
  transform: scaleX(0);
  transition: transform 0.2s ease;
}

.device-control:hover {
  border-color: var(--border-medium);
}

.device-control:hover::before {
  transform: scaleX(1);
}


/* === TEMPERATURE SLIDER === */
.temp-slider {
  -webkit-appearance: none;
  width: 100%;
  height: 6px;
  border-radius: 3px;
  background: linear-gradient(90deg, #3b82f6, #8b5cf6, #ef4444);
  outline: none;
}

.temp-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--bg-surface);
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  border: 3px solid var(--accent);
  transition: all 0.15s ease;
}

.temp-slider::-webkit-slider-thumb:hover {
  transform: scale(1.1);
  box-shadow: 0 2px 12px rgba(245, 158, 11, 0.3);
}

.temp-slider::-moz-range-thumb {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--bg-surface);
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  border: 3px solid var(--accent);
}


/* === BREADCRUMB === */
.breadcrumb {
  display: flex;
  align-items: center;
  margin-bottom: 28px;
  padding: 16px 24px;
  background: var(--bg-surface);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
}

.breadcrumb-item {
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.15s ease;
  padding: 6px 10px;
  border-radius: var(--radius-xs);
}

.breadcrumb-item:hover {
  color: var(--accent-light);
  background: var(--accent-surface);
}

.breadcrumb-item.active {
  color: var(--accent-light);
  font-weight: 600;
  background: var(--accent-surface);
}

.breadcrumb-separator {
  margin: 0 12px;
  color: var(--text-faint);
}


/* === BUTTONS === */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  border-radius: var(--radius-sm);
  padding: 10px 20px;
  transition: all 0.15s ease;
  border: none;
  cursor: pointer;
  text-decoration: none;
  line-height: 1.5;
  font-size: 0.875rem;
}

.btn-primary {
  background: var(--accent);
  color: #0a0e1a;
  padding: 10px 20px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  transition: all 0.15s ease;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  line-height: 1.5;
  font-size: 0.875rem;
}

.btn-primary:hover {
  background: var(--accent-light);
  box-shadow: 0 4px 16px rgba(245, 158, 11, 0.3);
  transform: translateY(-1px);
}

.btn-secondary {
  background: var(--bg-elevated);
  color: var(--text-secondary);
  border: 1px solid var(--border-subtle);
}

.btn-secondary:hover {
  background: var(--bg-hover);
  color: var(--text-primary);
  border-color: var(--border-medium);
}

.btn-ghost {
  background: transparent;
  color: var(--text-muted);
  border: 1px solid var(--border-subtle);
}

.btn-ghost:hover {
  background: var(--accent-surface);
  color: var(--accent-light);
  border-color: var(--accent-border);
}

.btn-danger {
  background: rgba(220, 38, 38, 0.12);
  color: #f87171;
  border: 1px solid rgba(220, 38, 38, 0.2);
}

.btn-danger:hover {
  background: rgba(220, 38, 38, 0.2);
  border-color: rgba(220, 38, 38, 0.35);
}

.btn-filter {
  background: var(--bg-elevated);
  color: var(--text-secondary);
  border: 1px solid var(--border-subtle);
}

.btn-filter:hover {
  background: var(--bg-hover);
  color: var(--text-primary);
  border-color: var(--border-medium);
}

.btn-cancel {
  background: var(--bg-elevated);
  color: var(--text-secondary);
  border: 1px solid var(--border-subtle);
}

.btn-cancel:hover {
  background: var(--bg-hover);
  color: var(--text-primary);
}

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

.btn-icon {
  padding: 10px;
  border-radius: var(--radius-sm);
  width: 40px;
  height: 40px;
}


/* === TOGGLE SWITCHES === */
.toggle-switch {
  position: relative;
  display: inline-block;
  width: 52px;
  height: 28px;
}

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

.toggle-slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: #475569;
  transition: all 0.2s ease;
  border-radius: 28px;
}

.toggle-slider:before {
  position: absolute;
  content: "";
  height: 22px;
  width: 22px;
  left: 3px;
  bottom: 3px;
  background: white;
  transition: all 0.2s ease;
  border-radius: 50%;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
}

input:checked+.toggle-slider {
  background: var(--accent);
}

input:checked+.toggle-slider:before {
  transform: translateX(24px);
}


/* === PAGE TRANSITIONS === */
.page { display: none; }
.page.active { display: block; }


/* === PAGINATION === */
.pagination .page-item.active a,
.pagination .page-item.active .page-link {
  background: var(--accent) !important;
  border-color: var(--accent) !important;
  color: white !important;
}

.pagination .page-item a,
.pagination .page-item span,
.pagination .page-item .page-link {
  background: var(--bg-surface) !important;
  border-color: var(--border-subtle) !important;
  color: var(--text-secondary) !important;
  transition: all 0.15s ease;
}

.pagination .page-item a:hover,
.pagination .page-item .page-link:hover {
  background: var(--bg-elevated) !important;
  color: var(--text-primary) !important;
  border-color: var(--border-medium) !important;
}

.pagination .page-item.disabled span,
.pagination .page-item.disabled .page-link {
  background: var(--bg-surface) !important;
  color: var(--text-faint) !important;
  border-color: var(--border-subtle) !important;
  opacity: 0.5;
}

/* Bootstrap override */
.page-link {
  background-color: var(--bg-surface) !important;
  border-color: var(--border-subtle) !important;
  color: var(--text-secondary) !important;
}

.page-link:hover {
  background-color: var(--bg-elevated) !important;
  border-color: var(--border-medium) !important;
  color: var(--text-primary) !important;
}

.page-link:focus {
  box-shadow: 0 0 0 2px var(--accent-surface) !important;
}

.page-item.active .page-link {
  background: var(--accent) !important;
  border-color: var(--accent) !important;
  color: white !important;
}

.page-item.disabled .page-link {
  background-color: var(--bg-surface) !important;
  border-color: var(--border-subtle) !important;
  color: var(--text-faint) !important;
  opacity: 0.5;
}


/* === SELECT2 DARK THEME === */
.select2.select2-container.select2-container--default .select2-selection__arrow {
  top: 12px;
}

.select2-container--default .select2-selection--single {
  height: auto !important;
  padding: 12px 16px !important;
  border: 1px solid var(--border-medium) !important;
  border-radius: var(--radius-md) !important;
  background-color: var(--bg-elevated) !important;
  font-weight: 500 !important;
  color: var(--text-primary) !important;
  transition: all 0.15s ease !important;
  display: flex !important;
  align-items: center !important;
}

.select2-selection__arrow { top: 12px; }

.select2-selection__rendered {
  padding-left: 0 !important;
  padding-right: 0 !important;
  color: var(--text-primary) !important;
}

.select2-container--default.select2-container--focus .select2-selection--single {
  border-color: var(--accent) !important;
  outline: none !important;
  box-shadow: 0 0 0 2px var(--accent-surface) !important;
}

.select2-dropdown {
  border-radius: var(--radius-md) !important;
  border: 1px solid var(--border-medium) !important;
  background-color: var(--bg-surface) !important;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.4) !important;
}

.select2-container--default .select2-results__option {
  color: var(--text-primary) !important;
  padding: 8px 12px !important;
  transition: background-color 0.1s ease !important;
}

.select2-container--default .select2-results__option--highlighted,
.select2-container--default .select2-results__option--highlighted[aria-selected],
.select2-container--default .select2-results__option--highlighted.select2-results__option--selectable {
  background-color: var(--accent-surface) !important;
  color: var(--accent) !important;
}

.select2-container--default .select2-results__option--selected,
.select2-container--default .select2-results__option[aria-selected=true] {
  background-color: rgba(245, 158, 11, 0.15) !important;
  color: var(--accent) !important;
}

.select2-container--default .select2-results__option--selected.select2-results__option--highlighted,
.select2-container--default .select2-results__option[aria-selected=true].select2-results__option--highlighted {
  background-color: var(--accent-surface) !important;
  color: var(--accent) !important;
}

.select2-container--default .select2-search--dropdown .select2-search__field {
  background-color: var(--bg-elevated) !important;
  border-color: var(--border-medium) !important;
  color: var(--text-primary) !important;
  border-radius: var(--radius-xs) !important;
}


/* === FORM INPUTS === */
input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
input[type="tel"],
input[type="url"],
input[type="search"],
textarea,
select:not(.select2) {
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
  color-scheme: dark;
}

input:focus,
textarea:focus,
select:focus {
  box-shadow: 0 0 0 2px var(--accent-surface);
}

input:disabled,
textarea:disabled,
select:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Prevent browser autofill from overriding dark theme */
input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
textarea:-webkit-autofill,
textarea:-webkit-autofill:hover,
textarea:-webkit-autofill:focus,
select:-webkit-autofill,
select:-webkit-autofill:hover,
select:-webkit-autofill:focus {
  -webkit-text-fill-color: var(--text-primary) !important;
  -webkit-box-shadow: 0 0 0 1000px var(--bg-elevated) inset !important;
  box-shadow: 0 0 0 1000px var(--bg-elevated) inset !important;
  border-color: var(--border-medium) !important;
  transition: background-color 5000s ease-in-out 0s;
}


/* === TABLES === */
table {
  border-collapse: separate;
  border-spacing: 0;
}

table thead th {
  text-transform: uppercase;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--text-muted);
}

table tbody tr {
  transition: background-color 0.1s ease;
}

table tbody tr:hover {
  background: rgba(245, 158, 11, 0.03);
}


/* === EMPTY STATES === */
.empty-state-animation {
  animation: fadeInUp 0.4s ease-out;
}

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

.icon-bounce {
  animation: iconBounce 2.5s ease-in-out infinite;
}

@keyframes iconBounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}


/* === RESPONSIVE === */
@media (max-width: 1023px) {
  .app-sidebar {
    transform: translateX(-100%);
    transition: transform 0.25s ease;
  }

  .app-sidebar.open {
    transform: translateX(0);
  }

  .app-content {
    margin-left: 0;
  }

  .app-content::before {
    left: 0;
  }

  .content-wrapper {
    padding: 20px 16px;
  }

  .mobile-header {
    display: flex;
  }

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

  .room-grid {
    grid-template-columns: repeat(auto-fit, minmax(120px, 120px));
    gap: 12px;
  }

  .breadcrumb {
    padding: 12px 16px;
    margin-bottom: 20px;
  }

  .btn {
    padding: 9px 16px;
    font-size: 0.8125rem;
  }
}

@media (min-width: 1024px) {
  .mobile-header {
    display: none !important;
  }
}


/* === SCROLLBAR === */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: var(--bg-elevated);
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: #475569;
}


/* === FOCUS RING === */
*:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}


/* === SELECTION === */
::selection {
  background: rgba(245, 158, 11, 0.3);
  color: var(--text-primary);
}


/* === DATE/TIME INPUT DARK MODE === */
input[type="date"],
input[type="time"],
input[type="datetime-local"],
input[type="month"],
input[type="week"] {
  color-scheme: dark;
}


/* === CHECKBOX === */
input[type="checkbox"] {
  accent-color: var(--accent);
}


/* === LINK OVERRIDES (Bootstrap reset) === */
a {
  color: inherit;
  text-decoration: none;
  transition: color 0.15s ease;
}

a:hover {
  color: var(--accent-light);
  text-decoration: none;
}


/* === UTILITY CLASSES === */
.card-hover {
  transition: all 0.2s ease;
}

.card-hover:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.device-online {
  animation: pulse 2s infinite;
}
/*
 * This is a manifest file that'll be compiled into application.css, which will include all the files
 * listed below.
 *
 * Any CSS (and SCSS, if configured) file within this directory, lib/assets/stylesheets, or any plugin's
 * vendor/assets/stylesheets directory can be referenced here using a relative path.
 *
 * You're free to add application-wide styles to this file and they'll appear at the bottom of the
 * compiled file so the styles you add here take precedence over styles defined in any other CSS
 * files in this directory. Styles in this file should be added after the last require_* statement.
 * It is generally better to create a new file per style scope.
 *


 */
