/*
 * Entrada suave de la app después de iniciar sesión (22-nov-2026). js/auth-portal.js pone la clase .app-enter en #appShell mientras
 * se abre el portal y la quita a los pocos segundos: la barra lateral entra desde la izquierda y la barra de arriba y el contenido
 * suben un poco, uno tras otro. Solo anima la ENTRADA (animation-fill-mode: backwards): al terminar no queda ninguna transformación
 * puesta, así que no afecta a menús ni a elementos fijos. No se repite al cambiar de pantalla porque depende de la clase.
 * Depende de nada más.
 */
@keyframes app-enter-rise {
  from { opacity: 0; transform: translateY(14px); }
}

@keyframes app-enter-slide {
  from { opacity: 0; transform: translateX(-18px); }
}

.app-enter .sidebar {
  animation: app-enter-slide 0.6s 0.1s cubic-bezier(0.2, 0.7, 0.2, 1) backwards;
}

.app-enter .topbar {
  animation: app-enter-rise 0.5s 0.15s ease-out backwards;
}

.app-enter #appContent > * {
  animation: app-enter-rise 0.55s ease-out backwards;
}

.app-enter #appContent > :nth-child(1) { animation-delay: 0.15s; }
.app-enter #appContent > :nth-child(2) { animation-delay: 0.22s; }
.app-enter #appContent > :nth-child(3) { animation-delay: 0.29s; }
.app-enter #appContent > :nth-child(4) { animation-delay: 0.36s; }
.app-enter #appContent > :nth-child(5) { animation-delay: 0.43s; }
.app-enter #appContent > :nth-child(6) { animation-delay: 0.5s; }
.app-enter #appContent > :nth-child(n + 7) { animation-delay: 0.55s; }

@media (prefers-reduced-motion: reduce) {
  .app-enter .sidebar,
  .app-enter .topbar,
  .app-enter #appContent > * {
    animation: none;
  }
}
