
            toast.textContent = message;
            toast.classList.add('show');
            
            setTimeout(() => {
                toast.classList.remove('show');
            }, 3000);
        }

        // Add Link Dialog Functions
        function showAddLinkDialog() {
            document.getElementById('addLinkDialog').classList.add('show');
            document.getElementById('linkUrl').focus();
        }

        function hideAddLinkDialog() {
            document.getElementById('addLinkDi