/* --- TOAST NOTIFICATION SYSTEM STYLES V2 --- */

#toast-container {
    position: fixed;
    top: 2rem; /* Posición superior */
    right: 2rem;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: flex-end;
}

.toast {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.5rem;
    border-radius: 12px;
    color: white;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.4), 0 8px 10px -6px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.15);

    /* Animación de entrada y salida desde arriba */
    opacity: 0;
    transform: translateY(-50px);
    transition: all 0.4s cubic-bezier(0.21, 1.02, 0.73, 1);

    width: 100%;
    max-width: 350px;
}

.toast.show {
    opacity: 1;
    transform: translateY(0);
}

.toast-icon {
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.toast-content {
    flex-grow: 1;
    font-family: 'Poppins', sans-serif;
    font-size: 0.95rem;
    line-height: 1.4;
}

.toast-close {
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.6);
    font-size: 1rem;
    cursor: pointer;
    padding: 0.5rem;
    margin: -0.5rem;
    transition: color 0.3s ease;
}

.toast-close:hover {
    color: white;
}

/* --- Estilos por tipo con transparencia --- */
.toast-success {
    background: rgba(16, 185, 129, 0.9); /* Verde con transparencia */
    backdrop-filter: blur(5px);
}

.toast-error {
    background: rgba(239, 68, 68, 0.9); /* Rojo con transparencia */
    backdrop-filter: blur(5px);
}

.toast-warning {
    background: rgba(245, 158, 11, 0.9); /* Ámbar con transparencia */
    backdrop-filter: blur(5px);
}

.toast-info {
    background: rgba(59, 130, 246, 0.9); /* Azul con transparencia */
    backdrop-filter: blur(5px);
}
