/* ============ THEME TOGGLE ============ */
.theme-toggle{
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  padding: 0;
  border-radius: 8px;
  border: none;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: background-color 0.2s ease, color 0.2s ease, transform 0.15s ease;
}
.theme-toggle:hover{
  color: var(--accent);
  background-color: var(--line);
}
.theme-toggle:active{
  transform: scale(0.92);
}

.theme-icon{
  position: absolute;
  width: 17px;
  height: 17px;
  stroke-width: 1.75;
  transition: opacity 0.3s ease, transform 0.4s ease;
}
.theme-icon-sun{ opacity: 1; transform: rotate(0deg) scale(1); }
.theme-icon-moon{ opacity: 0; transform: rotate(-45deg) scale(0.5); }
:root[data-theme="dark"] .theme-icon-sun{ opacity: 0; transform: rotate(45deg) scale(0.5); }
:root[data-theme="dark"] .theme-icon-moon{ opacity: 1; transform: rotate(0deg) scale(1); }
