/* Custom Dropdown Styles for Cases Filters */

.cases-filters {
    display: flex;
    gap: 30px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 350px;
    position: relative;
}

.filter-group label {
    font-weight: 600;
    color: #444F50;
}

/* Custom Select Styling */
.custom-select-wrapper {
    position: relative;
    user-select: none;
    width: 100%;
}

.custom-select-trigger {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0px 10px;
    font-size: 16px;
    font-weight: 400;
    color: #444F50;
    background: #ffffff;
    border-bottom: 1px solid #000;
    border-radius: 0px;
    cursor: pointer;
    transition: border-color 0.2s;
}

.custom-select-trigger:hover {
    border-color: #999;
}

.custom-select-trigger:after {
    content: '\25BC'; /* Down arrow */
    font-size: 8px;
    color: #888;
    transition: transform 0.2s;
}

.custom-select-wrapper.open .custom-select-trigger:after {
    transform: rotate(180deg);
}

.custom-options-container {
    position: absolute;
    display: none;
    top: 100%;
    left: 0;
    right: 0;
    background: #ffffff;
    border: 1px solid #ccc;
    border-top: none;
    border-radius: 0 0 4px 4px;
    z-index: 1000;
    max-height: 250px;
    overflow-y: auto;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.custom-select-wrapper.open .custom-options-container {
    display: block;
}

.custom-option {
    padding: 10px 15px;
    cursor: pointer;
    transition: background 0.2s;
    color: #444F50;
}

.custom-option:hover {
    background: #f5f5f5;
}

.custom-option.selected {
    background: #e97e16;
    color: #fff;
}

/* Custom Scrollbar Styling (as seen in user image) */
.custom-options-container::-webkit-scrollbar {
    width: 12px;
}

.custom-options-container::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.custom-options-container::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 10px;
    border: 3px solid #f1f1f1;
}

.custom-options-container::-webkit-scrollbar-thumb:hover {
    background: #555;
}

/* Firefox scrollbar support */
.custom-options-container {
    scrollbar-width: thin;
    scrollbar-color: #888 #f1f1f1;
}
