className = `fas ${isError ? 'fa-exclamation-circle' : 'fa-check-circle'} text-xl`;
            toast.appendChild(icon);
            
            // Add message text
            const text = document.createElement('span');
            text.className = 'font-medium';
            text.textContent = message;
            toast.appendChild(text);
            
            container.appendChild(toast);

            // Animate the toast
            setTimeout(() => {
                     toast.style.opacity = '0';
