.form-create-container {
  padding: 16px;

  .form-create-alert {
    margin-bottom: 16px;
  }

  .form-designer-wrapper {
    min-height: calc(100vh - 350px);
    border: 1px dashed #d9d9d9;
    border-radius: 4px;
    background: #fafafa;
  }

  .form-designer-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    height: calc(100vh - 350px);
    
    .placeholder-content {
      text-align: center;
      color: #999;

      h3 {
        font-size: 18px;
        color: #666;
        margin-bottom: 16px;
      }

      p {
        margin-bottom: 8px;
      }

      ul {
        list-style: none;
        padding: 0;
        margin-top: 16px;

        li {
          padding: 4px 0;
          color: #1890ff;
        }
      }
    }
  }

  .form-json-preview {
    margin-top: 16px;
    padding: 16px;
    background: #f5f5f5;
    border-radius: 4px;

    h4 {
      margin-bottom: 8px;
      color: #333;
    }

    pre {
      margin: 0;
      padding: 12px;
      background: #fff;
      border: 1px solid #e8e8e8;
      border-radius: 4px;
      max-height: 300px;
      overflow: auto;
      font-size: 12px;
      white-space: pre-wrap;
      word-break: break-all;
    }
  }
}

// 暗色主题适配
.ant-layout-content[data-theme='dark'] {
  .form-create-container {
    .form-designer-wrapper {
      background: #1f1f1f;
      border-color: #434343;
    }

    .form-designer-placeholder {
      .placeholder-content {
        color: #8c8c8c;

        h3 {
          color: #d9d9d9;
        }
      }
    }

    .form-json-preview {
      background: #262626;

      h4 {
        color: #d9d9d9;
      }

      pre {
        background: #1f1f1f;
        border-color: #434343;
        color: #d9d9d9;
      }
    }
  }
}
