.theme-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  border: none;
  background: var(--color-surface);
  color: var(--color-text);
  cursor: pointer;
  transition: background-color 0.2s;
}

.theme-toggle:hover {
  background: var(--color-surface-raised);
}

.theme-toggle__icon {
  width: 1.25rem;
  height: 1.25rem;
}

/* Show/hide icons based on theme - use data-theme attribute */
[data-theme="dark"] .theme-toggle__icon--light,
[data-theme="light"] .theme-toggle__icon--dark {
  display: none;
}

/* Sidebar theme toggle styles */
.nav__item[data-action*="theme#toggle"] {
  cursor: pointer;
  display: flex;
  align-items: center;
  padding: var(--spacing-md);
  border-radius: var(--radius-md);
  margin-bottom: var(--spacing-md);
  transition: background-color 0.2s;
}

.nav__item[data-action*="theme#toggle"]:hover {
  background: var(--color-surface-hover);
}

.nav__item[data-action*="theme#toggle"] .nav__icon {
  margin-right: var(--spacing-md);
}

/* Only show the appropriate icon based on current theme - use data-theme attribute */
[data-theme="dark"] .nav__item[data-action*="theme#toggle"] .theme-toggle__icon--dark,
[data-theme="light"] .nav__item[data-action*="theme#toggle"] .theme-toggle__icon--light {
  display: block;
}

[data-theme="dark"] .nav__item[data-action*="theme#toggle"] .theme-toggle__icon--light,
[data-theme="light"] .nav__item[data-action*="theme#toggle"] .theme-toggle__icon--dark {
  display: none;
}

/* Transition styles */
.app-layout {
  transition: background-color 0.3s ease;
}

@media (prefers-reduced-motion: reduce) {
  .app-layout {
    transition: none;
  }
} 