#avocado-sidebar {
  & a {
    color: white;
    padding: 12px 20px;
  }

  .sub-arrow {
    align-items: center;
    display: flex;
    line-height: 1;
    margin-block-end: -10px;
    margin-block-start: -10px;
    padding: 10px;
    padding-inline-end: 0;
    width: 20px;
    transition: transform 0.3s ease;

    svg {
      fill: white;
      transition: transform 0.3s ease;

      &.rotated {
        transform: rotate(180deg);
      }
    }
  }

  ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;

    & > .menu-item > a {
      display: flex;
      flex-direction: row;
      justify-content: space-between;
      align-items: center;
    }

    &.sub-menu {
      padding-left: 12px;
      margin-top: 10px;
      overflow: hidden;
      max-height: 1000px;
      opacity: 1;
      transition: max-height 0.4s ease, opacity 0.3s ease, margin-top 0.3s ease;

      &.collapsed {
        max-height: 0;
        opacity: 0;
        margin-top: 0;
        pointer-events: none;
      }

      & > li {
        & > a {
          width: 100%;
          border-radius: 4px;
          display: block;

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

          &.active {
            background-color: #d0d755;
            color: #3f4926;
          }
        }
      }
    }
  }

  .menu-item-content {
    display: flex;
    align-items: center;
    gap: 15px;
  }

  .menu-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    flex-shrink: 0;
  }

  .menu-label {
    flex: 1;
    line-height: 1.2;
  }

  .dashicons {
    font-size: 20px;
    width: 20px;
    height: 20px;
    line-height: 1;
    vertical-align: middle;
  }

  .menu-toggle {
    cursor: pointer;
    text-decoration: none;

    &:hover {
      background-color: rgba(255, 255, 255, 0.1);
    }
  }
}
