electorAll('.tab');
            tabs.forEach(t => t.classList.remove('active'));
            
            if (tab === 'parent') {
                document.querySelector('.tab:first-child').classList.add('active');
                document.getElementById('parent-controls').style.display = 'block';
                document.getElementById('child-controls').style.display = 'none';
            } else {
                document.querySelector('.tab:last-child').classList.add('active');
                document.get