 button.disabled = false;
                });
        }
        
        // View tool details
        function viewToolDetails(toolId) {
            const tool = tools.find(t => t.id === toolId);
            if (!tool) return;
            
            fetch(`/api/tools/${toolId}`)
                .then(response => response.json())
                .then(data => {
                    if (data.error) {
                        showNotification(`Error: ${data.error}`, true);
                        return;
     