/* Toggle Switch Container */
.toggle-switch {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Toggle Switch Styling */
.switch {
  position: relative;
  display: inline-block;
  width: 50px;
  height: 26px;
}

.switch input {
  opacity: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  background-color: #ccc;
  border-radius: 26px;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  transition: 0.4s;
}

.slider::before {
  position: absolute;
  content: "";
  height: 20px;
  width: 20px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  border-radius: 50%;
  transition: 0.4s;
}

input:checked + .slider {
  background-color: #91468a;
}

input:checked + .slider::before {
  transform: translateX(24px);
}

/* Sun/Moon Icon Styling */
#sunIcon, #moonIcon {
  font-size: 20px;
  transition: opacity 0.3s ease;
}

#sunIcon {
  opacity: 0;
}

body.light-mode #sunIcon {
  opacity: 1;
}

body.light-mode #moonIcon {
  opacity: 0;
}
