/* Estructura: barra lateral, encabezado y área de contenido. */



/* ---------- Shell: sidebar + main ---------- */
.shell { display: flex; min-height: 100vh; }



.sidebar {
  width: 230px; background: var(--bg-panel); border-right: 1px solid var(--border);
  display: flex; flex-direction: column; flex-shrink: 0;
}


.sidebar-brand { padding: 1.25rem 1.2rem; border-bottom: 1px solid var(--border); }


.sidebar-brand .name { font-weight: 800; font-size: 1.05rem; }


.sidebar-brand .name span { background: var(--gradient); -webkit-background-clip: text; background-clip: text; color: transparent; }


.sidebar-brand .sub { font-size: 0.72rem; color: var(--text-muted); margin-top: 0.15rem; }



.nav-group { padding: 0.75rem 0.6rem; flex: 1; overflow-y: auto; }


.nav-item {
  display: flex; align-items: center; gap: 0.65rem; padding: 0.6rem 0.75rem; border-radius: 8px;
  color: var(--text-muted); font-size: 0.86rem; font-weight: 500; cursor: pointer; margin-bottom: 0.15rem;
  transition: background 0.12s, color 0.12s; user-select: none;
}


.nav-item:hover { background: var(--bg-hover); color: var(--text); }


.nav-item.active { background: var(--bg-hover); color: white; box-shadow: inset 3px 0 0 var(--purple); }


.nav-item .ico { width: 18px; text-align: center; font-size: 1rem; flex-shrink: 0; }



.sidebar-footer { padding: 0.9rem 1.2rem; border-top: 1px solid var(--border); font-size: 0.78rem; }


.sidebar-footer .who { color: var(--text); font-weight: 600; margin-bottom: 0.3rem; }


.sidebar-footer .logout { color: #fca5a5; cursor: pointer; }


.sidebar-footer .logout:hover { text-decoration: underline; }



.main { flex: 1; min-width: 0; display: flex; flex-direction: column; }


.topbar {
  height: 62px; border-bottom: 1px solid var(--border); display: flex; align-items: center;
  justify-content: space-between; padding: 0 1.75rem; flex-shrink: 0;
}


.topbar h1 { font-size: 1.05rem; font-weight: 700; margin: 0; }


.topbar .ctx { font-size: 0.78rem; color: var(--text-muted); }



.content { padding: 1.75rem; flex: 1; overflow-y: auto; }
