/* Theme toggle button */
.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 1px solid rgba(42, 42, 42, 0.12);
  border-radius: 50%;
  background: transparent;
  color: inherit;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
  flex-shrink: 0;
}

.theme-toggle:hover {
  transform: translateY(-1px);
}

.theme-toggle i {
  font-size: 1.05rem;
  line-height: 1;
}

html[data-theme="dark"] .theme-toggle {
  border-color: rgba(255, 255, 255, 0.18);
  color: #f0ebe3;
}

html[data-theme="dark"] .theme-toggle:hover {
  background: rgba(255, 255, 255, 0.08);
}

.theme-toggle--floating {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 120;
  background: #fff;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
}

html[data-theme="dark"] .theme-toggle--floating {
  background: #2b2f2c;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}

.menu-wrapper .theme-toggle {
  margin-right: 12px;
}

.v2-header__utilities .theme-toggle {
  margin-right: 0;
}

.v3-header__utilities .theme-toggle {
  margin-right: 0;
}

@media (max-width: 991px) {
  .v2-header__utilities .theme-toggle,
  .v3-header__utilities .theme-toggle {
    align-self: center;
  }
}
