html {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  display: block;
  text-align: center;
}

h2 {
  font-size: 24px;
  font-weight: 600;
  color: #ffffff;
  margin-bottom: 8px;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

body {
  max-width: 600px;
  margin: 0 auto;
  padding: 20px;
  background: linear-gradient(135deg, #1a1a2e, #16213e);
  color: #e0e0e0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.control-panel {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  padding: 40px;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.1);
  text-align: center;
  min-width: 300px;
  position: relative;
  overflow: hidden;
}

.panel-subtitle {
  font-size: 14px;
  color: #a0a0a0;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 30px;
}

.control-section {
  background: rgba(0, 0, 0, 0.2);
  border-radius: 15px;
  padding: 25px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  position: relative;
  z-index: 1;
}

.output {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  gap: 30px;
}

.output:last-child {
  border-bottom: none;
}

.output h3 {
  margin: 0;
  font-size: 16px;
  font-weight: 500;
  color: #ffffff;
}

.switch {
  position: relative;
  display: inline-block;
  width: 80px;
  height: 44px;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(145deg, #2c2c54, #40407a);
  transition: all 0.4s cubic-bezier(0.23, 1, 0.320, 1);
  border: 2px solid rgba(255, 255, 255, 0.1);
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.3), 0 2px 8px rgba(0, 0, 0, 0.2);
  border-radius: 22px;
}

.slider:before {
  position: absolute;
  content: "";
  height: 32px;
  width: 32px;
  left: 4px;
  bottom: 4px;
  background: linear-gradient(145deg, #f5f5f5, #e0e0e0);
  transition: all 0.4s cubic-bezier(0.23, 1, 0.320, 1);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  border-radius: 50%;
}

input:checked+.slider {
  background: linear-gradient(145deg, #00d2ff, #3a7bd5);
  border-color: rgba(255, 255, 255, 0.2);
}

input:checked+.slider:before {
  -webkit-transform: translateX(36px);
  -ms-transform: translateX(36px);
  transform: translateX(36px);
  background: linear-gradient(145deg, #ffffff, #f0f0f0);
}

/* Responsive Design */
@media screen and (max-width: 600px) {
  body {
    padding: 10px;
  }

  h2 {
    font-size: 2rem;
  }

  .control-panel {
    padding: 10px;
  }

  .output {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .output h3 {
    margin-bottom: 10px;
  }
}

