.uml-layout {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
  min-height: 400px;

  .toolbar {
    padding: 12px;
    background: #fafafa;
    border-bottom: 1px solid #d9d9d9;
    flex-shrink: 0;
  }

  .graph-container {
    flex: 1;
    position: relative;
    min-height: 300px;
    width: 100%;
    border: 1px solid #e8e8e8;
    background: #ffffff;
    overflow: hidden;

    :deep(.x6-graph),
    :deep(.x6-graph-svg) {
      width: 100% !important;
      height: 100% !important;
      display: block;
    }
  }
}

// 抽屉编辑器样式 - 使用单独的样式块避免 scoped 问题
.class-editor {
  padding: 20px;
  height: calc(100vh - 60px);
  overflow-y: auto;

  .section {
    max-height: 300px;
    overflow-y: auto;
    padding-right: 4px;

    &::-webkit-scrollbar {
      width: 6px;
    }

    &::-webkit-scrollbar-thumb {
      background: #d4d4d4;
      border-radius: 3px;
    }

    .item {
      margin-bottom: 8px;
    }

    .n-card {
      border: 1px solid #e8e8e8;

      .n-card-header {
        padding: 8px 12px;
        background: #fafafa;
        border-bottom: 1px solid #e8e8e8;
      }

      .n-card__content {
        padding: 12px;
      }
    }

    .n-form-item {
      margin-bottom: 0;

      .n-form-item-label {
        font-size: 12px;
        margin-bottom: 4px;
        color: #666;
      }
    }
  }
}