@import "./../common/graph.scss";
@import "./../../variable/config.scss";

$drag-color1: #daf4ff;
$drag-color2: #c6c6c6;
$drag-color3: #2d7fec;

$drag-gohst1: #562984;
$drag-gohst2: #f4e2c9;

.amos-dragable-ghost {
  background-color: $drag-gohst1;
  opacity: 0.2;
}

.amos-dragable-drager {
  background: $drag-color2;
}


%desktop-tab-active {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  border-bottom: 2px solid #fec006;
  content: "";
  transform: scale(1);
  box-shadow: 0 -2px 8px rgba(254, 192, 6, 0.8);
  transition: transform;
  transition-duration: 0.2s;
  backface-visibility: hidden;
}

.center-tab-item {
  position: relative;
  display: inline-block;
  height: 0.36rem;
  padding: 0.06rem 0.12rem;
  margin-right: 1px;
  color: white;
  text-align: center;
  cursor: pointer;

  input {
    width: 0.96rem;
    height: 0.24rem;
    padding: 0 0.06rem;
    color: black;
  }
}

.center-tab-item-setting-menu {
  background-color: rgba(0, 0, 0, 0.3);
  border-radius: 0;

  li {
    background: rgba(0, 0, 0, 0.3) !important;
    border-radius: 0 !important;

    &:hover {
      background: rgba(82, 108, 253, 0.3) !important;
    }
  }

  .ant-dropdown-menu-item-divider {
    background: white !important;
  }

  a {
    color: white;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 0 !important;
  }
}

.home-content {
  position: relative;
  width: 93%;
  height: 100%;
  margin: 0 auto;
}

.personal-center {
  position: absolute;
  top: 0;
  width: 100%;
  height: 100%;
  padding: 0.12rem 0;

  .center-header {
    position: relative;
    margin-bottom: 0.12rem;

    .desktop-tab {
      min-width: 0.96rem;
      line-height: 0.24rem;
      box-shadow: 0 2px 8px rgba(43, 22, 54, 0.2);

      &:hover {
        &::after {
          @extend %desktop-tab-active;
        }
      }

      &.active-tab {
        &::after {
          @extend %desktop-tab-active;
        }
      }
    }

    .center-tab {
      min-width: 0.36rem;
      background: rgba(0, 0, 0, 0.3);
      box-shadow: 0 2px 8px rgba(43, 22, 54, 0.2);

      &:hover {
        background: rgba(82, 108, 253, 0.3);
      }
    }
  }

  .center-body {
    position: relative;
    height: calc(100% - 0.72rem);
    overflow: hidden;

    .scene-graph-container {
      width: 100%;
      height: 100%;
      // overflow-y: auto;
      // overflow-x: hidden;

      .layout-wrapper {
        width: 100%;
        height: 100%;

        .card-item-layout {
          display: inline-block;
          width: 33.3%;
          min-width: 4.32rem;
          padding: 0 5px;
          list-style: outside none none;
          transform: translateZ(0);
          box-sizing: border-box;
          transition: box-shadow 0.3s ease-in-out;

          .card-frame {
            width: 100%;
            margin: 0;
          }

          &.drag-card-add {
            color: white;
          }
        }
      }
    }
  }
}
