ainer.innerHTML = '';
        document.getElementById('file-list').style.display = 'none';
        document.getElementById('file-list').innerHTML = '';
        createProjectBtn.disabled = true;
        isDataImported = false;
        document.getElementById('summary-tab').classList.add('disabled');
        clearStoredData();
        await fetch('/cleanup_chunks', { method: 'POST' });
    });

    tabBtns.forEach(btn => {
        btn.addEventListener('click', (e) => {
            if (btn.classList.contains('