alog').classList.remove('show');
            document.getElementById('addLinkForm').reset();
            document.getElementById('urlPreview').classList.remove('show');
            document.getElementById('categorySuggestions').style.display = 'none';
        }

        function createNewCategory() {
            const categoryName = prompt('Enter new category name:');
            if (categoryName && categoryName.trim()) {
                const select = document.getElementById('linkCategory');
              