.layout-sidebar {
    position: sticky;
    left: 0;
    top: 6rem;
    height: calc(100vh - 9rem);
    user-select: none;
    transition: transform .4s cubic-bezier(.05,.74,.2,.99), opacity .3s;
    display: flex;
    flex-direction: column;
    padding: 0 0 0 0;
    flex: 0 0 250px;
    margin-right: 4rem;
    overflow: auto;

    .logo {
        display: flex;
        justify-content: center;
    }

    nav {
        padding: 0 1rem 0 0;
        margin: 0;
        flex-grow: 1;
    }

    .layout-menu {
        list-style: none;
        margin: 0;
        padding: 0;

        > li {
            margin-bottom: .25rem;
            
            > button, 
            > a {
                display: flex;
                width: 100%;
                align-items: center;
                padding: .5rem 1px;
                color: var(--text-color);
                font-weight: 600;
                transition: outline-color 0.2s;
                outline-color: transparent;
                position: relative;

                .menu-icon {
                    width: 2rem;
                    height: 2rem;
                    border-radius: 6px;
                    margin-right: .5rem;
                    border: 1px solid var(--border-color);
                    display: inline-flex;
                    align-items: center;
                    justify-content: center;
                    transition: all .2s;
                    position: relative;
                    background-color: transparent;
    
                    i {
                        color: var(--text-color);
                        transition: all .2s;
                    }
                }
    
                .menu-toggle-icon {
                    color: var(--text-secondary-color);
                    margin-left: auto;
                }

                &:hover {
                    .menu-icon {
                        background-color: var(--card-background);

                        i {
                            color: var(--primary-text-color);
                        }
                    }

                    .menu-toggle-icon {
                        color: var(--text-color);
                    }
                }

                &.router-link-active {
                    color: var(--primary-text-color);
        
                    > .menu-icon {
                        i {
                            color: var(--primary-text-color);
                        }
                    }
                }

                @include focus-visible();
                --focus-ring-offset: -1px;
            }
            
            > div {
                ol {
                    margin: 0 0 0 1rem;
                    padding: .25rem 0;
                    list-style: none;

                    li {
                        a {
                            border-left: 1px solid var(--border-color);
                            transition: all .2s;
                            font-weight: 450;
                            display: flex;
                            align-items: center;
                            padding: .5rem .5rem .5rem 1rem;
                            color: var(--text-color);
                            transition: outline-color 0.2s, border-color .2s;
                            outline-color: transparent;
                            position: relative;

                            @include focus-visible();
                            --focus-ring-offset: -1px;
            
                            &:hover {
                                border-left-color: var(--hover-border-color);
                            }

                            &.router-link-active {
                                color: var(--primary-text-color);
                                border-left-color: var(--primary-text-color);
                            }
                        }

                        ol {
                            margin: 0;
                            padding: 0;
                        }

                        &:has(.menu-child-category) {
                            margin-top: 1rem;
                        }

                        &:has(.menu-child-category):first-child {
                            margin-top: 0rem;
                        }
                    }
                }
            }
        }

        .p-tag {
            position: absolute;
            right: 0;
            top: 50%;
            transform: translateY(-50%);
            
            .p-tag-value {
                line-height: 1;
            }
        }

        .menu-child-category {
            display: flex;
            padding: .5rem .5rem .5rem 0;
            font-size: .875rem;
            font-weight: 600;
            letter-spacing: 1px;
            color: var(--text-secondary-color);
            margin-bottom: .25rem;
        }
    }
}