/* The container <div> - needed to position the dropdown content */
.mode-selector-container {
    position: relative;
    display: flex;
    justify-content: center;
    flex-direction: column;
    align-items: center;
}

/* Dropdown Button */
.dropbtn {
    /*margin-top: 10px;*/
    width: 120px;
    height: 30px;
    color: #fff;
    font-size: 16px;
    background-color: #3e8e41;
    border: none;
    border-radius: 10px;
}

/* Dropdown Content (Hidden by Default) */
.dropdown-content {
    display: none;
    position: absolute;
    background-color: #f1f1f1;
    min-width: 160px;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
    z-index: 1;
    top: 100%;
}

/* Links inside the dropdown */
.dropdown-content a {
    color: black;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
}

.dropdown-form {
    display: flex;
    flex-direction: column;
    align-items: flex-start; /* Align children to the left */
}

.dropdown-item {
    display: flex; /* Align radio and label horizontally */
    align-items: center;
    width: 100%; /* Ensure the item fills the form's width */
    box-sizing: border-box; /* Include padding in width calculation */
    transition: background-color 0.3s; /* Smooth hover animation */
    padding: 16px 16px;
}

/* Change color of dropdown links on hover */
.dropdown-content a:hover {background-color: #ddd;}
.dropdown-content .dropdown-item:hover {background-color: #ddd;}
.dropdown-content .dropdown-item:hover label,input {cursor: pointer;}

/* Show the dropdown menu on hover */
.dropdown:hover .dropdown-content {display: block;}

/* Change the background color of the dropdown button when the dropdown content is shown */
.dropdown:hover .dropbtn {
    filter: brightness(110%);
}

/* Upgrade buttons */
.userinfo-container {
    display: flex;
    justify-content: center;
    flex-direction: row;
    align-items: center;
}
.upgrade-dropdown {
    display: none;
    position: relative;
    display: flex;
    justify-content: center;
    flex-direction: column;
    align-items: center;
    padding: 1em 1em;
}
.dropdown:hover .upgrade-dropdown {display: flex;}
.upgrade-dropdown-content {
    display: none;
    position: absolute;
    background-color: #f1f1f1;
    min-width: 160px;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
    z-index: 1;
    top: 100%;
}
.upgrade-dropdown:hover .upgrade-dropdown-content{display: block;}
