       // Show modal with loading state
        modal.style.display = 'flex';
        content.innerHTML = `
            <div class="rc-text-center rc-py-xl">
                <div class="rc-spinner"></div>
                <p class="rc-text-muted rc-mt-md">Loading case details...</p>
            </div>
        `;
        
        // Fetch case details
        fetch('/api/v1/cases/' + caseID)
            .then(response => {
                if (!response.ok) {
                    return response.text().then(tex