then(response => response.json())
                .then(data => {
                    updateDashboard(data);
                })
                .catch(error => {
                    console.error('Error fetching stats:', error);
                });
        }
        
        // Update dashboard with statistics
        function updateDashboard(stats) {
            // Update user statistics
            document.getElementById('user-count').textContent = stats.users || '-';
            document.getElementById(