 '<p class="text-gray-400">No Graph API permissions assigned.</p>';
                }

                // Add SinglePageApp field dynamically (only if not empty)
                const modalSinglePageAppContainer = document.getElementById('modalSinglePageAppContainer');
                if (app.single_page_app && app.single_page_app.trim() !== "") {
                    document.getElementById('modalSinglePageApp').innerText = app.single_page_app;
                    modalSinglePageAppContainer.style.display =