html,body {
    margin: 0;
    height: 100%;
    overflow: hidden;
}
.conway-space {
    height: 100%;
    /* height: calc(100% - 40px); */
    min-height: 500px;
    min-width: 500px;
    /* margin: 20px; */
    box-shadow: 0 0 3px orange;
}
.eye-button{
    width: 15px;
    height: 15px;
    cursor: pointer;
}
.eye-button span{
    width: 2px;
    height: 2px;
    position: absolute;
}
.eye-button span:nth-of-type(1){
    right: 20%;
    top: 20%;
    background-color: #009E60;
}
.eye-button span:nth-of-type(2){
    right: 50%;
    top: 20%;
    background-color: #FF5800;
}
.eye-button span:nth-of-type(3){
    right: 80%;
    top: 20%;
    background-color: #FFD500;
}
.eye-button span:nth-of-type(4){
    right: 20%;
    top: 50%;
    background-color: #C41E3A;
}
.eye-button span:nth-of-type(5){
    right: 50%;
    top: 50%;
    background-color: #FFFFFF;
}
.eye-button span:nth-of-type(6){
    right: 80%;
    top: 50%;
    background-color: #0051BA;
}
.eye-button span:nth-of-type(7){
    right: 20%;
    top: 80%;
    background-color: #FFD500;
}
.eye-button span:nth-of-type(8){
    right: 50%;
    top: 80%;
    background-color: #FF5800;
}
.eye-button span:nth-of-type(9){
    right: 80%;
    top: 80%;
    background-color: #009E60;
}
.right-control-panel{
    right: 10px;
    top: 0px;
    position: fixed;
    width: 215px;
    /* height: 400px; */
    border-radius: 5px;
    background-color: rgba(191,191,191,0.4);
    padding: 5px 10px;
}
.bottom-monitor-panel{
    left: 0px;
    bottom: 0px;
    position: fixed;
    height: 15px;
    background-color: rgba(191,191,191,0.4);
    padding: 5px 10px;
}
.monitor-label{
    color: rgb(98, 98, 98);
}
.group-panel{
    border: 1px solid gray; 
    border-radius: 5px; 
    padding: 5px; 
    margin-top: 5px;
}

/* 定义整个开关容器的基本样式 */
.switch {
    position: relative;
    display: inline-block;
    width: 65px;
    height: 16px;
}
  
/* 隐藏默认的checkbox */
.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}
  
/* 滑块样式 */
.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: .4s;
    border-radius: 16px;
}
  
/* 当输入框被选中时滑块移动到右侧 */
input:checked + .slider {
    background-color: #2196F3;
}
  
  /* 圆形滑块内部的小圆点 */
.slider:before {
    position: absolute;
    content: "";
    height: 10px;
    width: 10px;
    left: 4px;
    bottom: 3px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}
  
/* 当输入框被选中时小圆点移动到右侧 */
input:checked + .slider:before {
    transform: translateX(47px);
}

.switch[data-enabled="false"] .slider,
.switch[data-enabled="false"] input:checked + .slider {
  background-color: #ccc;
  cursor: not-allowed;
}

/* 禁用状态下小圆点也变灰 */
.switch[data-enabled="false"] .slider:before {
  background-color: #eee;
}

.need-forbidden:disabled{
    cursor: no-drop;
}

.loading-overlay {
  display: none; /* 默认隐藏 */
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  justify-content: center;
  align-items: center;
  z-index: 1000;
  flex-direction: column;
  color: white;
  font-family: Arial, sans-serif;
}

.loading-spinner {
  width: 50px;
  height: 50px;
  border: 5px solid #f3f3f3;
  border-top: 5px solid #3498db;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}