/* Stile del bottone. NON forziamo più position/top qui.
   L'asse X (left/right) resta come già avevi; top lo imposta il JS in coordinate documento. */

#themeToggle.theme-toggle {
  /* NON mettere position/top qui. Il JS li gestisce. */
  /* Mantieni pure il tuo left o right nel CSS (esempio): */
  left: 18px;

  z-index: 2147483647;
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;

  border-radius: 50%;
  border: 1px solid var(--muted-border, #333333);
  background: var(--card-bg, #1e1e1e);
  color: var(--text, #f5f5f5);

  box-shadow: 0 4px 10px rgba(0,0,0,0.08);
  cursor: pointer;
  padding: 0;
  margin: 0;

  user-select: none;
  -webkit-tap-highlight-color: transparent;

  transform: none;
}

#themeToggle.theme-toggle:hover {
  transform: none;
  box-shadow: 0 10px 22px rgba(0,0,0,0.14);
}

