/* ============================================================
   TunaGrow CBO — Theme Switcher Styles
   File: css/theme-switcher.css
   ============================================================ */

#theme-switcher {
  position: relative;
  margin-left: 8px;
}

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

.theme-toggle-btn {
  background: transparent;
  border: 1.5px solid var(--border);
  border-radius: 50%;
  width: 40px;
  height: 40px;
  font-size: 1.2rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.25s;
  color: var(--text);
}

.theme-toggle-btn:hover {
  background: var(--surface);
  transform: scale(1.1);
}

.theme-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 8px;
  min-width: 200px;
  box-shadow: 0 8px 32px var(--shadow);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.25s;
  z-index: 1000;
}

.theme-dropdown.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.theme-option {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 10px 12px;
  border: none;
  background: transparent;
  color: var(--text);
  font-family: 'DM Sans', sans-serif;
  font-size: 0.9rem;
  cursor: pointer;
  border-radius: 8px;
  transition: all 0.2s;
}

.theme-option:hover {
  background: var(--surface);
}

.theme-option.active {
  background: var(--surface);
  font-weight: 500;
}

.theme-swatch {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 2px solid var(--border);
  flex-shrink: 0;
}

.theme-label {
  flex: 1;
  text-align: left;
}

.theme-icon {
  font-size: 1rem;
}

@media (max-width: 768px) {
  .theme-dropdown {
    right: -10px;
  }
}
