/* Toggle switch styles for Dojo CheckBox */
.toggle-container {
  display: flex;
  align-items: center;
  margin-bottom: 15px;
  padding: 5px 10px;
  border-radius: 5px;
  transition: background-color 0.3s;
}

.toggle-container:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

/* Toggle switch container */
.toggle-switch {
  position: relative;
  display: inline-block;
  width: 50px;
  height: 24px;
  margin-right: 10px;
}

/* Hide original Dojo CheckBox */
.toggle-switch .dijitCheckBoxInput {
  opacity: 0;
  width: 0;
  height: 0;
  position: absolute;
}

/* Slider */
.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #ccc;
  transition: .4s;
  border-radius: 34px;
  z-index: 1; /* 确保滑块在复选框上方 */
}

.slider:before {
  position: absolute;
  content: "";
  height: 20px;
  width: 20px;
  left: 2px;
  bottom: 2px;
  background-color: white;
  transition: .4s;
  border-radius: 50%;
}

/* 当复选框被选中时改变滑块颜色 */
.dijitCheckBoxChecked ~ .slider,
input[aria-checked="true"] ~ .slider {
  background-color: #255799;
}

/* 当复选框被选中时移动滑块按钮 */
.dijitCheckBoxChecked ~ .slider:before,
input[aria-checked="true"] ~ .slider:before {
  transform: translateX(26px);
}

/* Label styling */
.toggle-label {
  color: white;
  font-size: 9px;
  vertical-align: middle;
  font-family: "Roboto", sans-serif;
}