.custom-dropdown-container {
position: relative;
width: 100%;
max-width: 400px;
font-family: Arial, sans-serif;
margin-bottom: 15px;
font-family: "Inter";
}

/* Dropdown Header */
.dropdown-header {
padding: 10px 15px;
background-color: #fcfcfc;
border: 1px solid #eaeaea;
border-radius: 10px;
cursor: pointer;
display: flex;
justify-content: space-between;
align-items: center;
font-weight: 500;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
font-weight: 550;
height: fit-content;
text-wrap: nowrap;
}

.dropdown-category-heading {
    font-weight: 550;
    text-align: center;
    width: 100%;
    padding-top: 10px;
}

.dropdown-header-label {
    color: forestgreen;
    text-wrap: wrap !important;
}

.dropdown-header:hover {
background-color: #e9ecef;
}

.dropdown-toggle {
margin-left: 10px;
transition: transform 0.2s ease;
}

/* Dropdown Content */
.dropdown-content {
display: none;
position: absolute;
width: 100%;
max-height: 350px;
background-color: #fff;
border: 1px solid #ced4da;
border-radius: 10px;
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
z-index: 100;
margin-top: 5px;
overflow: hidden;
}

.dropdown-content.show {
display: block;
}

/* Search Box */
.dropdown-search {
width: calc(100% - 40px);
padding: 10px 10px;
margin: 10px;
border: 1px solid #ddd;
border-radius: 10px;
position: sticky;
top: 0;
background-color: #fff;
z-index: 10;
font-size: 15px;
}

.dropdown-search:focus {
outline: none;
border-color: #80bdff;
box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

/* Items Container for Virtual Scrolling */
.dropdown-items-container {
overflow-y: auto;
max-height: 400px;
position: relative;
}

/* Individual Dropdown Item */
.dropdown-item {
padding: 12px 15px;
cursor: pointer;
display: flex;
align-items: center;
height: fit-content; /* Fixed height for calculation purposes */
box-sizing: border-box;
border-bottom: 1px solid #eaeaea;

}

.dropdown-item:hover {
background-color: #f8f9fa;
}

.dropdown-item input {
margin-right: 10px;
}

.dropdown-item label {
cursor: pointer;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
flex: 1;
}

/* Scrollbar Styles */
.dropdown-items-container::-webkit-scrollbar {
width: 8px;
}

.dropdown-items-container::-webkit-scrollbar-track {
background: #f1f1f1;
}

.dropdown-items-container::-webkit-scrollbar-thumb {
background: #888;
border-radius: 4px;
}

.dropdown-items-container::-webkit-scrollbar-thumb:hover {
background: #555;
}