LETE'
            })
                .then(response => response.json())
                .then(data => {
                    if (data.error) {
                        showNotification(`Error: ${data.error}`, true);
                    } else {
                        showNotification('Tool deleted successfully');
                        loadTools();
                    }
                })
                .catch(error => {
                    console.error('Error deleting tool:', error);
                    