///////////////////////////
// Nav Profile
///////////////////////////
.nav-label {
    margin: 10px 25px 0;
    padding: 1.5625rem 0 10px;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.05rem;
    border-top: 1px solid $border;
	color:$dusty-gray;
	
    @at-root [data-theme-version="dark"] & {
        border-color: $d-border;
    }
    &.first {
        border: 0px;
        margin-top: 0px;
    }
}

.nav-badge {
    position: absolute;
    #{$dz-pos-right}: 2.8125rem;
    top: 0.625rem;
}

.content-body {
    margin-#{$dz-pos-left}: 17.5rem;
    z-index: 0;
    transition: all .2s ease;
    @include custommq($max: 1350px) {
        margin-#{$dz-pos-left}: 17rem;
    }
}
// Bell //
.bell img{
	-webkit-animation: ring 8s .7s ease-in-out infinite;
	-webkit-transform-origin: 50% 4px;
	-moz-animation: ring 8s .7s ease-in-out infinite;
	-moz-transform-origin: 50% 4px;
	animation: ring 8s .7s ease-in-out infinite;
}
// bell //
@-webkit-keyframes ring {
  0% { -webkit-transform: rotateZ(0); }
  1% { -webkit-transform: rotateZ(30deg); }
  3% { -webkit-transform: rotateZ(-28deg); }
  5% { -webkit-transform: rotateZ(34deg); }
  7% { -webkit-transform: rotateZ(-32deg); }
  9% { -webkit-transform: rotateZ(30deg); }
  11% { -webkit-transform: rotateZ(-28deg); }
  13% { -webkit-transform: rotateZ(26deg); }
  15% { -webkit-transform: rotateZ(-24deg); }
  17% { -webkit-transform: rotateZ(22deg); }
  19% { -webkit-transform: rotateZ(-20deg); }
  21% { -webkit-transform: rotateZ(18deg); }
  23% { -webkit-transform: rotateZ(-16deg); }
  25% { -webkit-transform: rotateZ(14deg); }
  27% { -webkit-transform: rotateZ(-12deg); }
  29% { -webkit-transform: rotateZ(10deg); }
  31% { -webkit-transform: rotateZ(-8deg); }
  33% { -webkit-transform: rotateZ(6deg); }
  35% { -webkit-transform: rotateZ(-4deg); }
  37% { -webkit-transform: rotateZ(2deg); }
  39% { -webkit-transform: rotateZ(-1deg); }
  41% { -webkit-transform: rotateZ(1deg); }
  43% { -webkit-transform: rotateZ(0); }
  100% { -webkit-transform: rotateZ(0); }
}
@-moz-keyframes ring {
  0% { -moz-transform: rotate(0); }
  1% { -moz-transform: rotate(30deg); }
  3% { -moz-transform: rotate(-28deg); }
  5% { -moz-transform: rotate(34deg); }
  7% { -moz-transform: rotate(-32deg); }
  9% { -moz-transform: rotate(30deg); }
  11% { -moz-transform: rotate(-28deg); }
  13% { -moz-transform: rotate(26deg); }
  15% { -moz-transform: rotate(-24deg); }
  17% { -moz-transform: rotate(22deg); }
  19% { -moz-transform: rotate(-20deg); }
  21% { -moz-transform: rotate(18deg); }
  23% { -moz-transform: rotate(-16deg); }
  25% { -moz-transform: rotate(14deg); }
  27% { -moz-transform: rotate(-12deg); }
  29% { -moz-transform: rotate(10deg); }
  31% { -moz-transform: rotate(-8deg); }
  33% { -moz-transform: rotate(6deg); }
  35% { -moz-transform: rotate(-4deg); }
  37% { -moz-transform: rotate(2deg); }
  39% { -moz-transform: rotate(-1deg); }
  41% { -moz-transform: rotate(1deg); }
  43% { -moz-transform: rotate(0); }
  100% { -moz-transform: rotate(0); }
}
@keyframes ring {
  0% { transform: rotate(0); }
  1% { transform: rotate(30deg); }
  3% { transform: rotate(-28deg); }
  5% { transform: rotate(34deg); }
  7% { transform: rotate(-32deg); }
  9% { transform: rotate(30deg); }
  11% { transform: rotate(-28deg); }
  13% { transform: rotate(26deg); }
  15% { transform: rotate(-24deg); }
  17% { transform: rotate(22deg); }
  19% { transform: rotate(-20deg); }
  21% { transform: rotate(18deg); }
  23% { transform: rotate(-16deg); }
  25% { transform: rotate(14deg); }
  27% { transform: rotate(-12deg); }
  29% { transform: rotate(10deg); }
  31% { transform: rotate(-8deg); }
  33% { transform: rotate(6deg); }
  35% { transform: rotate(-4deg); }
  37% { transform: rotate(2deg); }
  39% { transform: rotate(-1deg); }
  41% { transform: rotate(1deg); }
  43% { transform: rotate(0); }
  100% { transform: rotate(0); }
}

