.phd-dropdown{

    --phd__dropdown-min-width: var(--phd__line-height) ;
    position: relative;
    width: fit-content;
    height: fit-content;
}


.phd-dropdown__button{
    width: min-content;
    height: min-content;
    white-space: nowrap;
}



.phd-dropdown__dropdown{
    position: absolute;
    border-radius: 5px;
}



.users-base{
    display: flex;
    gap: .9rem;
    /*background-color: red;*/
}

.phd-dropdown--immersive .phd-dropdown__dropdown{
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* Dropdown menu styles for mobile */
/* Dropdown menu styling (your original, no functionality) */
.phd-dropdown__dropdown {
    background-color: #fff;
    border: 1px solid #ddd;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    min-width: var(--phd__dropdown-min-width);
}

/* Options container styling */
.phd-dropdown__options {
    display: flex;
    flex-direction: column;
    gap: 0.2rem; /* Space between options */
}

/* Individual option styling */
.phd-dropdown__option {
    padding: 0.5rem 1rem;
    color: #333;
    text-decoration: none;
    border-radius: 3px;
    transition: background-color 0.2s ease;
    display: flex;
    gap: .35em;
    align-items: center;
    cursor: pointer;
}

.phd-dropdown__option {
    padding: 0.5rem 1rem;
    color: #333;
    text-decoration: none; /* Still applies for consistency */
    border-radius: 3px;
    transition: background-color 0.2s ease;
    display: flex;
    gap: .35em;
    align-items: center;
    cursor: pointer;
    background: none; /* Reset button default background */
    border: none; /* Reset button default border */
    text-align: left; /* Align text like a dropdown option */
    outline: none;
    z-index: 1;
}

.phd-dropdown__option img {
    height: 1em;
    width: auto;
}

.phd-dropdown__option.no-text-center {
    justify-content: center;
}


.phd-dropdown__option:hover,
.phd-dropdown__option:focus-within {
    background-color: #f5f5f5;
    color: #000;
}

.phd-dropdown__option:focus-within{
    background-color: rgba(var(--phd__main-color-base),0.25);
}
.phd-dropdown__option input[type="checkbox"] {
    pointer-events: none;
}

/* Tablet and up (min-width: 48rem / 768px) */
@media (min-width: 48rem) {
    .phd-dropdown__dropdown {
        /*min-width: 12rem;*/
    }

    .phd-dropdown__option {
        padding: 0.75rem 1.25rem;
    }
}

/* Extra small screens (max-width: 30rem / 480px) */
@media (max-width: 30rem) {
    .phd-dropdown__dropdown {
        /*min-width: 8rem;*/
    }

    .phd-dropdown__option {
        padding: 0.4rem 0.8rem;
    }
}

.phd-dropdown__demo-content{
    padding: 2rem;
}

.phd-dropdown .error-message{
    grid-area: error;

    text-indent: unset;
    color: rgb(var(--phd__input-error-color));
    font-size: .75rem;
    font-weight: 400;
    margin-top: 5px;
    /*display: none;*/
}


.phd-dropdown.control-error button{
    --phd__button-main-color-rgb: var(--phd__input-error-color) !important;
}
