/* House Monitor — Custom Styles */

/* Auth page centering */
.authentication-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 1.5rem;
}

.authentication-inner {
  width: 100%;
  max-width: 420px;
}

/* Stat cards */
.card .avatar-initial {
  font-size: 1.25rem;
}

/* Table improvements */
.table th {
  white-space: nowrap;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.table td {
  vertical-align: middle;
  font-size: 0.875rem;
}

/* Badge spacing */
.badge + .badge {
  margin-left: 2px;
}

/* Refresh countdown */
#refresh-status {
  font-size: 0.8rem;
}

/* Windoor state grid */
.windoor-channel {
  min-width: 80px;
}

/* Output state badges */
#output-state .badge,
#windoor-state .badge {
  font-size: 0.75rem;
}

/* Chart card */
#tempChart,
#bellChart,
#powerChart,
#bootChart {
  min-height: 280px;
}

/* Scrollable tables */
.table-responsive {
  max-height: 600px;
  overflow-y: auto;
}

/* Sticky table header */
.table-responsive thead th {
  position: sticky;
  top: 0;
  z-index: 1;
}

/* Login card shadow */
.authentication-inner .card {
  box-shadow: 0 4px 24px rgba(0,0,0,0.12);
}

/* Active menu item highlight */
.menu-item.active > .menu-link {
  background-color: rgba(105, 108, 255, 0.16) !important;
}

/* Last events cards equal height */
#last-events-container .card {
  transition: box-shadow 0.2s;
}

#last-events-container .card:hover {
  box-shadow: 0 4px 20px rgba(0,0,0,0.12);
}

/* Hide the blue circle close button inside the sidebar on mobile — hamburger is the only toggle */
@media (max-width: 1199.98px) {
  .menu .app-brand .layout-menu-toggle {
    display: none !important;
  }
}
