.custom-multiselect {
    position: relative;
    width: 100%;
}

.custom-multiselect-button {
    width: 100%;
    text-align: left;
    padding: 0.375rem 0.75rem;
    background: white;
    border: 1px solid #dee2e6;
    border-radius: 0.375rem;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1rem;
    font-family: inherit;
    line-height: 1.5;
    position: relative;
}

.custom-multiselect-button:hover {
    border-color: #86b7fe;
}

.custom-multiselect-button.show {
    border-color: #86b7fe;
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}

.custom-multiselect-text {
    flex: 1;
    color: #6c757d;
}

.custom-multiselect-arrow {
    position: absolute;
    right: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-top: 4px solid #6c757d;
    transition: transform 0.2s;
}

.custom-multiselect-button.show .custom-multiselect-arrow {
    transform: translateY(-50%) rotate(180deg);
}

.custom-multiselect-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    max-height: 300px;
    overflow-y: auto;
    background: white;
    border: 1px solid #dee2e6;
    border-radius: 0.375rem;
    margin-top: 0.25rem;
    z-index: 1050;
    display: none;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}

.custom-multiselect-dropdown.show {
    display: block;
}

.custom-multiselect-optgroup {
    padding: 0.5rem 0.75rem;
    font-weight: 600;
    color: #6c757d;
    background: #f8f9fa;
    border-bottom: 1px solid #dee2e6;
    font-size: 0.875rem;
    cursor: pointer;
}

.custom-multiselect-optgroup:hover {
    background: #e9ecef;
}

.custom-multiselect-option {
    padding: 0.5rem 0.75rem 0.5rem 2rem;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

.custom-multiselect-option:hover {
    background: #f8f9fa;
}

.custom-multiselect-option.selected {
    background: #e7f1ff;
}

.custom-multiselect-option.selected::after {
    content: '✓';
    position: absolute;
    right: 0.75rem;
    color: #0d6efd;
    font-weight: bold;
}