//
// Side navigation bar
// --------------------------------------------------

#layout-sidenav {
    position: absolute;
    height: 100%;
    width: 100%;
    .box-sizing(border-box);

    .sidenav-shadow-element() {
        content: '';
        position: absolute;
        height: 100%;
        top: 0;
        right: 0;
        width: 10px;
        .box-shadow(inset -5px 0 3px rgba(0,0,0,.1));
    }

    ul {
        position: relative;
        margin: 0;
        padding: 0;
        height: 100%;
        overflow: hidden;

        &:after {
            .sidenav-shadow-element();
        }

        li {
            display: block;
            text-align: center;
            position: relative;

            a {
                padding: 20px 10px;
                display: block;
                font-size: @font-size-base - 1;
                color: @color-sidebarnav-inactive-text;
                font-weight: normal;
                position: relative;

                &:hover {
                    text-decoration: none;
                    background-color: transparent;
                }

                &:focus {
                    background: transparent;
                }

                i {
                    color: @color-sidebarnav-inactive-icon;
                    display: block;
                    margin-bottom: 5px;
                    font-size: 28px;
                }

                .nav-label,
                .nav-icon {
                    text-shadow: 0 -1px 0 rgba(0,0,0,.6);
                }
            }

            &:first-child a {
                padding-top: 30px;
            }

            &.active a, a:hover {
                color: @color-sidebarnav-active-text;
                i { color: @color-sidebarnav-active-icon; }
            }

            &.active a {
                .nav-label,
                .nav-icon {
                    text-shadow: 0 -1px 0 rgba(0,0,0,.3);
                }
            }

            span.counter {
                display: block;
                position: absolute;
                top: 15px;
                right: 15px;
                padding: 2px 6px 3px 4px;
                background-color: @color-sidebarnav-counter-bg;
                color: @color-sidebarnav-counter-text;
                font-size: 11px;
                line-height: 100%;
                .border-radius(3px);
                .opacity(1);
                .scale(1);
                .transition(all 0.3s);

                &.empty {
                    .opacity(0);
                    .scale(0);
                }
            }
        }
    }
}

#layout-sidenav.layout-sidenav ul.drag li:not(.active) a:hover,
.touch #layout-sidenav.layout-sidenav li:not(.active) a:hover {
    color: @color-sidebarnav-inactive-text !important;
    i { color: @color-sidebarnav-inactive-icon !important; }
    &:after { display: none !important; }
}