//background for nav header
@each $name, $color in $theme_backgrounds {
    [data-nav-headerbg="#{$name}"][data-theme-version="dark"],
    [data-nav-headerbg="#{$name}"] {
        @if $name != "color_1"  {
            .nav-header {
                background-color: $color;
				border-color:rgba($white,0.15);
                .brand-logo {
                    color: $white;

                    &:hover {
                        color: $white;
                    }
					.svg-logo-rect{
						fill:rgba($white, .25);
					}
					.svg-bg-path{
						fill:rgba($black,0.7);
					}
					.svg-logo-pattern{
						fill:$white;
					}
					.svg-logo-circle{
						fill:rgba($white, .25);
						stroke:rgba($color,0.2);
					}
					.svg-logo-text{
						fill:$color;
					}
					.svg-logo-title{
						fill:$white;
					}
					.svg-logo-path{
						fill:$white;
					}
                }
				.brand-title{
					color:$white;
				}
				.hamburger .line{
					background:#fff;
				}
            }
			
			&[data-sidebar-style="full"][data-layout="vertical"]{
				.menu-toggle .nav-header .nav-control .hamburger .line{
					background:#fff ;
				}
			}
			//special work for color
			&[data-nav-headerbg="color_8"],&[data-nav-headerbg="color_7"]{
				.nav-header {
					.brand-logo {
						.svg-logo-rect{
							fill:rgba($black, .25);
						}
						.svg-logo-circle{
							fill:rgba($black, .25);
							stroke:rgba($color,0.2);
						}
						.svg-logo-text{
							fill:$color;
						}
						.svg-logo-title{
							fill:rgba($black,0.7);
						}
						.svg-logo-path{
							fill:$white;
						}
					}
				}
			}
			
        }
		
	}
}



//background for header 
@each $name, $color in $theme_backgrounds {
    [data-headerbg="#{$name}"][data-theme-version="dark"],
    [data-headerbg="#{$name}"] {

        @if $name != "color_1"  {
			.header-left {
				.dashboard_bar{
					color:$white;
				}
			}
			.nav-header{
				.hamburger .line{
					background:#fff!important;
				}
			}
			.header {
                background-color: $color;
                color: $white;
            }
			.search-area .input-group-append .input-group-text i{
				color:$white;
			}
			.header-right .notification_dropdown .nav-link .badge{
				background:$white!important;
				color:$color!important;
			}
			.header-left {
                input {
                    border-color: lighten($color: $color, $amount: 10%);
                    background-color: lighten($color: $color, $amount: 10%) ;
                    color: $white;
                    // border-right-color: transparent;

                    &::placeholder {
                        color: $white;
                    }

                    &:focus {
                        border-color: darken($color: $color, $amount: 10%);
                    }
                }
				.search_icon{
				    background-color: lighten($color: $color, $amount: 10%)  !important;
					i{
						color: #fff;
					}
				}

                .btn {
                    background-color: darken($color: $color, $amount: 10%);
                    border-color: darken($color: $color, $amount: 10%);

                    &:hover, 
                    &:focus, 
                    &:active {
                        background-color: darken($color: $color, $amount: 20%);
                        border-color: darken($color: $color, $amount: 20%);
                    }
                }
            }
			.menu-toggle .nav-header .nav-control .hamburger .line {
				background-color: $white ;
			}
			.header-right .header-profile > a.nav-link{
				border-color:$white;
			}
            .header-right {
                .dropdown {
                    &>a {
                        color: $white;
                    }
                }
				
				.pulse-css{
					background-color:$white;
					border-color: $color;
					&:after,
					&:before{
						background-color:inherit;
					}
				}
				.search-area .input-group-append .input-group-text,
				.search-area .form-control{
					background-color: lighten($color: $color, $amount: 10%) !important;
					svg path{
						fill:$white;
					}
				}
				.notification_dropdown .nav-link{
					background-color:transparent!important;
					svg path{
						fill:$white;
					}
				}
				.search-area .input-group-append .input-group-text,
				.search-area .form-control,.search-area .form-control::placeholder{
					color:$white;
				}
				.right-sidebar a{
					border-color:rgba(255,255,255,0.1);
					color:$white;
				}
				.header-profile > a.nav-link .header-info {
					strong{
						color:$white;
					}
					span,
					small{
						color:rgba(255,255,255,0.7);
					}
				}
			}
            .nav-control {
                background-color: lighten($color: $color, $amount: 10%);
                color: $white;
            }
			
			//special work for color
			&[data-headerbg="color_8"],&[data-headerbg="color_7"]{
				.header-left .dashboard_bar{
					color:$black;
				}
				.header-right {
					.dropdown {
						&>a {
							color: $black;
						}
					}
					.pulse-css{
						background-color:$black;
						border-color: $color;
					}
					.search-area .input-group-append .input-group-text,
					.search-area .form-control{
						background-color: rgba($black,0.1) !important;
						svg path{
							fill:$black;
						}
					}
					.search-area .input-group-append .input-group-text,
					.search-area .form-control,.search-area .form-control::placeholder{
						color:$black;
					}
					.header-profile > a.nav-link .header-info {
						strong{
							color:$black;
						}
						span,
						small{
							color:rgba($black,0.7);
						}
					}
					.notification_dropdown .nav-link{
						background-color:transparent!important;
						svg path{
							fill:$black;
						}
					}
					.search_icon{
						i{
							color: $black;
						}
					}
					.search-area .input-group-append .input-group-text i{
						color:$black;
					}
				}
				.header-right .notification_dropdown .nav-link .badge{
					background:$color!important;
					color:$black!important;
				}
				.nav-header .hamburger .line{
					background:$black!important;
				}
			}
			
        }
    }
}

