/* Softpop IoT Hub — identidade sobre AdminLTE 4 */
:root {
  --sp-brand: #0e7c86;
  --sp-brand-dark: #0a5c64;
  --sp-accent: #1f8a95;
  --sp-sidebar: #0f1c2e;
  --sp-warn: #9a6700;
  --sp-ok: #0f7a45;
  --sp-font: "Segoe UI", "IBM Plex Sans", system-ui, sans-serif;
  --sp-mono: "Cascadia Mono", "Consolas", monospace;
}

html, body {
  font-family: var(--sp-font);
}

.sp-brand-mark {
  width: 2rem;
  height: 2rem;
  border-radius: 0.55rem;
  background: linear-gradient(145deg, var(--sp-brand), var(--sp-brand-dark));
  color: #fff;
  display: inline-grid;
  place-items: center;
  font-weight: 700;
  font-size: 0.95rem;
}

.sidebar-brand .brand-link {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
}

.sp-brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.sp-brand-text strong {
  font-size: 0.95rem;
  color: var(--bs-body-color);
}

.sp-brand-text span {
  font-size: 0.75rem;
  opacity: 0.75;
}

.app-sidebar {
  --lte-sidebar-bg: var(--sp-sidebar);
}

[data-bs-theme="light"] .app-sidebar {
  --lte-sidebar-bg: #102033;
}

.nav-sidebar .nav-header {
  font-size: 0.7rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  opacity: 0.7;
  margin-top: 0.75rem;
}

.sp-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  border-radius: 999px;
  padding: 0.2rem 0.65rem;
  font-size: 0.78rem;
  font-weight: 600;
}

.sp-status-pill .dot {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: currentColor;
}

.sp-status-ok { color: var(--sp-ok); background: rgba(15, 122, 69, 0.12); }
.sp-status-warn { color: var(--sp-warn); background: rgba(154, 103, 0, 0.14); }
.sp-status-error { color: #b42318; background: rgba(180, 35, 24, 0.12); }
.sp-status-muted { color: #5d6b7c; background: rgba(93, 107, 124, 0.12); }

.sp-stat-value {
  font-size: 1.75rem;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.sp-mono { font-family: var(--sp-mono); font-size: 0.85rem; }

.sp-empty {
  text-align: center;
  padding: 2.5rem 1rem;
  color: var(--bs-secondary-color);
}

.sp-empty h3 {
  color: var(--bs-body-color);
  font-size: 1.1rem;
}

.auth-wrapper {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 1.5rem;
  background:
    radial-gradient(circle at top left, rgba(14, 124, 134, 0.22), transparent 42%),
    linear-gradient(160deg, #0f1c2e 0%, #153049 50%, #0e7c86 140%);
}

.auth-card {
  width: min(420px, 100%);
  border: 0;
  border-radius: 1rem;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.28);
}

.auth-card .card-body { padding: 1.75rem; }

.auth-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 1rem;
  font-size: 0.82rem;
  color: var(--bs-secondary-color);
}

.btn-sp-primary {
  --bs-btn-bg: var(--sp-brand);
  --bs-btn-border-color: var(--sp-brand);
  --bs-btn-hover-bg: var(--sp-brand-dark);
  --bs-btn-hover-border-color: var(--sp-brand-dark);
  --bs-btn-color: #fff;
  --bs-btn-hover-color: #fff;
}

.user-chip {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
  text-align: end;
}

.user-chip small { opacity: 0.7; }

.badge-unavailable {
  font-weight: 600;
}
