/* CyberUniversity ThemeToggle.module.css adapted to the server-rendered DOM.
   Geometry, SVGs, tokens, motion and accessible action labels follow the source. */
.theme-toggle {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  flex: none;
  inline-size: 64px;
  block-size: 34px;
  padding: 0 9px;
  border-radius: var(--r-full);
  background: var(--glass-fill);
  border: 1px solid var(--glass-border);
  color: var(--color-text-muted);
  cursor: pointer;
}
.theme-toggle::before {
  content: '';
  position: absolute;
  inset-inline-start: 3px;
  inset-block-start: 3px;
  inline-size: 26px;
  block-size: 26px;
  border-radius: var(--r-full);
  background: var(--interactive-gradient);
  box-shadow: var(--shadow-button);
  transition: transform var(--dur-slow) var(--ease-spring);
}
html[data-resolved-theme='dark'] .theme-toggle::before { transform: translateX(30px); }
.theme-toggle:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}
.theme-icon {
  position: relative;
  inline-size: 15px;
  block-size: 15px;
  display: block;
}
html[data-resolved-theme='light'] .theme-icon:first-child,
html[data-resolved-theme='dark'] .theme-icon:last-child { color: var(--color-on-primary); }
@media (prefers-reduced-motion: reduce) {
  .theme-toggle::before { transition: none; }
}
@media (forced-colors: active) {
  .theme-toggle { background: ButtonFace; color: ButtonText; border-color: ButtonText; }
  .theme-toggle::before { background: Highlight; box-shadow: none; }
  html[data-resolved-theme='light'] .theme-icon:first-child,
  html[data-resolved-theme='dark'] .theme-icon:last-child { color: HighlightText; }
}
