const wasOpen = dropdown.classList.contains('show');
                        dropdown.classList.toggle('show');
                        console.log('Dropdown toggled. Was open:', wasOpen, 'Now open:', dropdown.classList.contains('show'));
                    }
                });
            });
            
            // Close dropdown when clicking outside
            document.addEventListener('click', function(e) {
                console.log('Document clicked');
                document.querySelectorAl