/**
 * Copyright (c) 2025 Bytedance Ltd. and/or its affiliates
 * SPDX-License-Identifier: MIT
 */

.formContainer {
  margin: 8px 0;
}

.formTitle {
  font-size: 20px;
  font-weight: 600;
  color: #1a1a1a;
  margin-bottom: 24px;
  text-align: center;
}

.fieldGroup {
  margin-bottom: 8px;
  width: 358px;

  &:last-child {
    margin-bottom: 0;
  }
}

.fieldLabel {
  display: block;
  font-size: 14px;
  font-weight: 500;
  color: #333333;
  margin-bottom: 8px;
  line-height: 1.4;
}

.fieldInput {
  width: 100%;

  :global(.semi-input) {

    &:hover {
      border-color: #4096ff;
    }

    &:focus {
      border-color: #4096ff;
      box-shadow: 0 0 0 2px rgba(64, 150, 255, 0.1);
    }
  }

  :global(.semi-input-number) {
    width: 100%;

    &:hover {
      border-color: #4096ff;
    }

    &:focus-within {
      border-color: #4096ff;
      box-shadow: 0 0 0 2px rgba(64, 150, 255, 0.1);
    }
  }
}

.codeEditorWrapper {
  min-height: 100px;
  max-height: 200px;
  background: #fff;
  padding: 8px 8px 8px 4px;
  border-radius: 8px;
  border: 1px solid #7f92cd40;
  width: 348px;

  :global(.cm-editor) {
    height: 100% !important;
    overflow: auto !important;
  }

  :global(.cm-scroller) {
    min-height: 100px !important;
    max-height: 200px !important;
  }

  :global(.cm-content) {
    min-height: 100px !important;
    max-height: 200px !important;
  }

  :global(.cm-activeLine) {
    background-color: #efefef78;
  }

  :global(.cm-activeLineGutter) {
    background-color: #efefef78;
  }

  :global(.cm-gutters) {
    background-color: #fff;
    color: #000A298A;
    border-right-color: transparent;
    border-right-width: 0px;
  }
}

.fieldTypeIndicator {
  display: inline-block;
  padding: 2px 8px;
  font-size: 12px;
  font-weight: 500;
  border-radius: 4px;
}

.emptyState {
  text-align: center;
  padding: 20px 20px;
  color: #999999;
  font-size: 14px;

  .emptyText {
    font-weight: 500;
  }
}

.requiredIndicator {
  color: #ff4d4f;
  margin-left: 4px;
  font-weight: 500;
}
