.theme-selector-container {
  position: relative;
  display: inline-flex;
}

.theme-dropdown {
  position: relative;
  display: inline-flex;
}

.theme-trigger {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--glass-border, rgba(255,255,255,0.08));
  border-radius: 8px;
  color: var(--text-main, #e2e8f0);
  padding: 0.35rem 0.6rem;
  font-size: 0.78rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
  font-family: inherit;
  line-height: 1.4;
}

.theme-trigger:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--accent-blue);
}

.theme-chevron {
  font-size: 0.6rem;
  opacity: 0.5;
  margin-left: 3px;
}

.theme-menu {
  display: none;
  position: fixed;
  background: var(--bg-secondary, #1a2540);
  border: 1px solid var(--glass-border, rgba(255,255,255,0.12));
  border-radius: 12px;
  min-width: 200px;
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.7);
  z-index: 10000;
  overflow: hidden;
  animation: themeDropIn 0.15s ease;
}

.theme-dropdown.open .theme-menu {
  display: block;
}

@keyframes themeDropIn {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: translateY(0); }
}

.theme-option {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0.55rem 1rem;
  cursor: pointer;
  transition: background 0.15s ease;
  font-size: 0.82rem;
  color: var(--text-main, #e2e8f0);
  text-decoration: none;
  border: none;
  background: transparent;
  width: 100%;
  text-align: left;
  font-family: inherit;
}

.theme-option:hover {
  background: rgba(255, 255, 255, 0.06);
}

.theme-option.theme-active {
  background: rgba(99, 102, 241, 0.15);
  color: var(--accent-blue);
}

.theme-option-icon {
  width: 16px;
  text-align: center;
}

.theme-check {
  margin-left: auto;
  font-size: 0.7rem;
  color: var(--accent-blue);
}
