i think by default godot uses a 9 patch texture for its containers. This border color cannot been changed.
You can create a flat-style and set a border. But styles work like shaders. When you chenge it, every instance that it uses would change its appearance.
When i want to change color for selected items i create a style for default and for selected. Then swap the style on the item.