/* ── Layout ─────────────────────────────────────────────────── */

.app-shell {
  display: flex;
  min-height: 100vh;
}

.sidebar {
  width: 228px;
  background: var(--surface);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  position: fixed;
  top: 0; left: 0; bottom: 0;
  overflow: hidden;
  z-index: 10;
}
.sidebar-scroll {
  flex: 1;
  overflow-y: auto;
  padding: 1.25rem 0 0.5rem;
  min-height: 0;
}

.main-content {
  margin-left: 228px;
  flex: 1;
  padding: 2rem 2.5rem;
  min-width: 0;
  width: calc(100vw - 228px);
  box-sizing: border-box;
}

/* Staggered entry animation for main content */
.main-content > * {
  animation: contentEnter 0.38s cubic-bezier(0.16, 1, 0.3, 1) both;
}
.main-content > *:nth-child(1) { animation-delay: 0.02s; }
.main-content > *:nth-child(2) { animation-delay: 0.07s; }
.main-content > *:nth-child(3) { animation-delay: 0.12s; }
.main-content > *:nth-child(4) { animation-delay: 0.17s; }
.main-content > *:nth-child(5) { animation-delay: 0.22s; }
.main-content > *:nth-child(6) { animation-delay: 0.27s; }

.page-header { margin-bottom: 1.75rem; }
.page-header h1 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text);
}
.page-header p {
  color: var(--text-muted);
  margin-top: 0.25rem;
  font-size: 0.9rem;
}

/* ── Sidebar nav ─────────────────────────────────────────────── */

.sidebar-logo {
  padding: 0 1.25rem 1.25rem;
  border-bottom: 1px solid var(--border);
  margin-bottom: 0.5rem;
}
.sidebar-logo a {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--text);
  display: flex; align-items: center; gap: 0.4rem;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, sans-serif;
  font-weight: 800;
  letter-spacing: -0.025em;
  white-space: nowrap;
}
/* Solo colorea el span del nombre, no los badges */
.sidebar-logo a > span:first-of-type { color: var(--brand); }

.nav-section { padding: 0.5rem 0; }
.nav-section-label {
  font-size: 0.68rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: var(--text-muted);
  padding: 0 1.25rem;
  margin-bottom: 0.3rem;
  opacity: 0.65;
}

.nav-item {
  display: flex; align-items: center; gap: 0.65rem;
  padding: 0.5rem 1.25rem;
  color: var(--text-muted);
  font-size: 0.875rem;
  font-weight: 500;
  transition: background 0.15s, color 0.15s;
  text-decoration: none;
  position: relative;
}
.nav-item:hover {
  background: var(--surface-2);
  color: var(--text);
  text-decoration: none;
}
.nav-item.active {
  background: var(--brand-10);
  color: var(--brand);
  font-weight: 600;
}
.nav-item.active::before {
  content: '';
  position: absolute;
  left: 0;
  top: 6px; bottom: 6px;
  width: 3px;
  background: var(--brand);
  border-radius: 0 3px 3px 0;
}
.nav-item svg { width: 16px; height: 16px; flex-shrink: 0; }
.nav-item.active svg { color: var(--brand); }

.sidebar-footer {
  flex-shrink: 0;
  padding: 0.875rem 1.25rem;
  border-top: 1px solid var(--border);
  background: var(--surface);
}
.user-info {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}

