/* Nonare — estilos do shell. Cores de marca em variaveis para o tema seguir data-bs-theme. */

:root {
  --nn-brand: #1f7a68;
  --nn-brand-soft: #e6f2ef;
}

html {
  font-size: 14px;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

/* Indicador padrao do htmx. */
.htmx-indicator {
  opacity: 0;
  transition: opacity 150ms ease-in;
}
.htmx-request .htmx-indicator,
.htmx-request.htmx-indicator {
  opacity: 1;
}

/* ---- Overlay de carregamento global (data-loading) ---- */
.nn-loading-overlay {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(10, 25, 22, 0.45);
  backdrop-filter: blur(1px);
}
.nn-loading-overlay.show {
  display: flex;
}
.nn-loading-panel {
  min-width: 220px;
  padding: 1.5rem 2rem;
  background: var(--bs-body-bg);
  color: var(--bs-body-color);
  border-radius: 0.75rem;
  box-shadow: 0 0.75rem 2rem rgba(0, 0, 0, 0.25);
}
.nn-loading-message {
  font-weight: 500;
}

/* ---- Shell ---- */
.app-sidebar .brand-text {
  letter-spacing: 0.02em;
}
.nn-brand-icon {
  color: var(--nn-brand-soft);
}

/* ---- Cards de indicador do dashboard ---- */
.stat-card .stat-icon {
  width: 54px;
  height: 54px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.55rem;
}
.stat-value {
  font-size: 1.9rem;
  font-weight: 700;
  line-height: 1.1;
}
.stat-label {
  color: var(--bs-secondary-color);
  font-size: 0.85rem;
}
.dash-chart-host {
  position: relative;
  height: 280px;
}

/* ---- Placeholder de modulo em construcao ---- */
.nn-construcao {
  max-width: 640px;
  margin: 3rem auto;
  text-align: center;
}
.nn-construcao .bi {
  font-size: 3.5rem;
  color: var(--nn-brand);
}