// 38px + 60px
///////////////
// Sidebar
//////////////
.deznav {
    width: 17.5rem;
    padding-bottom: 0;
	height: calc(100% - 72px);
    position: absolute;
    top: 4.5rem;
    padding-top: 0;
    z-index: 4;
    background-color: var(--sidebar-bg);
    // box-shadow: 0px 0px 10px rgba(120, 130, 140, 0.13);
    transition: all .2s ease;
    // border-top-left-radius: 5px;
    // border-top-right-radius: 5px;
	box-shadow: 0px 15px 30px 0px rgba(0, 0, 0, 0.02);
	
    @include respond('tab-land') {
		//top: 5rem;
		height: calc(100% - 70px);
    }
	@include respond('phone-land') {
         width: 18rem;
    }
    // @include respond('big-desktop') {
    //     left: 6rem;
    // }
	.ps__rail-y{
		#{$dz-pos-left}:0;
	}
    .deznav-scroll {
        position: relative;
        height: 100%;
		overflow-y:scroll;
		scrollbar-width: none;
        // overflow: visible!important;
        // border-top-left-radius: 5px;
        // border-top-right-radius: 5px;
    }
    @include custommq($max: 1350px) {
        width: 17rem;
    }
    ul {
        padding: 0;
        margin: 0;
        list-style: none;
    }
	
	//main-profile
	.main-profile{
		text-align:center;
		padding: 20px 0px;
		position:relative;
		.image-bx{
			position:relative;
			display: inline-block;
			height: 65px;
			width: 65px;
			margin-bottom: 12px;
			img{
				border-radius: 8px;
				height:100%;
				width:100%;
				object-fit:cover;
			}
			a{
				color:var(--primary);
				position: absolute;
				top: -10px;
				#{$dz-pos-right}: -8px;
				font-size: 20px;
			}
		}
		.name{
			margin-bottom: 2px;
		}
		.email{
			margin-bottom:0;
			font-size:12px;
		}
	}
	
    .metismenu {
        display: flex;
        flex-direction: column;
		padding-top: 0;
		padding-bottom: 15px;
			
		
        &.fixed {
            position: fixed;
            top: 0;
            width: 100%;
            #{$dz-pos-left}: 0;
        }
        &>li {
            display: flex;
            flex-direction: column;
            a {
				position:relative;
				
                &>i {
                    //icon will get color from parent "a"
                    font-size: 1.2rem;
                    display: inline-block;
                    vertical-align: middle;
                    padding: 0;
                    padding-#{$dz-pos-right}: 1rem;
                    position: relative;
                    top: 0;
					@include transitionMedium;
					line-height: 1;
						
					@at-root [data-sidebar-style="compact"] & {
						display:block;
						padding:0;
						background:#F9F9F9;
						color:rgba($black,0.6);
						width: 60px;
						height: 60px;
						border-radius: 12px;
						line-height: 60px;
						margin-#{$dz-pos-left}: auto;
						margin-#{$dz-pos-right}: auto;
						margin-bottom: 5px;
						&[data-theme-version="dark"]{
							color:$white;
						}
						
					}
					@include respond('phone-land') {
						font-size: 1.25rem;
                        padding: 0;
                        padding-#{$dz-pos-right}: .75rem;
						color: #969BA0;
					}
                }
					
				
            }
			
            &>a {
				font-weight: 400;
				display: inline-block;
				font-size: 15px;
				color: #3f4358;		
				i{
					color: #969BA0;
				}
				svg {
					max-width: 24px;
					max-height: 24px;
					height: 100%;
					margin-#{$dz-pos-right}:5px;
					margin-top: -3px;
					color: var(--primary);
				}
				g [fill] {
					fill: #8088a1;
				}
				.nav-text{
					@include transitionMedium;
					display: inline-block;
				}
				&:hover{
					.nav-text{
						transform: translateX(10px);
                        @at-root [direction="rtl"] & {
                            transform: translateX(-10px);
                        }
					}
				}
            }
			&>ul{
				&>li{
					&>ul{
						a{
							padding-#{$dz-pos-left}: 4.2rem;
							&:before{
								border:0;
								background:#a9a9a9;
								width:10px;
								height:1px;
								#{$dz-pos-left}:44px;
							}
						}
					}
				}
			}
            &:hover,
			&:focus {
				
                &>a {
                  //  background-color: lighten($color: var(--primary), $amount: 40%);
                    color: var(--primary);
					g [fill] {
						fill: var(--primary);
					}
                    // &::after {
                    //     border-color: blue;
                    // }
					i{
						color:var(--primary);
					}
                }
            }
            &.mm-active {
				&>a {
					background:var(--rgba-primary-1);
					color:var(--primary);
					font-weight: 500;
					box-shadow:none;
					i{
						color: var(--primary);
						font-weight:100;
					}
					g [fill] {
						fill: var(--primary);
					}
					
				}
				@at-root [data-sidebar-style="compact"] & {
					&>a{
						
						i{
							background:var(--rgba-primary-1);
							color:var(--primary);
							//box-shadow:0 12px 15px 0 rgba($primary, 0.13);
						}
					}
				}
            }
        }
        li {
            position: relative;
        }
		
        //one step dropdown
        ul {
            //background-color: darken($color: $white, $amount: 2%);
            transition: all .2s ease-in-out;
			position:relative;
			z-index: 1;
			padding: 0.5rem 0;
				
            a {
				padding-top: .5rem;
				padding-bottom: .5rem;
				position: relative;
				font-size: 14px;
				padding-#{$dz-pos-left}: 3.4rem;
				@include transitionMedium;
				.badge{
					float:#{$dz-pos-right};
					margin-#{$dz-pos-right}:12px;
					line-height:15px;
				}
				&:before{
					position: absolute;
					height: 7px;
					width: 7px;
					border: 2px solid #a9a9a9;
					content: "";
					//background: rgba($black,0.5);
					border-radius: 26px;
					top: 50%;
					transform: translateY(-50%);
					@include transitionMedium;
					#{$dz-pos-left}: 30px;
					@at-root [data-sidebar-style="overlay"] & {
						#{$dz-pos-left}:40px;
					}
				}
				@include custommq ($max:1350px){
					padding-#{$dz-pos-left}: 5.2rem;
					font-size:14px;
					&:before{
						#{$dz-pos-left}:50px;
					}
				}
				@include respond('phone-land') {
					padding-#{$dz-pos-left}: 3.5rem;
					font-size: 14px;
				}
                &:hover,
                &:focus,
                &.mm-active {
					background:#f5f5f5;
                    text-decoration: none;
                    color: var(--primary);
					&:before{
						border-color:var(--primary);
					}
                }
            }
            
        }
        a {
            position: relative;
            display: block;
            padding: 0.625rem 1.875rem;
            outline-width: 0;
            color: #3f4358;
            text-decoration: none;
			@include respond('phone-land') {
				padding: 0.625rem 1.25rem;
			}
        }
        .has-arrow {
            &:after {
                width:  .5rem;
                height: .5rem;
                #{$dz-pos-right}: 1.875rem;
                top: 48%;
                border-color: inherit;
                -webkit-transform: rotate(-225deg) translateY(-50%);
                transform: rotate(-225deg) translateY(-50%);
				
            }
        }
        .has-arrow[aria-expanded=true]:after,
        .mm-active>.has-arrow:after {
            -webkit-transform: rotate(-135deg) translateY(-50%);
            transform: rotate(-135deg) translateY(-50%);
        }
    }
}

// .metismenu .mm-active>.has-arrow:after, .metismenu .has-arrow[aria-expanded=true]:after {
//     transform: rotate(45deg) translateY(-50%);
// }

.nav-header {
	@include custommq($max: 1023px) {
		width: 5rem;
	}
}
@media (max-width:767px) {

	.brand-title {
		display: none;
	}
    .footer {
        padding-#{$dz-pos-left}: 0;
    }
    .deznav {
        #{$dz-pos-left}: 0;
		top: 4.5rem;
    }
}