/* Theme Toggle Button */
.theme-toggle-btn {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md, 8px);
  color: var(--text-muted, #64748B);
  background: none;
  border: none;
  cursor: pointer;
  transition: all var(--transition-fast, 150ms ease-in-out);
  position: relative;
  margin-left: var(--spacing-sm, 8px);
}

.theme-toggle-btn:hover {
  background-color: var(--surface-hover, #F1F5F9);
  color: var(--text, #0F172A);
}

.theme-toggle-btn:active {
  transform: scale(0.96);
}

.theme-icon {
  width: 20px;
  height: 20px;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.theme-icon-sun {
  display: block;
}

.theme-icon-moon {
  display: none;
}

[data-theme="dark"] .theme-icon-sun {
  display: none;
}

[data-theme="dark"] .theme-icon-moon {
  display: block;
}

/* RTL Support */
[dir="rtl"] .theme-toggle-btn {
  margin-left: 0;
  margin-right: var(--spacing-sm, 8px);
}
