/* Theme Switch Styling */
.theme-switch {
  display: inline-block;
  position: relative;
  width: 60px;
  height: 34px;
}

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

.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: var(--slider-bg-color, #4d4d4d);
  transition: 0.4s;
  border-radius: 34px;
  box-shadow:
    inset 0 2px 4px rgba(0, 0, 0, 0.2),
    0 4px 6px rgba(0, 0, 0, 0.2);
}

.slider:before {
  position: absolute;
  content: "";
  height: 26px;
  width: 26px;
  left: 4px;
  bottom: 4px;
  background-color: var(--slider-circle-color, #333333);
  transition: 0.4s;
  border-radius: 50%;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

input:checked+.slider {
  /* background-color: #0fbcf9; */
  background-color: var(--primary, #16DB93);
}

input:checked+.slider:before {
  transform: translateX(26px);
}

/* Add icons (sun and moon) */
.slider:after {
  content: "🌙";
  /* Moon icon for dark mode */
  position: absolute;
  left: 6px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 18px;
  opacity: 1;
  transition: 0.4s;
}

input:checked+.slider:after {
  content: "☀️";
  /* Sun icon for light mode */
  left: 50%;
  top: 50%;
  transform: translate(3px, -50%);
}

/* Custom styling for the header theme toggle */
.nav-controls .theme-switch {
  width: 60px;
  height: 34px;
  margin: 0;
}

/* Hide the original theme-toggle button when using the switch */
.theme-toggle {
  display: none;
}
