// nav
.navbar-vertical {
    flex-direction: column !important;
    align-items: flex-start;
    position: relative;
    padding: 0;
    flex-wrap: nowrap;

    .navbar-nav {
        width: 100%;
    }

    .navbar-brand {
        min-height: $navbar-height;
        max-height: $navbar-height;
        display: flex;
        align-items: center;
        padding-left: ($navbar-link-padding-x + $navbar-item-margin-x);
    }

    .nav-item {
        margin: 0 $navbar-item-margin-x;
    }

    .nav-link {
        display: flex;
        flex-wrap: nowrap;
        position: relative;
        align-items: center;
        padding: $navbar-link-padding-y $navbar-link-padding-x !important;
        width: 100%;
    }

    &.navbar-dark {
        .nav-heading {
            color: $navbar-dark-disabled-color;
        }
    }

    &.sticky {
        height: 100vh;
    }
}

.nav-heading {
    font-size: $font-size-sm;
    padding: $navbar-link-padding-y ($navbar-link-padding-x + $navbar-item-margin-x);
    color: $navbar-light-disabled-color;
}

.nav-icon {
    width: $navbar-link-icon-width;
    height: $navbar-link-icon-height;
    display: flex;
    position: relative;
    align-items: center;
    justify-content: center;
    margin-left: -.1rem;
    margin-right: 1rem;
    i {
        font-size: $navbar-link-icon-size;
    }
}

.nav-padding {
    padding: $navbar-link-padding-y $navbar-link-padding-x;
}

.nav-text {
    max-width: 100%;
    flex: 1 1 auto;
}


.nav-sub {
    overflow: hidden;
    @include transition(max-height 0.4s ease 0s);
    display: none;
    list-style: none;
    padding: 0 0 .75rem;
    margin: 0;
    &.active {
        display: block;
    }
    .nav-item {
        margin: 0;
    }

    .nav-text {
        margin: 0;
        font-size: .775rem;
    }

    .nav-icon {
        height: ($navbar-link-icon-height - .75rem);
    }

    .nav-link {
        padding: .45rem ($navbar-link-padding-x - .5rem) .45rem ($navbar-link-padding-x + $navbar-link-icon-width + 1rem ) !important;
    }

    & .nav-sub {
        .nav-link {
            padding-left: ($navbar-link-padding-x + $navbar-link-icon-width + 1.5rem ) !important;
            padding-right: ($navbar-link-padding-x - .5rem) !important;
        }

    }

    .active>&,
    .open>& {
        display: block;
    }
}
.navbar-icon {

    .nav-link {
        display: flex;
        flex-wrap: nowrap;
        position: relative;
        align-items: center;
    }
}
.nav-badge {
    width: 1rem;
    position: relative;
    display: flex;
    position: relative;
    align-items: center;
    justify-content: center;
    font-size: .75rem;
    .badge-dot {
        width: 6px;
        height: 6px;
    }
}
.nav-arrow {
    width: 1rem;
    position: relative;
    display: flex;
    position: relative;
    align-items: center;
    justify-content: center;

    &:after {
        content: '';
        width: 5px;
        height: 5px;
        display: inline-block;
        border-width: 1px;
        border-style: solid;
        border-color: transparent currentColor currentColor transparent;
        transform: rotate(45deg);
        margin-bottom: 1px;
    }
}

// nav pill active
.nav-active-pill {
    .active {
        background-color: $primary;
        color: #fff !important;
        border-radius: $border-radius;
    }
}
// nav border active
.nav-active-border {
    a {
        color: inherit;
        position: relative;

        &:hover {
            color: inherit;
        }
    }

    .active {
        color: inherit;
        &:after {
            content: '';
            position: absolute;
            border-color: $primary;
        }
    }

    &.rounded .active {
        &:after {
            border-radius: 100px;
        }
    }

    &.left .active {
        &:after {
            content: '';
            position: absolute;
            top: 5px;
            left: -$navbar-item-margin-x;
            bottom: 5px;
            border-width: 5px;
            border-left-style: solid;
            border-color: $primary;
        }
    }

    &.right .active {
        &:after {
            content: '';
            position: absolute;
            top: 5px;
            right: -$navbar-item-margin-x;
            bottom: 5px;
            border-width: 5px;
            border-right-style: solid;
            border-color: $primary;
        }
    }

    &.top .active {
        &:after {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            border-width: 2px;
            border-top-style: solid;
        }

    }

    &.bottom .active {
        &:after {
            content: '';
            position: absolute;
            bottom: 0;
            left: 0;
            right: 0;
            border-width: 2px;
            border-bottom-style: solid;
        }

    }
}

// nav text active
.nav-active-text {
    a {
        color: inherit;
        position: relative;
        &.active,
        &:hover {
            color: $primary !important;
        }
    }
}
// Nav Paddings
.nav-padding-lg {
    .nav-link {
        padding: 1rem 1.5rem;
    }
}