/* Contenedor principal de notificaciones (esquina inferior derecha) */
#toast-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 12px;
    pointer-events: none; /* Que los clicks pasen a través si no tocan un toast real */
}

/* Base geométrica para los Toasts */
.toast {
    min-width: 300px;
    max-width: 400px;
    background: var(--bg-surface-elevated, #2a2d36); /* Color de fallback oscuro */
    border: 1px solid var(--glass-border, hsla(210, 100%, 50%, 0.2));
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    padding: 16px 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    color: var(--text-main, #ffffff);
    font-family: inherit;
    font-size: 0.95rem;
    font-weight: 500;
    pointer-events: auto;
    
    /* Animaciones */
    transform: translateX(120%); /* Fuera de pantalla a la derecha */
    opacity: 0;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 0.4s ease;
    cursor: pointer;
}

.toast.show {
    transform: translateX(0);
    opacity: 1;
}

.toast.hide {
    transform: translateX(120%);
    opacity: 0;
}

/* Iconos de notificación */
.toast-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Tipos de Toast */
.toast-success {
    border-left: 5px solid #00d26a;
}
.toast-success .toast-icon { color: #00d26a; }

.toast-error {
    border-left: 5px solid #f8312f;
}
.toast-error .toast-icon { color: #f8312f; }

.toast-info {
    border-left: 5px solid #00a8ff;
}
.toast-info .toast-icon { color: #00a8ff; }

/* Contenido / Texto */
.toast-content {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.toast-title {
    font-weight: 800;
    font-size: 1rem;
    margin-bottom: 2px;
}

.toast-message {
    color: var(--text-muted, #a0a4b0);
    font-size: 0.85rem;
    line-height: 1.4;
}

/* Barra de progreso de tiempo */
.toast-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    background: currentColor; /* Tomará el color del texto / icono indirectamente o puede hardcodearse en JS*/
    width: 100%;
    border-radius: 0 0 0 12px;
    animation: toast-progress linear forwards;
}

@keyframes toast-progress {
    from { width: 100%; }
    to { width: 0%; }
}
