             if (dropdown) {
                        // Close other dropdowns
                        document.querySelectorAll('.rc-dropdown.show').forEach(other => {
                            if (other !== dropdown) {
                                console.log('Closing other dropdown');
                                other.classList.remove('show');
                            }
                        });
                        
                        // Toggle this dropdown
                        