t => {
                        throw new Error('HTTP ' + response.status + ': ' + text);
                    });
                }
                return response.json();
            })
            .then(data => {
                console.log('Case data received:', data);
                const caseData = data.case || data;
                content.innerHTML = `
                    <div class="rc-grid rc-grid-cols-1 rc-grid-cols-md-2 rc-grid-gap-lg">
                        <div class="rc-form-group">
        