/* Shell do painel: login + sidebar + layout SPA (sobrescreve o body dos protótipos) */
body {
  padding: 0;
  display: flex;
  min-height: 100vh;
  overflow: hidden;
}

/* ---- Login ---- */
.login-screen {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-body);
  z-index: 100;
}
.login-card {
  width: 100%;
  max-width: 380px;
  background: var(--surface-card);
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  padding: 32px;
  backdrop-filter: blur(14px);
}
.login-title {
  font-family: var(--font-mono);
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 6px;
}
.login-sub {
  color: var(--text-muted);
  font-size: 13px;
  margin-bottom: 24px;
}
.login-error {
  display: none;
  color: var(--status-late-text);
  font-size: 13px;
  margin-bottom: 12px;
}

/* ---- Sidebar ---- */
.app-shell {
  display: flex;
  width: 100%;
  min-height: 100vh;
}
.sidebar {
  width: 232px;
  flex-shrink: 0;
  background: rgba(12, 13, 17, 0.7);
  border-right: 1px solid var(--border-subtle);
  padding: 20px 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.sidebar-logo {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 15px;
  padding: 8px 12px 18px;
  letter-spacing: -0.3px;
}
.sidebar-logo span { color: var(--accent); }
.nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 8px;
  color: var(--text-muted);
  font-size: 13.5px;
  font-family: var(--font-mono);
  background: transparent;
  border: none;
  cursor: pointer;
  text-align: left;
  transition: background 0.15s, color 0.15s;
}
.nav-item:hover { background: var(--surface-hover); color: var(--text-main); }
.nav-item.active { background: rgba(88, 166, 255, 0.12); color: var(--accent); }
.nav-item svg { width: 17px; height: 17px; flex-shrink: 0; }
.nav-spacer { flex: 1; }
.nav-logout {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 8px;
  color: var(--status-late-text);
  font-size: 13.5px;
  font-family: var(--font-mono);
  background: transparent;
  border: none;
  cursor: pointer;
  text-align: left;
}
.nav-logout:hover { background: rgba(248, 81, 73, 0.1); }
.nav-logout svg { width: 17px; height: 17px; }

/* ---- Main ---- */
.main {
  flex: 1;
  overflow-y: auto;
  padding: 32px;
}
.container { max-width: 1160px; }

/* form / modal helpers (complementam planos.css) */
.form-hint { color: var(--text-dim); font-size: 12px; margin-top: 4px; }
.text-right { text-align: right; }
.muted { color: var(--text-muted); }
.mt-16 { margin-top: 16px; }
.row-between { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
