.panel {
  position: absolute;
  // left: -400px;
  width: 300px;
  background: white;
  border-radius: 4px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  padding: 2px 16px;
  z-index: 1000;
  transform: translateY(0px);
  transition: transform 0.3s ease;
  top: 10px;
  border: 1px solid #5e5d5d;

  &.open {
    // left: 46px; // 30px (size of button) + 16px (padding)
    transform: translateY(-120%);
  }
}

.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;

  h3 {
    margin: 0;
    font-size: 16px;
  }
}

.closeButton {
  background: none;
  border: none;
  font-size: 20px;
  cursor: pointer;
  padding: 2px !important;
  font-size: 12px !important;
  border-radius: 4px !important;
  border: 0px solid #5e5d5d !important;
  // box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
 
  
  &:hover {
    opacity: 0.7;
  }
}

.configSection {
  margin-bottom: 16px;

  label {
    // display: block;
    margin-bottom: 8px;
    font-size: 14px;
    color: #666;
  }
}

.select {
  width: 100%;
  padding: 8px;
  border: 1px solid #ddd;
  border-radius: 4px;
}

.slider {
  width: 100%;
  height: 4px;
}

.toggleWrapper {
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
}

.toggle {
  position: relative;
  width: 40px;
  height: 20px;
  appearance: none;
  background: #ddd;
  border-radius: 20px;
  cursor: pointer;
  
  &:checked {
    background: #4CAF50;
  }

  &::before {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    // border-radius: 50%;
    background: white;
    top: 2px;
    left: -2px;
    transition: 0.3s;
  }

  &:checked::before {
    transform: translateX(20px);
  }
} 

@media (prefers-color-scheme: light) {
  .panel {
    background: #f9f9f9;
    border: 1px solid #5e5d5d;
  }
}

@media (prefers-color-scheme: dark) {
  .panel {
    background: lightsalmon;
    border: 1px solid #5e5d5d;
  }
}