.container {
  animation: fadeIn 0.3s ease-in-out;
  padding: 16px;
  position: relative;
  border-radius: 8px;
  font-family: var(--vscode-font-family);
  color: var(--vscode-foreground);
  overflow-y: auto;
  width: 100%;
  height: 100%;
}
.container::after {
  content: "";
  display: block;
  position: absolute;
  inset: 0;
  z-index: -1;
  background-color: var(--vscode-sideBar-background);
  opacity: 0.6;
}

.form {
  display: flex;
  flex-direction: column;
  gap: 20px;
  min-height: 100%;
}

.title {
  margin: 0 0 4px 0;
  font-size: 18px;
  font-weight: 600;
  color: var(--vscode-foreground);
}

.contextInfo {
  background: var(--vscode-input-background);
  border: 1px solid var(--vscode-input-border);
  border-radius: 4px;
  padding: 12px;
  margin: 8px 0 16px 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.contextItem {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 12px;
  color: var(--vscode-descriptionForeground);
  word-break: break-all;
  overflow-wrap: break-word;
}

.contextItem code {
  background: var(--vscode-textCodeBlock-background);
  padding: 2px 6px;
  border-radius: 3px;
  font-family: var(--vscode-editor-font-family);
  font-size: 11px;
  color: var(--vscode-textPreformat-foreground);
  word-break: break-all;
  overflow-wrap: break-word;
}

.helpText {
  font-size: 11px;
  color: var(--vscode-descriptionForeground);
  font-style: italic;
  margin-top: 4px;
}

.helpText code {
  background: var(--vscode-textCodeBlock-background);
  padding: 2px 4px;
  border-radius: 3px;
  font-family: var(--vscode-editor-font-family);
  font-size: 10px;
  word-break: break-all;
  overflow-wrap: break-word;
}

.actionHelp {
  font-size: 11px;
  color: var(--vscode-descriptionForeground);
  text-align: center;
  margin-top: 4px;
  font-style: italic;
}

.bannerError {
  padding: 1rem 0.5rem;
  border-radius: 5px;
  line-height: 2;
  font-size: 0.8rem;
  background-color: var(--vscode-input-background);
  color: var(--vscode-descriptionForeground);
  margin: 1rem 0;
  max-width: 100%;
  overflow-wrap: break-word;
  word-break: break-word;
}

.bannerError .codicon {
  vertical-align: middle;
  position: relative;
  top: -1px;
  margin-right: 0.8rem;
  font-size: 1rem;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.label {
  font-size: 13px;
  font-weight: 500;
  color: var(--vscode-foreground);
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.description {
  font-size: 11px;
  font-weight: 400;
  color: var(--vscode-descriptionForeground);
  font-style: italic;
}

.toggleContainer {
  display: flex;
  justify-content: flex-end;
}

.customInputContainer {
  display: flex;
  gap: 8px;
  align-items: center;
}

.customInputContainer .input {
  flex: 1;
}

.backButton {
  background: var(--vscode-button-secondaryBackground);
  color: var(--vscode-button-secondaryForeground);
  border: 1px solid var(--vscode-button-border);
  border-radius: 4px;
  padding: 8px 12px;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 37px; /* Match input height */
}

.backButton:hover {
  background: var(--vscode-button-secondaryHoverBackground);
}

.input {
  background: var(--vscode-input-background);
  color: var(--vscode-input-foreground);
  border: 1px solid var(--vscode-input-border);
  border-radius: 4px;
  padding: 8px 12px;
  font-size: 13px;
  font-family: var(--vscode-font-family);
  outline: none;
  transition: border-color 0.2s ease;
}

.input:focus {
  border-color: var(--vscode-focusBorder);
  box-shadow: 0 0 0 1px var(--vscode-focusBorder);
  outline: none;
}

.input::placeholder {
  color: var(--vscode-input-placeholderForeground);
}

.submitButton {
  background: var(--vscode-button-background);
  color: var(--vscode-button-foreground);
  flex: 1;
  border: none;
  border-radius: 4px;
  padding: 10px 16px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.submitButton:active {
  transform: translateY(1px);
}
.submitButton:disabled {
  cursor: not-allowed;
}

/* Error states */
.inputError {
  border-color: var(--vscode-inputValidation-errorBorder) !important;
}

.inputError:focus {
  border-color: var(--vscode-inputValidation-errorBorder) !important;
  box-shadow: 0 0 0 1px var(--vscode-inputValidation-errorBorder) !important;
}

.errorMessage {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 4px;
  font-size: 12px;
  color: var(--vscode-inputValidation-errorForeground);
  line-height: 1.3;
  max-width: 100%;
  overflow-wrap: break-word;
  word-break: break-word;
}

.errorIcon {
  color: var(--vscode-inputValidation-errorBorder);
  vertical-align: middle;
  position: relative;
  top: -1px;
  margin-right: 0.1rem;
  font-size: 1rem;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.formActions {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  margin-top: auto;
}

.cancelButton {
  background-color: var(--vscode-button-secondaryBackground);
  color: var(--vscode-button-secondaryForeground);
  flex: 1;
  border: none;
  border-radius: 4px;
  padding: 10px 16px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.helpBtnWrapper {
  position: absolute;
  right: 16px;
  top: 16px;
  z-index: 10;
}
