
.nav-link .toggle-container {
  transform: scale(1);
  transition: .2s;
}



.nav-link:hover .toggle-container {
  transform: scale(1.1);
}


.mode-switch {
  cursor: pointer;
  margin-bottom: 0;
  padding: 1rem;
  transform: scale(.9);
  border-radius: 100rem;
  border: none;
}

.mode-switch .toggle {
  border-radius: 50%;
  width: 20px;
  height: 20px;
  position: relative;
  box-shadow: inset 8px -8px 0 0 var(--app-navbar-icon-color);
  transform: scale(1) rotate(-2deg);
  transition: box-shadow 0.5s ease 0s, transform 0.4s ease 0.1s, opacity .2s;
  opacity: 1;
}

.mode-switch:active .toggle {
  opacity: 1;
}

@media (min-width: 576px) {
  .mode-switch:hover .toggle {
    opacity: 1;
  }
}

.mode-switch:active .toggle:after {
  opacity: 1;
}

@media (min-width: 576px) {
  .mode-switch:hover .toggle:after {
    opacity: 1;
  }
}

.mode-switch .toggle.active {
  opacity: 1;
}

.mode-switch .toggle:before {
  content: "";
  width: inherit;
  height: inherit;
  border-radius: inherit;
  position: absolute;
  left: 0;
  top: 0;
  transition: background-color 0.3s ease;
}

.mode-switch .toggle:after {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  margin: -3px 0 0 -3px;
  position: absolute;
  top: 50%;
  left: 50%;
  box-shadow: 0 -23px 0 var(--app-navbar-icon-color), 0 23px 0 var(--app-navbar-icon-color), 23px 0 0 var(--app-navbar-icon-color), -23px 0 0 var(--app-navbar-icon-color), 15px 15px 0 var(--app-navbar-icon-color), -15px 15px 0 var(--app-navbar-icon-color), 15px -15px 0 var(--app-navbar-icon-color), -15px -15px 0 var(--app-navbar-icon-color);
  transform: scale(0);
  transition: all 0.3s ease;
  opacity: 1;
}

.mode-switch .toggle.active {
  box-shadow: inset 20px -20px 0 0 var(--app-navbar-icon-color);
  transform: scale(0.5) rotate(0deg);
  transition: transform 0.3s ease 0.1s, box-shadow 0.2s ease 0s;
}

.mode-switch .toggle.active:before {
  background: var(--app-navbar-icon-color);
  transition: background-color 0.3s ease 0.1s;
}

.mode-switch .toggle.active:after {
  transform: scale(1);
  transition: transform 0.5s ease 0.15s, opacity .2s;
}



