/* Theme Controls Styles */
.theme-controls {
  position: fixed;
  bottom: 10px;
  right: 10px;
  padding: 5px;
  display: flex;
  align-items: center;
  gap: 5px; /* Small gap to prevent overlap issues */
}

.settings-icon {
  font-size: 20px;
  color: var(--text-silent);
  transition: color 0.3s ease;
  padding: 5px; /* Increase hover area */
}

.theme-controls:hover .settings-icon {
  color: var(--text-secondary); /* Brighter on hover */
}

.theme-toggle-group {
  display: flex;
  border-radius: 4px;
  overflow: hidden;
  background: #f0f0f0;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.1);
  opacity: 0;
  transform: translateX(10px);
  transition:
    opacity 0.3s ease,
    transform 0.3s ease;
  position: absolute;
  right: 40px; /* Adjusted to account for padding */
}

body.dark .theme-toggle-group {
  background: #333;
}

.theme-controls:hover .theme-toggle-group {
  opacity: 1;
  transform: translateX(0);
}

.theme-toggle-group input[type='radio'] {
  display: none;
}

.theme-toggle-group label {
  padding: 6px 10px;
  cursor: pointer;
  transition: all 0.2s ease;
  border-right: 1px solid var(--border-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
}

.theme-toggle-group label:last-child {
  border-right: none;
}

.theme-toggle-group input[type='radio']:checked + label {
  background: #007bff;
  color: white !important; /* Override inline color when checked */
}

.theme-toggle-group label:hover:not(:checked + label) {
  background: #e0e0e0;
}

body.dark .theme-toggle-group label:hover:not(:checked + label) {
  background: #444;
}

.theme-toggle-group i {
  font-size: 16px;
}
