;
            }
            
            const projectName = card.dataset.project;
            showLoadingOverlay(`Loading ${projectName}...`);
            
            try {
                // Add a small delay to ensure spinner is shown
                await new Promise(resolve => setTimeout(resolve, 100));
                window.location.href = `/annotation/${projectName}`;
            } catch (error) {
                hideLoadingOverlay();
                console.error('Navigation error:', error);
     