/* front/css/toast.css - Sistema de Notificaciones Global ESMO */
.esmo-toast-container {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 99999999;
    display: flex;
    flex-direction: column-reverse; /* Apila los avisos nuevos hacia arriba de forma limpia */
    gap: 10px;
    pointer-events: none;
}

.esmo-toast {
    pointer-events: auto;
    min-width: 280px;
    max-width: 380px;
    background-color: #FFFFFF;
    border: 1px solid rgba(4, 18, 63, 0.08);
    border-radius: 14px;
    box-shadow: 0 10px 30px rgba(4, 18, 63, 0.12);
    padding: 12px 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    transform: translateX(110%);
    opacity: 0;
    transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.25s ease;
}

.esmo-toast.show {
    transform: translateX(0);
    opacity: 1;
}

.esmo-toast-icon {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.esmo-toast.success .esmo-toast-icon {
    background-color: #ECFDF5;
    color: #059669;
}

.esmo-toast.error .esmo-toast-icon {
    background-color: #FEF2F2;
    color: #DC2626;
}

.esmo-toast.warning .esmo-toast-icon {
    background-color: #FFFBEB;
    color: #D97706;
}

.esmo-toast-text {
    flex: 1;
    font-size: 0.8125rem;
    font-weight: 600;
    color: #04123F;
    line-height: 1.35;
}

@media (max-width: 768px) {
    .esmo-toast-container {
        bottom: 16px;
        right: 16px;
        left: 16px; /* Permite que en pantallas angostas ocupe el ancho sin desbordarse */
        align-items: flex-end;
    }
    .esmo-toast {
        width: 100%;
        max-width: 100%;
        min-width: 0;
    }
}