//styles for sidebar
@each $name, $color in $theme_backgrounds {
//:not([data-sidebar-style="modern"])
    [data-sibebarbg="#{$name}"][data-theme-version="dark"],
    [data-sibebarbg="#{$name}"] {
        @if $name != "color_1" {
		
		
			.menu-toggle .deznav .metismenu li > ul{
				background:$color!important;
			}
			.deznav .metismenu ul a:before{
				background:rgba($white,0.5);
			}
			.deznav {
                background-color: $color;
				
				.menu-tabs li a.active{
					color: $color;
				}
                .metismenu {
					.nav-label{
						color:rgba(255,255,255,0.7);
						border-color:rgba(255,255,255,0.2);
					}
                    &>li {
                        &>a {
                            color:  rgba(255,255,255,0.7); //darken($color: $white, $amount: 0%);
							i,
							svg{
								color:rgba(255,255,255,0.7)!important;
							}		
							g [fill] {
								fill: rgba(255,255,255,0.7);
							}	
								
                        }

                        &:hover, 
                        &:focus, 
                        &.mm-active {
            
                            &>a {
                                color: $white;
								background: lighten($color: $color, $amount: 10%);
								box-shadow:0 10px 20px -10px darken($color: $color, $amount: 10%);
								//background: lighten($color: $color, $amount: 10%);
								//box-shadow:0 10px 20px -10px darken($color: $color, $amount: 10%);
								box-shadow:none;
								
								g [fill] {
									fill:$white;
								}	
								i{
									color:$white!important;
								}
								
								svg{
									color:$white;
								}	
                                // &::after {
                                //     border-color: transparent transparent $white transparent;
                                // }
                            }
                        }
						@at-root [data-layout="horizontal"]#{&} {
                            // &:not(:last-child) {
                                border-color: lighten($color: $color, $amount: 10%);
                            // }
                        }
                    }

                    a {
                        color: rgba(255,255,255,0.8);

                        &:hover, 
                        &:focus, 
                        &.mm-active {
                            color: $white!important;
                        }
                    }

                    ul {
                        border-color: rgba(255,255,255,0.2);
						&:after{
							background-color: rgba(255,255,255,0.2);
						}
                    }

                    // .has-arrow {
                    //     &:after {
                    //         border-color: transparent transparent darken($color: $white, $amount: 30%) transparent;
                    //     }
                    // }
                }
				.copyright p{
					color:rgba(255,255,255,0.7);
				}
				.book-box{
					background: lighten($color: $color, $amount: 10%);
				}
				.add-project-sidebar{
					background: $white;
					color: $color;
					border-color: $color;
					&:focus,&:active,&:hover{
						background-color: $white!important;
						color: $color;
						box-shadow:none!important;
						border-color: $color!important;
					}
				}	
				
			}
			&[data-layout="horizontal"],
			&[data-sidebar-style="compact"][data-layout="horizontal"],
			&[data-sidebar-style="mini"][data-layout="horizontal"],
			&[data-sidebar-style="modern"],
			&[data-sidebar-style="modern"][data-layout="vertical"]{
				.deznav .metismenu li > ul{
					background: lighten($color: $color, $amount: 10%);
					
				}
			}
			&[data-sidebar-style="modern"],&[data-sidebar-style="overlay"]{
				.deznav .metismenu >li {
					&> a{
						color:rgba(255,255,255,0.8);
					}
					&:hover,&.mm-active{
						&>a{
							background: lighten($color: $color, $amount: 10%)!important;
							box-shadow:0 10px 20px -10px darken($color: $color, $amount: 10%)!important;
						}
					}
				}
			}
			&[data-layout="horizontal"]{
				&[data-sidebar-style="compact"]{
					.deznav .metismenu >li {
						&> a{
							color:rgba(255,255,255,0.8);
						}
						&:hover,&.mm-active{
							&>a{
								background: lighten($color: $color, $amount: 10%)!important;
								box-shadow:0 10px 20px -10px darken($color: $color, $amount: 10%)!important;
							}
						}
					}
				}
			}
			&[data-sidebar-style="compact"]{
				.deznav .metismenu li {
					&> a{
					color:rgba(255,255,255,0.8);
					}
				}
			}
			&[data-sidebar-style="compact"][data-layout="horizontal"]{ 
				.deznav .metismenu{
					margin-bottom:0;
					& > li > a i{
						box-shadow:none;
					}
				}
			}
			&[data-sidebar-style="mini"][data-layout="vertical"]{
				.deznav .metismenu li ul{
					background-color: lighten($color: $color, $amount: 10%)!important;
				}
				.deznav .metismenu > li.mm-active > a,
				.deznav .metismenu > li:hover > a{
					background-color: lighten($color: $color, $amount: 10%);
				}
			}
			&[data-sidebar-style="full"][data-layout="vertical"]{
				.menu-toggle .deznav .metismenu li > ul,
				.menu-toggle .deznav .metismenu > li.mm-active > a,
				.menu-toggle .deznav .metismenu > li:hover > a{
					background-color: lighten($color: $color, $amount: 10%);
				}
			}
			
			&[data-sidebar-style="icon-hover"][data-layout="vertical"]{
				.deznav .metismenu ul{
					border-color: rgba(255,255,255,0.2);
				}	
				.deznav .metismenu > li:hover > a,
				.deznav .metismenu > li.mm-active > a{
					background: lighten($color: $color, $amount: 10%);
					box-shadow:0 10px 20px -10px darken($color: $color, $amount: 10%);
				}
			}
			&[data-layout="horizontal"]{
				.deznav .metismenu > li{
					border-color: rgba(255,255,255,0.2);
				}
				&[data-sidebar-style="full"],&[data-sidebar-style="mini"],&[data-sidebar-style="icon-hover"]{
					.deznav .metismenu >li {
						&> a{
							color:rgba(255,255,255,0.8);
						}
						&:hover,&.mm-active{
							&>a{
								background: lighten($color: $color, $amount: 10%)!important;
								box-shadow:0 10px 20px -10px darken($color: $color, $amount: 10%)!important;
							}
						}
					}
				}
			}
			
			
			&[data-sidebar-style="full"][data-layout="vertical"]{
				
				.deznav {
					.metismenu {
						&>li {
							a{
								&:hover{
									color:$white;
								}
							}
							&.mm-active,&:hover{
								&>a {
									color:$white;
									background: lighten($color: $color, $amount: 10%)!important;
									box-shadow:0 12px 15px 0 rgba($color, 0.13);
								}
							}
						}
					}
				}
			}
			&[data-sidebar-style="mini"][data-layout="vertical"]{
				.deznav {
					.metismenu {
						&>li {
							a{
								&:hover{
									color:$white;
								}
							}
							&.mm-active,&:hover{
								&>a {
									color:$white;
									background: lighten($color: $color, $amount: 10%)!important;
									i{
										color:$white;
										background:transparent;
										box-shadow:none;
									}
								}
							}
						}
					}
				}
			}
			&[data-sidebar-style="compact"][data-layout="vertical"]{
				.deznav {
					.metismenu {
						&>li {
							a{
								&:hover{
									color:$white;
								}
							}
							&>a{
								&>i{
									background: lighten($color: $color, $amount: 3%)!important;
									color:rgba($white,0.7)!important;
								}
							}
							&.mm-active,&:hover{
								&>a {
									box-shadow:none;
									background:transparent;
									color:$white!important;
									i{
										background: lighten($color: $color, $amount: 10%)!important;
										color:$white!important;
									}
								}
							}
						}
					}
				}
			}
			
			
			&[data-sidebar-style="modern"][data-layout="vertical"],
			&[data-sidebar-style="icon-hover"][data-layout="vertical"],
			&[data-sidebar-style="overlay"][data-layout="vertical"]{
				.deznav {
					.metismenu {
						&>li {
							a{
								&:hover{
									color:$white;
								}
							}
							&.mm-active,&:hover{
								&>a {
									background: lighten($color: $color, $amount: 10%)!important;
									color:$white;
									i{
										background:transparent;
										color:$white;
										box-shadow:none;
									}
								}
							}
						}
					}
				}
			}
			
			
			
			//special work for color
			&[data-sibebarbg="color_8"]{
				.deznav .metismenu ul a:before {
					background:rgba($black,0.5);
				}
				.deznav {
					.metismenu{
						a{
							color:rgba($black,0.6)!important;	
						}
						.has-arrow:after{
							border-color:rgba($black,0.6);
						}
						&>li{
							&>a{
								color:rgba($black,0.6)!important;
								i{
									color:rgba($black,0.6)!important;
								}
							}
						}
					}
					.copyright p{
						color:rgba($black,0.6);							
					}
					.book-box{
						background: rgba($black,0.4);
					}
				}
			}
			&[data-sibebarbg="color_7"]{
				.add-project-sidebar{
					background:$dark-card;
				}
				.deznav .metismenu ul a:before{
					background:$black;
				}
				.deznav {
					.metismenu{
						.has-arrow:after{
							border-color:$black;
						}
						&>li{
							a{
								color:$black;	
								&:focus,&:hover{
									color:$black!important;	
								}
							}
							&>a{
								color:$black;
								i{
									color:$black!important;
								}
							}
							&.mm-active,&:hover,&:focus{
								a{
									color:$black!important;
								}
							}
						}
					}
					.copyright p{
						color:$black;
					}
				}
				&[data-sidebar-style="compact"][data-layout="vertical"]{
					.deznav {
						.metismenu{
							&>li{
								&>a{
									color:$black;
									i{
										color:$black!important;
										background:rgba($black,0.1)!important;
									}
								}
								&.mm-active,&:hover,&:focus,&:active{
									a{
										color:$black!important;
										i{
											color:$white!important;
											background:$black!important;
											box-shadow:none;
										}
									}
								}
							}
						}
					}
				}
				&[data-layout="horizontal"]{
					.deznav .metismenu > li{
						border-color: rgba($black,0.2);
					}
					&[data-sidebar-style="full"],&[data-sidebar-style="mini"],&[data-sidebar-style="icon-hover"]{
						.deznav .metismenu >li {
							&> a{
								color:rgba($black,0.8);
							}
							&:hover,&.mm-active{
								&>a{
									background: lighten($color: $color, $amount: 10%)!important;
									box-shadow:0 10px 20px -10px darken($color: $color, $amount: 10%)!important;
								}
							}
						}
					}
				}
			}
			
        } 
    }
}

[data-headerbg="transparent"]{
    .header{
		box-shadow: none;
        background: transparent;
    }
}
[data-headerbg="color_1"]{
	.nav-header .hamburger.is-active .line,
	.nav-header .hamburger .line{
		background:$primary;
	}
}


