.wrapper {
  display: flex;
  width: 100%;
  height: 100vh;
  justify-content: center;
  align-items: center;
}

.container {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.title,
.btn-on,
.btn-off {
  display: flex;
  align-items: center;
  gap: 40px;
}

.title > *,
.btn-on > *,
.btn-off > * {
  flex: 1;
  display: flex;
  justify-content: center;
}

.btn-on > *:first-child,
.btn-off > *:first-child {
  justify-content: flex-start;
}

.action-btn {
  position: relative;
  cursor: pointer;
  display: inline-block;
}

.action-btn::before {
  content: "";
  display: block;
  border: 2px solid #888;
  transition:
    background-color 0.3s ease,
    border-color 0.3s ease;
}

.btn-square::before {
  width: 24px;
  height: 24px;
  border-radius: 4px;
}

.btn-square:has(input:checked)::before {
  background-color: #009688;
  border-color: #009688;
}

.btn-square:has(input:checked)::after {
  content: "";
  position: absolute;
  top: 4px;
  left: 10px;
  width: 6px;
  height: 12px;
  border: solid #fff;
  border-width: 0 3px 3px 0;
  transform: rotate(45deg);
}

.btn-circle::before {
  width: 24px;
  height: 24px;
  border-radius: 50%;
}

.btn-circle:has(input:checked)::before {
  border-color: #009688;
}

.btn-circle:has(input:checked)::after {
  content: "";
  position: absolute;
  top: 6px;
  left: 6px;
  width: 16px;
  height: 16px;
  background-color: #009688;
  border-radius: 50%;
}

.btn-round::before {
  width: 44px;
  height: 24px;
  border-radius: 20px;
  background-color: #ccc;
  border-color: #ccc;
}

.btn-round::after {
  content: "";
  position: absolute;
  top: -2px;
  left: -10px;
  width: 32px;
  height: 32px;
  background-color: white;
  border-radius: 50%;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
  transition:
    left 0.3s ease,
    background-color 0.3s ease;
}

.btn-round:has(input:checked)::before {
  background-color: #80cbc4;
  border-color: #80cbc4;
}

.btn-round:has(input:checked)::after {
  left: 23px;
  background-color: #009688;
}
