active'));
            document.querySelectorAll('.tab-content').forEach(content => content.classList.remove('active'));
            
            // Add active class to selected tab
            document.getElementById(tabName + 'Tab').classList.add('active');
            document.getElementById(tabName + 'Content').classList.add('active');
            
            // Load tab-specific content
            loadTabContent(tabName);
        }

        // Load tab content
        function loadTabContent(tabName)