.sidebar{
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    width: em(250);
    gap: em(24);
    flex: 0 0 auto;
    &__heading{
        position: relative;
        width: 100%;
        display: flex;
        align-items: center;
        justify-content: space-between;
        cursor: pointer;
        background-color: transparent;
        transition: color .2s ease-in-out;
        img{
            width: em(16);
            height: em(10);
            object-fit: contain;
            transform: scaleY(1);
            transition: transform .2s ease-in-out;
        }
        &:hover{
            color: $main-color;
        }
        &.active{
            img{
                transform: scaleY(-1);
            }
        }
    }
    &__items{
        position: relative;
        width: 100%;
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        justify-content: flex-start;
        gap: em(4);
        // overflow: hidden;
        height: 0;
        @include transition(300ms, height);
    }
    &__item{
        position: relative;
        width: 100%;
        background-color: $main-tint-200;
        border-radius: em(8);
        padding: em(8);
        pointer-events: none;
        user-select: none;
        opacity: 0;
        transform: translateY(em(-10));
        transition: .2s ease-in-out;
        border: em(1) solid $main-tint-200;
        span{
            font-size: em(14);
            line-height: 1.2;
            font-weight: 600;
        }
        &.anim{
            opacity: 1;
            cursor: pointer;
            pointer-events: unset;
            user-select: unset;
            transform: translateY(em(0));
        }
        &:hover{
            border: em(1) solid $main-color;
        }
    }
}

@media(max-width:1024px) and (orientation:portrait){
    .sidebar{
        width: 100%;
        padding: em(18);
        background: #202227;
        border-radius: em(16);
        gap: 0;
        &__heading{
            transition: margin .3s ease-in-out;
            &.active{
                margin-bottom: em(20);
            }
        }
        &__items{
            overflow: hidden;
        }
    }
}

