/* Ajustes puntuales sobre Tailwind CSS (CDN). CSS plano: el CDN de Tailwind no
   procesa @apply en hojas externas, solo clases presentes en el DOM. */

/* Foco visible consistente para navegación por teclado (accesibilidad). */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 2px solid #2776f5;
    outline-offset: 2px;
}

/* Contenedor fijo de notificaciones (toasts), poblado por app.js a partir de
   los bloques [data-flash] ya renderizados por el servidor. */
#toast-container {
    position: fixed;
    top: 1rem;
    right: 1rem;
    z-index: 100;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    max-width: 24rem;
}

.toast {
    animation: toast-in 0.2s ease-out;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.toast.toast-leaving {
    animation: toast-out 0.2s ease-in forwards;
}

@keyframes toast-in {
    from {
        opacity: 0;
        transform: translateY(-0.5rem);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes toast-out {
    from {
        opacity: 1;
        transform: translateY(0);
    }
    to {
        opacity: 0;
        transform: translateY(-0.5rem);
    }
}
