/*
Template Name: Monster Admin
Author: Themedesigner
Email: niravjoshi87@gmail.com
File: scss
*/


/*******************
Main sidebar
******************/

.left-sidebar {
    position: fixed;
    width: 100%;
    top: 0px;
    z-index: 20;
    padding:70px 15px 0px;
    background: $sidebar;
    box-shadow: 1px 0px 20px rgba(0, 0, 0, 0.08);
}

.fix-sidebar .left-sidebar {
    position: fixed;
}


/*******************
sidebar navigation
******************/

.scroll-sidebar {
    margin: 0 auto;
    max-width: 1280px;
}

.collapse.in {
    display: block;
}

.sidebar-nav {
    background: $sidebar;
    ul {
        margin: 0px;
        padding: 0px;
        li {
            list-style: none;
            a {
                color: $sidebar-text;
                padding: 8px 13px;
                display: block;
                font-size: 15px;
                white-space: nowrap;
                &.active,
                &:hover {
                    color: $themecolor;
                }
                &.active {
                    font-weight: 400;
                    color: $dark;
                }
            }
            ul {
                padding: 15px;
                li a {
                    padding: 10px 35px 10px 15px;
                }
                ul {
                    padding: 0px 0 0 15px;
                }
            }
            &.nav-small-cap,
            &.nav-devider {
                display: none
            }
        }
    }
    > ul > li {
        padding: 6px 0px;
        &.active > a {
            color: $themecolor;
            i {
                color: $themecolor;
            }
        }
    }
    > ul > li > a {
        border-radius: $radius;
        &.active,
        &:hover {
            i {
                color: $themecolor;
            }
        }
        i {
            width: 27px;
            font-size: 21px;
            display: inline-block;
            vertical-align: middle;
            color: $sidebar-icons;
        }
        .label {
            float: right;
            margin-top: 6px;
        }
        &.active {
            font-weight: 400;
            background: $white;
            color: $themecolor;
        }
    }
}

@media(min-width:768px) {
    .sidebar-nav > ul > li {
        display: inline-block;
        &:hover > a,
        &:hover > a i {
            color: $themecolor;
        }
    }
    .sidebar-nav > ul > li:last-child ul {
        right: 0px;
    }
    .sidebar-nav #sidebarnav li.two-column > ul {
        width: 400px;
        li {
            width: 49%;
            vertical-align: top;
            display: inline-block;
        }
    }
    .sidebar-nav #sidebarnav li.three-column > ul {
        width: 600px;
        li {
            width: 32.5%;
            vertical-align: top;
            display: inline-block;
        }
    }
    
    .sidebar-nav #sidebarnav > li > a.has-arrow:after {
        display: none;
    }
    /****************
    When click on sidebar toggler and also for tablet
    *****************/

    .sidebar-nav #sidebarnav li {
        position: relative;
    }

    .sidebar-nav #sidebarnav > li > ul {
        position: absolute;
        z-index: 1001;
        width: 260px;
        background: $white;
        display: none;
        box-shadow: 0px 10px 20px rgba(0, 0, 0, 0.09);
    }

    .sidebar-nav #sidebarnav > li:hover > ul {
        height: auto !important;
        overflow: auto;
    }

    .sidebar-nav #sidebarnav > li:hover > ul,
    .sidebar-nav #sidebarnav > li:hover > ul.collapse {
        display: block;
    }
}

.sidebar-nav .has-arrow {
    position: relative;
    &::after {
        position: absolute;
        content: '';
        width: .4em;
        height: .4em;
        border-width: 1px 0 0 1px;
        border-style: solid;
        border-color: $sidebar-text;
        right: 1em;
        -webkit-transform: rotate(-45deg) translate(0, -50%);
        -ms-transform: rotate(-45deg) translate(0, -50%);
        -o-transform: rotate(-45deg) translate(0, -50%);
        transform: rotate(-45deg) translate(0, -50%);
        -webkit-transform-origin: top;
        -ms-transform-origin: top;
        -o-transform-origin: top;
        transform-origin: top;
        top: 50%;
        -webkit-transition: all .3s ease-out;
        -o-transition: all .3s ease-out;
        transition: all .3s ease-out;
    }
}

.sidebar-nav .active > .has-arrow::after,
.sidebar-nav li > .has-arrow.active::after,
.sidebar-nav .has-arrow[aria-expanded="true"]::after {
    -webkit-transform: rotate(-135deg) translate(0, -50%);
    -ms-transform: rotate(-135deg) translate(0, -50%);
    -o-transform: rotate(-135deg) translate(0, -50%);
    transform: rotate(-135deg) translate(0, -50%);
}

@media(max-width:1024px) and (min-width:700px){
    .sidebar-nav ul li a i{
        display: none;
    }
}
@media(max-width:767px) {
    .mini-sidebar {
        .left-sidebar {
            position: fixed;
            display: none;
            height: 100%;
            overflow: auto;
        }
        &.show-sidebar {
            .left-sidebar,
            .sidebar-footer {
                display: block;
            }
        }
        .sidebar-nav #sidebarnav > li > ul {
            padding: 0 10px;
            li a{
                padding: 10px 15px 10px 35px;
            }
        }
            
    }
}