/* ===== Theme Toggle ===== */
.theme-toggle {
  position: relative;
  width: 60px;
  height: 30px;
  background-color: var(--bg-tertiary);
  border-radius: 9999px;
  cursor: pointer;
  transition: background-color var(--transition-base);
  border: 1px solid var(--border-color);
}

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

.theme-toggle-slider {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 22px;
  height: 22px;
  background-color: var(--bg-primary);
  border-radius: 50%;
  transition: transform var(--transition-base);
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
}

[data-theme="dark"] .theme-toggle-slider {
  transform: translateX(30px);
}

/* Sun/Moon Icons using Unicode */
.theme-toggle-slider::before {
  content: '☀️';
}

[data-theme="dark"] .theme-toggle-slider::before {
  content: '🌙';
}

/* ===== Theme Transition ===== */
* {
  transition: background-color var(--transition-base), 
              color var(--transition-base), 
              border-color var(--transition-base);
}

/* Disable transitions during theme change for smoother experience */
.theme-transitioning * {
  transition: none !important;
}