/* Theme Toggle - Inherits from action-btn */
.theme-toggle {
  /* All styles inherited from .action-btn */
}

.theme-toggle-wrapper {
  position: relative;
}

/* 主题选择面板 */
.theme-selector-panel {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background-color: var(--color-bg-secondary);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  min-width: 280px;
  z-index: var(--z-popover);
  animation: fadeInScale var(--transition-fast);
}

@keyframes fadeInScale {
  from {
    opacity: 0;
    transform: scale(0.95) translateY(-10px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.theme-selector-header {
  padding: var(--spacing-sm) var(--spacing-md);
  border-bottom: 1px solid var(--color-border-light);
}

.theme-selector-title {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-text-primary);
  font-family: var(--font-ui);
}

.theme-list {
  padding: var(--spacing-xs);
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.theme-item {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
  padding: var(--spacing-sm) var(--spacing-md);
  background: transparent;
  border: none;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all var(--transition-fast);
  text-align: left;
  width: 100%;
}

.theme-item:hover {
  background-color: var(--color-bg-tertiary);
}

.theme-item.active {
  background-color: var(--color-accent-light);
  border: 1px solid var(--color-accent);
}

.theme-item-icon {
  font-size: 1.3rem;
  line-height: 1;
  flex-shrink: 0;
  width: 24px;
  text-align: center;
}

.theme-item-info {
  flex: 1;
  min-width: 0;
}

.theme-item-name {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--color-text-primary);
  margin-bottom: 2px;
  font-family: var(--font-ui);
}

.theme-item-desc {
  font-size: 0.75rem;
  color: var(--color-text-muted);
  line-height: 1.3;
}

.theme-color-preview {
  display: flex;
  gap: 3px;
  flex-shrink: 0;
}

.theme-color-bg,
.theme-color-accent {
  width: 16px;
  height: 16px;
  border-radius: 3px;
  border: 1px solid rgba(0, 0, 0, 0.1);
}
