body, html {
  padding: 0;
  margin: 0;
  --hover-bg: #262837;
  --active-bg: #454758;
  --bg: #141417;
  --backgroundColor: #1B1B1F;
  --backgroundColorL1: #262837;
  --backgroundColorL2: #35374B;
  --primaryColor: #2BCBBB;
  --borderColor: #262837;
  --fontColor: white;
  --borderRadius: 8px;
  --box-shadow: 0 8px 18px 0 rgb(11 11 77 / 4%), 0 0 2px 0 rgb(16 16 83 / 16%);
  --cardBackground: #262837;
  --cardHover: #34374b;
  --transition: all ease .2s;
  -webkit-font-smoothing: antialiased;
  font-family: Arial, Helvetica, sans-serif;
  background-color: var(--bg);
  * {
    box-sizing: border-box;
  }
  #root {
    height: 100%;
    width: 100%;
  }
}

.tabManager {
  margin-left: 80px;
  color: white;
  margin-top: 6px;
  height: 24px;
  overflow: hidden;
  &.fullscreen {
    margin-left: 10px;
  }
  .drag-area {
    -webkit-app-region: drag;
    /* 指定拖动区域 */
    position: absolute;
    top: 0;
    height: 12px;
    left: 0;
    right: 0;
    z-index: -1;
  }
  .tab-list {
    user-select: none;
    display: flex;
    .tabs {
      display: flex;
      flex: 0;
    }
    .tab {
      flex: 1;
      max-width: 130px;
      padding: 0 8px 0 6px;
      position: relative;
      &::after {
        content: "";
        width: 2px;
        height: 16px;
        position: absolute;
        right: 0px;
        top: 5px;
        background-color: #454758;
        border-radius: 4px;
      }

      &:last-of-type, &.before-active, &.active{
        &::after {
          display: none;
        }
      }
      .tab-inner {
        display: flex;
        border-radius: 4px;
        font-size: 12px;
        justify-content: center;
        padding-right: 4px;
        > div {
          height: 24px;
          line-height: 24px;
        }
        .title {
          flex: 1;
          word-break: keep-all;
          overflow: hidden;
          text-overflow: ellipsis;
        }
        .close {
          position: relative;
          display: flex;
          justify-content: center;
          align-items: center;
          .closeIcon {
            border-radius: 14px;
            width: 14px;
            height: 14px;
            display: flex;
            justify-content: center;
            align-items: center;
            &:hover {
              background-color: #3d3f4e;
            }
            svg {
              transform: scale(1.5);
            }
          }
          &::before {
            content: "";
            width: 10px;
            height: 40px;
            background: linear-gradient(268deg, var(--bg) 1.89%, rgba(255, 255, 255, 0.00) 98.61%);
          }
        }
      }

      &:hover {
        .tab-inner {
          background-color: var(--hover-bg);
          .close::before {
            background: linear-gradient(268deg, var(--hover-bg) 1.89%, rgba(255, 255, 255, 0.00) 98.61%);
          }
        }

      }

      &.active {
        .tab-inner {
          background-color: var(--active-bg);
          .close::before {
            background: linear-gradient(268deg, var(--active-bg) 1.89%, rgba(255, 255, 255, 0.00) 98.61%);
          }
        }

      }
    }
    .blank {
      -webkit-app-region: drag;
      flex: 1;
    }
  }
  &.windows {
    margin-left: 0;
    margin-right: 100px;
  }
}


.actions {
  display: flex;
  border-radius: 8px;
  border: solid 1px #454758;
  margin-right: 10px;
  .action {
    border-radius: 4px;
    user-select: none;
    padding: 0px 1px;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: var(--transition);
    user-select: none;
    font-size: 12px;
    height: 22px;

    &:hover {
      background-color: var(--backgroundColorL2);
    }

    .icon {
      display: flex;
      justify-content: center;
      align-items: center;
    }
  }
  .action-comfyui-status, .action-comfyui-queue {
    font-size: 10px;
    border-right: solid 1px #454758;
    padding-right: 4px;
    .icon {
      transform: scale(.8);
    }
  }

  .action-comfyui-queue {
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
  }

  .action-comfyui-status {
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
    border-right: transparent;
  }

  .status {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 24px;
    height: 24px;
    .span {
      border-radius: 12px;
      width: 6px;
      height: 6px;
      box-sizing: content-box;
      border: 2px solid rgb(44 44 44 / 54%);
      background: #2ABDAE;
    }
  }

}

.wiondows-window-controller {
  position: fixed;
  top: 4px;
  right: 4px;
  display: flex;
  justify-content: center;
  align-items: center;
  * {
    user-select: none;
  }
  >div {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-left: 4px;
    width: 28px;
    height: 28px;
    border-radius: 4px;
    background-color: transparent;
    transition: var(--transition);
    &:hover {
      background-color: var(--hover-bg);
    }
  }
}