/* views/modules/assets/css/toast.css */

/* Asegura que el contenedor no bloquee clicks si está vacío pero se posicione arriba de todo */
.toast-container {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 9999 !important; /* Por encima de modales de Bootstrap */
    display: flex;
    flex-direction: column;
    gap: 12px;
    pointer-events: none; /* Deja pasar clicks al fondo si no hay toasts */
}

/* Fuerza a tus Toasts personalizados a mostrarse ignorando el "hide" de Bootstrap */
.toast-container .toast {
    display: flex !important; /* Rompe el display:none de Bootstrap */
    align-items: center;
    background: #ffffff;
    color: #333333;
    padding: 16px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    min-width: 300px;
    max-width: 450px;
    opacity: 1 !important; /* Rompe la opacidad cero de Bootstrap */
    pointer-events: auto; /* Permite interactuar con el toast si fuera necesario */
    
    /* Animación de entrada suave */
    animation: slideIn 0.3s ease forwards;
}

/* Colores por tipo (Ejemplos) */
.toast.success { border-left: 5px solid #28a745; }
.toast.error   { border-left: 5px solid #dc3545; }
.toast.warning { border-left: 5px solid #ffc107; }

.toast-icon {
    margin-right: 12px;
    font-size: 24px;
}
.toast.success .toast-icon { color: #28a745; }
.toast.error .toast-icon   { color: #dc3545; }
.toast.warning .toast-icon { color: #ffc107; }

.toast-content {
    display: flex;
    flex-direction: column;
}
.toast-title {
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 2px;
}
.toast-message {
    font-size: 13px;
    color: #666666;
}

/* Animaciones */
@keyframes slideIn {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

.toast.fade-out {
    animation: slideOut 0.3s ease forwards;
}

@keyframes slideOut {
    from { transform: translateX(0); opacity: 1; }
    to { transform: translateX(100%); opacity: 0; }
}