@import "@/style/index";

.server-card {
  box-sizing: border-box;
  height: 182px;

  // background-color: skyblue;
  // border: 1.5px solid #52c41a
  border-radius: 12px;
  box-shadow: 0 8px 16px 0 rgb(0 0 0 / 10%);

  &_offline {
    background-color: #f5f5f5;

    // border: 1.5px solid #dcdcdc;
  }

  .server-header {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    width: 100%;
    height: 54px;
    padding: 16px;
    border-bottom: 1px solid #e0e0e0;

    .server-state {
      position: absolute;
      top: 0;
      right: 0;
      width: 48px;
      height: 24px;
      font-size: 14px;
      line-height: 24px;
      color: #fff;
      text-align: center;
      background-color: #52c41a;
      border-radius: 0 12px;

      &_offline {
        background-color: #dcdcdc;
      }
    }
  }

  .server-content {
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    height: 128px;
    padding: 16px;

    .server-content-left {
      width: 80px;
    }

    .server-content-right {
      flex: 1;
      padding-left: 12px;
    }
  }

  .rectProgress_box {
    padding: 4px 0;
    font-size: 12px;
    color: $--web-font1;
  }
}
