/* 1. The Container */
.dropdown {
    position: relative;
    display: inline-block;
    font-family: Arial, sans-serif;
}

/* 2. The Trigger Button */
.dropbtn {
    background-color: #4b2e9a;
    color: white;
    padding: 12px 24px;
    font-size: 16px;
    border: none;
    cursor: pointer;
    border-radius: 4px;
    transition: background-color 0.3s;
    /* ADD: Explicitly set height/min-height to 'auto' just in case */
    height: auto;
    min-height: auto;
    
    /* ADD: Use the Box Sizing Model for predictable height calculation */
    box-sizing: content-box; /* Or border-box, depending on your global CSS */
    
    /* Force margin reset again, just to be sure */
    margin: 0;
    /* Ensure no fixed width is being inherited or applied */
    width: auto !important; 
    
    /* Ensure no large minimum width is set */
    min-width: 0 !important;
}

.dropbtn:hover, .dropbtn:focus {
    background-color: #7d49ca;
}

/* 3. The Dropdown Content (Hidden by default) */
.dropdown-content {
    display: none;
    position: absolute;
    right: 0;
    background-color: #6b6b72;
    min-width: 200px;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
    z-index: 1;
    border-radius: 4px;
    margin-top: 5px;
}

/* 4. Links inside the dropdown */
.dropdown-content a {
    color: rgb(255, 255, 255);
    padding: 12px 16px;
    text-decoration: none;
    display: block;
}

.dropdown-content a:hover {
    background-color: #a4a9b4;
}

/* 5. The Class JavaScript adds to show the menu */
.show {
    display: block;
}

.icon-obstructing-click {
  /* This is the key property */
  pointer-events: none;
}