/* Theme Picker Component */
.theme-picker {
  display: inline-flex;
  align-items: center;
  background: #f3f6fc;
  border: 1px solid rgba(59, 130, 246, 0.2);
  border-radius: 999px;
  padding: 4px;
  position: relative;
  gap: 0;
  cursor: pointer;
  user-select: none;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.theme-picker:hover {
  background: #e8eef9;
  border-color: rgba(59, 130, 246, 0.3);
}

.theme-picker-option {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px 16px;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
  z-index: 1;
  color: #5b6473;
  font-weight: 600;
  font-size: 0.9rem;
  min-width: 44px;
  height: 36px;
  /* Remove default button styling - override global button styles */
  background: none !important;
  border: none !important;
  margin: 0;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  font-family: inherit;
  outline: none;
  box-shadow: none;
}

/* Active state must override the !important background */
.theme-picker-option.active {
  background: #2563eb !important;
  color: #ffffff !important;
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.25);
}

.theme-picker-option svg {
  width: 18px;
  height: 18px;
  stroke-width: 2;
  transition: color 0.2s ease;
}

.theme-picker-option.active:hover {
  background: #1d4ed8 !important;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.theme-picker-option:not(.active):hover {
  color: #1d4ed8;
  background: rgba(59, 130, 246, 0.08);
}

/* Dark mode styles for the picker itself */
@media (prefers-color-scheme: dark) {
  .theme-picker {
    background: #2f2f36;
    border-color: rgba(102, 179, 255, 0.3);
  }

  .theme-picker:hover {
    background: #3a3a44;
    border-color: rgba(102, 179, 255, 0.4);
  }

  .theme-picker-option {
    color: #b6bdc7;
  }

  .theme-picker-option.active {
    background: #2563eb !important;
    color: #ffffff !important;
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.4);
  }

  .theme-picker-option.active:hover {
    background: #1d4ed8 !important;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.5);
  }

  .theme-picker-option:not(.active):hover {
    color: #8ecfff;
    background: rgba(59, 130, 246, 0.15);
  }
}

/* When dark theme is manually applied */
body[data-theme="dark"] .theme-picker {
  background: #2f2f36;
  border-color: rgba(102, 179, 255, 0.3);
}

body[data-theme="dark"] .theme-picker:hover {
  background: #3a3a44;
  border-color: rgba(102, 179, 255, 0.4);
}

body[data-theme="dark"] .theme-picker-option {
  color: #b6bdc7;
}

body[data-theme="dark"] .theme-picker-option.active {
  background: #2563eb !important;
  color: #ffffff !important;
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.4);
}

body[data-theme="dark"] .theme-picker-option.active:hover {
  background: #1d4ed8 !important;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.5);
}

body[data-theme="dark"] .theme-picker-option:not(.active):hover {
  color: #8ecfff;
  background: rgba(59, 130, 246, 0.15);
}

/* When light theme is manually applied */
body[data-theme="light"] .theme-picker {
  background: #f3f6fc;
  border-color: rgba(59, 130, 246, 0.2);
}

body[data-theme="light"] .theme-picker:hover {
  background: #e8eef9;
  border-color: rgba(59, 130, 246, 0.3);
}

body[data-theme="light"] .theme-picker-option {
  color: #5b6473;
}

body[data-theme="light"] .theme-picker-option.active {
  background: #2563eb !important;
  color: #ffffff !important;
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.25);
}

body[data-theme="light"] .theme-picker-option.active:hover {
  background: #1d4ed8 !important;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

body[data-theme="light"] .theme-picker-option:not(.active):hover {
  color: #1d4ed8;
  background: rgba(59, 130, 246, 0.08);
}











