/* Wrapper fixed di kanan atas */
.theme-switch-wrapper {
  position: fixed;
  top: 20px;
  right: 80px;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  z-index: 10;
  background-color: var(--secondary-bg-color);
  padding: 5px 10px;
  border-radius: 12px;
  box-shadow: var(--shadow-sm);
}

/* Label style */
.theme-label {
  user-select: none;
  font-weight: 500;
  color: var(--secondary-text-color);
}

/* Switch container */
.theme-switch {
  position: relative;
  display: inline-block;
  width: 50px;
  height: 26px;
}

/* Hide default checkbox */
.theme-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

/* Slider track */
.theme-switch .slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #ccc;
  transition: 0.4s;
  border-radius: 34px;
}

/* Slider circle */
.theme-switch .slider::before {
  position: absolute;
  content: "";
  height: 20px;
  width: 20px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: 0.4s;
  border-radius: 50%;
}

/* Checked */
.theme-switch input:checked + .slider {
  background-color: var(--theme-color);
}

.theme-switch input:checked + .slider::before {
  transform: translateX(24px);
}

@media (max-width: 600px) {
  .theme-switch-wrapper {
    right: 20px;
  }
}