.sider {
  display: flex;

  box-shadow: 0 2px 5px 0 rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease-in-out;
  background-color: var(--color-bg-2);
}

.menu-container {
  border-right: 1px solid #cccc;

  .menu-item {
    padding: 12px 4px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease-in-out;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;

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

    &-active {
      background-color: var(--color-fill-2);
      color: rgb(var(--primary-6));
    }

    .menu-item-content {
      display: flex;
      flex-direction: column;
      align-items: center;
      width: 100%;

      .menu-item-icon {
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 20px;
        min-width: 16px;
        margin-bottom: 10px;
      }

      .menu-item-text {
        font-size: 14px;
        text-align: center;
        overflow: hidden;
        display: -webkit-box;
        -webkit-line-clamp: 4;
        -webkit-box-orient: vertical;
        line-height: 1.2;
        width: 100%;
        padding: 0 5px;
      }
    }
  }
}

.sub-menu {
  width: 100%;
  height: 100%;
  background-color: #fcfcfc;
  border-right: 1px solid #ddd;
  position: relative;
  border-left: 1px solid #ddd;
  display: flex;
  flex-direction: column;

  .handle-box {
    display: flex;
    padding: 10px;
  }
}

.collapse-btn {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #fff;
  border: 1px solid #e5e5e5;
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.2s ease-in-out;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  z-index: 10;

  &:hover {
    background-color: #f5f5f5;
    border-color: #d0d0d0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  }

  &:active {
    transform: translateX(-50%) scale(0.95);
  }
}

.context-menu {
  background: #fff;
  border-radius: 4px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  padding: 4px 0;

  .context-menu-dropdown {
    border: none;
    box-shadow: none;
    padding: 0;

    :global {
      .arco-menu-inner {
        padding: 4px 0;
      }

      .arco-menu-item {
        padding: 5px 12px;
        margin: 0;
        height: 32px;
        line-height: 22px;

        &:hover {
          background-color: #f5f5f5;
        }
      }
    }
  }
}