
            document.getElementById('import-form').addEventListener('htmx:afterRequest', function(event) {
                const xhr = event.detail.xhr;
                const successAlert = document.getElementById('success-alert');
                const errorAlert = document.getElementById('error-alert');
                const errorMessage = document.getElementById('error-message');
                
                // Hide both alerts initially
                successAlert.style.display = 'none';
         