/* Theme Controls - Collapsible and Minimal */
.theme-controls {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 1000;
  transition: all 0.3s ease;
}

.theme-controls.minimized {
  width: 48px;
  height: 48px;
}

.theme-controls.expanded {
  min-width: 200px;
}

.theme-toggle-button {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: rgba(2, 6, 23, 0.95);
  border: 1px solid rgba(30, 64, 175, 0.9);
  backdrop-filter: blur(10px);
  box-shadow: 0 8px 32px rgba(15, 23, 42, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 1.5rem;
  color: var(--text, #e5e7eb);
  margin-left: auto;
}

.theme-toggle-button:hover {
  border-color: rgba(56, 189, 248, 1);
  transform: scale(1.05);
  box-shadow: 0 12px 40px rgba(15, 23, 42, 0.9);
}

.theme-controls.minimized .theme-toggle-button {
  margin-left: 0;
}

.theme-controls-panel {
  display: none;
  flex-direction: column;
  gap: 12px;
  background: rgba(2, 6, 23, 0.95);
  border: 1px solid rgba(30, 64, 175, 0.9);
  border-radius: 12px;
  padding: 16px;
  backdrop-filter: blur(10px);
  box-shadow: 0 8px 32px rgba(15, 23, 42, 0.8);
  margin-top: 8px;
  min-width: 200px;
}

.theme-controls.expanded .theme-controls-panel {
  display: flex;
}

.theme-control-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.theme-control-label {
  font-size: 0.75rem;
  color: var(--muted, #94a3b8);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.theme-toggle {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid rgba(56, 189, 248, 0.5);
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 0.85rem;
}

.theme-toggle:hover {
  border-color: rgba(56, 189, 248, 1);
  background: rgba(15, 23, 42, 0.8);
}

.theme-toggle input[type="checkbox"] {
  width: 18px;
  height: 18px;
  cursor: pointer;
}

.theme-select {
  padding: 8px 12px;
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid rgba(56, 189, 248, 0.5);
  border-radius: 8px;
  color: var(--text, #e5e7eb);
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.theme-select:hover {
  border-color: rgba(56, 189, 248, 1);
  background: rgba(15, 23, 42, 0.8);
}

.theme-auto-badge {
  font-size: 0.7rem;
  color: var(--accent, #22d3ee);
  margin-top: 4px;
  font-style: italic;
}

.theme-controls.hidden {
  display: none;
}

@media (max-width: 768px) {
  .theme-controls {
    top: 10px;
    right: 10px;
  }
  
  .theme-controls-panel {
    padding: 12px;
    font-size: 0.8rem;
  }
  
  .theme-toggle-button {
    width: 40px;
    height: 40px;
    font-size: 1.2rem;
  }
}
