.modelSelector {
  width: 100%;
}

.modelSelector :global(.ant-select-selector) {
  border-radius: 8px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  background: var(--color-bg-container);
  border: 1px solid var(--color-border);
}

.modelSelector:hover :global(.ant-select-selector) {
  border-color: var(--color-primary);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.modelSelector:focus :global(.ant-select-selector) {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 2px var(--color-primary-bg);
}

.modelDropdown {
  border-radius: 12px;
  overflow: hidden;
  max-height: 80vh !important;
  width: auto !important;
  min-width: 320px !important;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
  background: var(--color-bg-container) !important;
}

.modelDropdown :global(.ant-select-item-option-grouped) {
  padding-left: 20px;
  background: var(--color-bg-container) !important;
}

.modelDropdown :global(.rc-virtual-list) {
  max-height: 75vh !important;
  padding: 8px 0;
  background: var(--color-bg-container) !important;
}

.modelDropdown :global(.rc-virtual-list-holder-inner) {
  max-width: 500px !important;
  background: var(--color-bg-container) !important;
}

.modelDropdown :global(.ant-select-item) {
  background: var(--color-bg-container) !important;
}

.modelDropdown :global(.ant-select-item-option-active) {
  background: var(--color-primary-bg) !important;
}

.modelDropdown :global(.ant-select-item-option-selected) {
  background: var(--color-primary-bg) !important;
}

.groupLabel {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 16px;
  background: #00a2ff;
  border-bottom: 1px solid var(--color-border);
}

.groupIcon {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-primary);
}

.modelOption {
  padding: 12px 16px;
  transition: all 0.2s;
  cursor: pointer;
  border-radius: 6px;
  margin: 2px 8px;
  background: var(--color-bg-container);
}

.modelOption:hover {
  background: var(--color-primary-bg);
}

.modelName {
  font-size: 14px;
  font-weight: 500;
  color: var(--color-text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 4px;
}

.modelDescription {
  font-size: 12px;
  color: var(--color-text-secondary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.5;
}

.modelTag {
  display: inline-flex;
  align-items: center;
  font-size: 12px;
  color: var(--color-primary);
  background-color: var(--color-primary-bg);
  padding: 2px 8px;
  border-radius: 4px;
  margin-top: 4px;
  font-weight: 500;
}

.selectedModelName {
  font-size: 13px;
  font-weight: 500;
  color: var(--color-text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: flex;
  align-items: center;
  padding: 0 4px;
}

/* 暗黑模式适配 */
:global(.dark-theme) .modelName {
  color: var(--color-text);
}

:global(.dark-theme) .modelDescription {
  color: var(--color-text-secondary);
}

:global(.dark-theme) .modelDropdown {
  background: var(--color-bg-container) !important;
}

:global(.dark-theme) .modelOption:hover {
  background: var(--color-primary-bg);
} 