@use "../components/tool-container/tool-container.component.scss";

.main-window-box {
  height: 100vh;
  width: 100vw;
  border-radius: 5px;
  overflow: hidden;

  .content-box {
    height: calc(100vh - 70px);
    width: 100%;
    position: relative;
  }
}

// .content {
//   overflow: hidden;
//   position: relative;
// }


app-blockly-editor {
  width: 100%;
  height: 100%;
  // display: block;
}

app-guide {
  width: 100%;
  height: 100%;
  // display: block;
}

.middle-box {
  width: 100%;
  height: 100%;
  position: relative;
  min-height: 0;

  ngx-simplebar {
    height: 100%;
    width: 100%;

    ::ng-deep {
      .simplebar-content-wrapper {
        height: 100%;
      }

      .simplebar-content {
        height: 100%;
      }
    }
  }
}

.bottom-box {
  width: 100%;
  height: 100%;
  position: relative;

  .tool-container {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;

    .header {
      display: flex;
      justify-content: space-between;
      align-items: center;
      padding: 8px 0px;
      border-bottom: 1px solid var(--border-color);
      background: var(--bg-color);

      nz-tabset {
        ::ng-deep {
          nz-tabs-nav {
            height: 30px;
            margin: 0 !important;
          }

          .ant-tabs-tab {
            font-size: 12px !important;
            margin: 0 !important;

            button {
              padding: 0 10px;
              color: #a5a5a5;
            }
          }

          .ant-tabs-ink-bar {
            height: 1px !important;
          }

          .ant-tabs-tab-active {
            button {
              color: #fff !important;
            }
          }
        }
      }

      .tool-btns {
        display: flex;

        ::ng-deep {
          .btn {
            width: 30px;
            height: 30px;

            &:hover {
              background: #3a3c3f;
            }
          }
        }
      }
    }

    .content {
      flex: 1;
      position: relative;
      overflow: hidden;

      .component-container {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;

        app-log,
        app-terminal {
          display: block;
          width: 100%;
          height: 100%;
        }
      }
    }
  }
}

.right-box {
  width: 100%;
  height: 100%;
  position: relative;
}

nz-layout {
  height: 100%;

  nz-content {
    height: 100%;
  }

  .editor-box {
    height: 100%;
    width: 100%;
  }
}

nz-content {
  display: flex;
  flex-direction: column;
}

nz-content>div {
  width: 100%;
}

nz-content .resizable-box {
  flex: none;
}

nz-content,
nz-header,
::ng-deep nz-sider>.ant-layout-sider-children {
  display: flex;
  align-items: center;
  justify-content: center;
}

.sider-resize-line {
  height: 100%;
  width: 5px;
  border-right: 2px solid #222427;
}

.content-resize-line {
  width: 100%;
  height: 5px;
  border-bottom: 2px solid #222427;
}