ction(e) {
            const url = e.target.value;
            if (url.length > 10 && url.includes('.')) {
                showCategorySuggestions(url);
                simulateUrlPreview(url);
            } else {
                document.getElementById('categorySuggestions').style.display = 'none';
                document.getElementById('urlPreview').classList.remove('show');
            }
        });

        // Close dialog when clicking outside
        document.getElementById('addLinkDialog').addEvent