.switch {
  z-index: 500;
  position: fixed;
  right: 16px;
  bottom: 16px;
  width: 48px;
  height: 24px;
}

.switcher-hidden {
  display: block !important;
}

@media (max-width: 767px) {
  .switch-bottom-navbar {
    bottom: 88px;
  }
}
/* Hide default HTML checkbox */
.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

/* The slider */
.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #244166;
  -webkit-transition: 0.4s;
  transition: 0.4s;
}

.slider:before {
  position: absolute;
  content: "";
  height: 20px;
  width: 20px;
  left: 2px;
  bottom: 0px;
  top: 0;
  bottom: 0;
  margin: auto 0;
  -webkit-transition: 0.4s;
  transition: 0.4s;
  background: #152e4d url("../img/icons/moon.svg");
  box-shadow: 0 0px 4px #2020203d;
  background-repeat: no-repeat;
  background-position: center;
}

input:checked + .slider {
  background-color: #2c7be5;
}

input:checked + .slider:before {
  -webkit-transform: translateX(24px);
  -ms-transform: translateX(24px);
  transform: translateX(24px);
  background: white url("../img/icons/sun.svg");
  background-repeat: no-repeat;
  background-position: center;
}

/* Rounded sliders */
.slider.round {
  border-radius: 100px;
}

.slider.round:before {
  border-radius: 50%;
}

/* Course page buttons container */
.course-page-buttons {
  z-index: 500;
  position: fixed;
  right: 16px;
  bottom: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: flex-end;
}

.daily-mentoring-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #fff7ed;
  border: 1px solid #fed7aa;
  border-radius: 50px;
  padding: 12px 20px;
  text-decoration: none;
  color: #333;
  font-weight: 500;
  font-size: 14px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  min-width: 160px;
  justify-content: center;
}

.daily-mentoring-pill:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  text-decoration: none;
  color: #333;
}

.daily-mentoring-text {
  white-space: nowrap;
}

/* Course page theme switcher positioning - move to left */
.course-page-buttons .switch {
  position: fixed !important;
  left: 16px !important;
  right: auto !important;
  bottom: 16px !important;
}

/* Dark theme support for daily mentoring button */
[data-bs-theme="dark"] .daily-mentoring-pill {
  background: #431407;
  border-color: #9a3412;
  color: #fff;
}

[data-bs-theme="dark"] .daily-mentoring-pill:hover {
  color: #fff;
}

@media (max-width: 767px) {
  .course-page-buttons {
    bottom: 88px;
  }

  .course-page-buttons .switch {
    bottom: 88px !important;
  }
}
