@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: 3rem;
  padding: 0.5rem 1rem;
  margin-right: 1px;
  color: white;
  text-align: center;
  cursor: pointer;

  input {
    width: 8rem;
    height: 2rem;
    padding: 0 0.5rem;
    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: 1rem 0;

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

    .desktop-tab {
      min-width: 8rem;
      line-height: 2rem;
      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: 3rem;
      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% - 6rem);
    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: 36rem;
          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;
          }
        }
      }
    }
  }
}
