
                    tag.onclick = () => selectSuggestedCategory(suggestion);
                    container.appendChild(tag);
                });
                
                suggestionsDiv.style.display = 'block';
            } catch (e) {
                // Invalid URL, hide suggestions
                document.getElementById('categorySuggestions').style.display = 'none';
            }
        }

        function selectSuggestedCategory(categoryName) {
            const select = document.getElementByI