/* ==========================================================================
   Nestor — layout.css
   Estrutura do shell logado: header fixo, sidebar, main, bottom-nav mobile
   ========================================================================== */

/* Login (tela pública) */
.ns-login-wrapper {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--color-bg);
  padding: 1.5rem;
}

.ns-login-card {
  width: 100%;
  max-width: 400px;
  background-color: var(--color-surface);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  padding: 2.5rem 2rem;
}

.ns-login-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.75rem;
  text-align: center;
}

.ns-login-brand-icon {
  width: 64px;
  height: 64px;
  border-radius: 15px;
  background-color: var(--color-primary-light);
  color: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
}

.ns-login-brand-name {
  font-size: 22px;
  font-weight: 700;
  color: var(--color-primary);
}

.ns-login-brand-slogan {
  font-size: 13px;
  color: var(--color-text-muted);
}

/* Shell logado */
#ns-app-shell {
  min-height: 100vh;
  background-color: var(--color-bg);
}

#top-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-height);
  background-color: var(--color-surface);
  border-bottom: 1px solid var(--color-border);
  z-index: 1030;
  display: flex;
  align-items: center;
}

#ns-sidebar {
  position: fixed;
  top: var(--header-height);
  left: 0;
  bottom: 0;
  width: var(--sidebar-width);
  background-color: var(--color-surface);
  border-right: 1px solid var(--color-border);
  overflow-y: auto;
  z-index: 1020;
}

#page-content {
  margin-left: var(--sidebar-width);
  padding-top: var(--header-height);
  min-height: 100vh;
  padding-left: 1.75rem;
  padding-right: 1.75rem;
  padding-bottom: 2rem;
}

#ns-bottom-nav {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: var(--bottom-nav-height);
  background-color: var(--color-surface);
  border-top: 1px solid var(--color-border);
  z-index: 1030;
}

/* Mobile: sidebar sai, bottom-nav entra */
@media (max-width: 767.98px) {
  #ns-sidebar {
    display: none;
  }

  #page-content {
    margin-left: 0;
    padding-left: 1rem;
    padding-right: 1rem;
    padding-bottom: calc(var(--bottom-nav-height) + 1.5rem);
  }

  #ns-bottom-nav {
    display: flex;
  }
}


.ns-header-brand-name {
  font-size: 2rem;
  font-weight: 700;
}

.sr-prefix {
  font-size: 1rem;
  font-weight: 400;
  color: #6c757d;
  vertical-align: super;
}