.popup-container {
  width: 320px;
  padding: 16px;
  background-color: #1f2937;
  color: #f3f4f6;
}

h2 {
  font-size: 20px;
  font-weight: 600;
  margin: 0 0 16px;
  color: #f3f4f6;
}

.settings-section {
  margin-bottom: 20px;
}

.settings-section:last-child {
  margin-bottom: 0;
}

.settings-section label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
  color: #d1d5db;
  font-size: 14px;
}

.api-key-input {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #2c2d30;
  border-radius: 8px;
  font-size: 14px;
  background-color: #2c2d30;
  color: #f3f4f6;
  transition: all 0.2s ease;
  margin-bottom: 16px;
  font-family: "Menlo", "Monaco", "Courier New", monospace;
  box-sizing: border-box;
}

.api-key-input:focus {
  outline: none;
  border-color: #ef4444;
  box-shadow: 0 0 0 2px rgba(239, 68, 68, 0.2);
}

.api-key-input::placeholder {
  color: #6b7280;
}

.provider-option {
  width: 100%;
  box-sizing: border-box;
  padding: 12px 16px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  color: #d1d5db;
  background-color: #2c2d30;
  border: 1px solid transparent;
  margin-bottom: 12px;
}

.provider-option:last-child {
  margin-bottom: 0;
}

.provider-option:hover {
  background-color: #374151;
  transform: translateX(4px);
}

.provider-option.selected {
  background-color: #374151;
  color: #f3f4f6;
  font-weight: 600;
  border-color: #ef4444;
  position: relative;
}

.provider-option.selected::before {
  content: "✓";
  position: absolute;
  right: 16px;
  color: #ef4444;
}

.model-select {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #2c2d30;
  border-radius: 8px;
  font-size: 14px;
  background-color: #2c2d30;
  color: #f3f4f6;
  transition: all 0.2s ease;
  margin-bottom: 16px;
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12' fill='none'%3E%3Cpath d='M2.5 4.5L6 8L9.5 4.5' stroke='%23ef4444' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 36px;
}

.model-select:focus {
  outline: none;
  border-color: #ef4444;
  box-shadow: 0 0 0 2px rgba(239, 68, 68, 0.2);
}

.model-select:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

.model-select option {
  background-color: #1f2937;
  color: #f3f4f6;
  padding: 8px;
}

.error-message {
  color: #ef4444;
  font-size: 14px;
  margin-top: 8px;
  padding: 8px;
  background-color: rgba(239, 68, 68, 0.1);
  border-radius: 4px;
  border: 1px solid rgba(239, 68, 68, 0.2);
}
