@import '../constants/variables';

@mixin prutech-toolbar-theme($theme) {

    #search-btn {
        button {
            background-color: #2D74DA;
        }
        mat-icon {
            color: white;
        }
    }

    #search-btn.on {
        button {
            background-color: white;
        }
        mat-icon {
            color: $heading-color;
        }
    }

    .navbar {
        height: $navbar-height;
        padding: 0;
        background-color: $heading-color;
        color: $navbar-item-color;
        font-size: 30px; 
        box-shadow: 0 0px 8px 2px #456791;

        .nav-menu {
            padding: 0px;
            height: $navbar-height;
            opacity: 1;
            .active{
                color: #2D74DA;
                background-color: white;
            }
            .mat-icon-button {
                border-radius: 0;
                height: 100%;
                width: $navbar-icon-width;
                outline: none;
                z-index: 1;
                .mat-icon{
                    width: 100%;
                    height: 30px;
                }
            }
        }

        .navbar-image {
            width: auto;
            height: 100%;
            object-fit: contain;
            padding: 4px 0px;
            margin: 0 auto;
            display: block
        }

        .navbar-logo {
            height: 90%;
            margin-right: calc(50% - 275px);
        }

        .sub-menu {
            background: rgb(255,255,255);
            border-bottom: 2px solid #cecaca;
            font-family: $app-font-family;
            font-size: $nav-submenu-font;
            font-weight: $nav-link-font-weight;
            z-index: 99;
            position: absolute;
            top: $navbar-height;
            left: 0px;
            width: 100%;
            padding: $nav-submenu-padding;
            overflow-y: scroll;
            max-height: calc(100vh - 140px);
            opacity: 1;
            .toolbar-list .mat-nav-list {
                .mat-list-item{
                    height: 40px;
                    font-size: 1.1em;
                    color: #3b3b3b;
                    font-weight: 400;
                }
                .mat-list-item:hover {
                    background: rgba(45, 116, 218, 0.12);
                    color: #2d74da;
                    font-weight: 400;
                }
            }
        }
    }

    // responsive logo
    @media only screen and (max-width: 1290px) {
        .nav-menu button {
            margin-right: 5px;
        }

        .logo-text {
            display: none;
        }

    }

    @media only screen and (max-width: 1600px) {
        .logo-text {
            display: none;
        }
    }

    a, a:active, a.visited, a.link {
        color: white;
        text-decoration: none;
    }


    .overlay {
        position: absolute;
        top: $navbar-height;
        height: 100vh;
        width: 100%;
        background: white;
        opacity: .85;
        z-index: 98;
        overflow: hidden;
    }

    .sub-menu {
        background: rgb(255,255,255);
        border-bottom: 2px solid #cecaca;
        font-family: $app-font-family;
        font-size: $nav-submenu-font;
        font-weight: $nav-link-font-weight;
        z-index: 99;
        position: absolute;
        top: $navbar-height;
        left: 0px;
        width: 100%;
        padding: $nav-submenu-padding;
        overflow-y: scroll;
        max-height: calc(100vh - 140px);
        opacity: 1;
        .toolbar-list .mat-nav-list {
            .mat-list-item{
                height: 40px;
                font-size: 1.1em;
                color: #3b3b3b;
                font-weight: 400;
            }
            .mat-list-item:hover {
                background: rgba(45, 116, 218, 0.12);
                color: #2d74da;
                font-weight: 400;
            }
        }
        .mat-nav-list {
            display: -ms-grid;
            display: grid;
            -ms-grid-columns: 33% 33% 33%;
            -ms-grid-rows: auto;
            grid-template-columns: 33% 33% 33%;
        }

        .mat-list-item {
          list-style: inside;
          font-size: 13px !important;
        }

        .mat-list-base {
            .mat-list-item.mat-list-item-with-avatar {
                height: auto;
                border-left: 1px solid #e6e6e6;
            }
            .mat-list-item.mat-list-item-with-avatar:first-child{
                border-left: 0;
            }
        }
    }

    .mat-list-icon {
        color: $heading-color;
    }

    .list-wrapper {
        border-bottom: 0;
        width: 100%;
        padding: 0 10px;
        display: flex;
        align-items: center;
        justify-content: flex-start;
        font-weight: 600;
        color: $heading-color;
        font-size: 1.1em;
    }

    .toolbar-list {
        display: flex;
        flex-direction: column;
        width: 100%;
    }

    .mat-list-base {
        .mat-list-item.mat-list-item-with-avatar {
            height: auto;
            border-left: 1px solid #e6e6e6;
        }
        .mat-list-item.mat-list-item-with-avatar:first-child{
            border-left: 0;
        }
    }

    .mat-nav-list {
        display: -ms-grid;
        display: grid;
        -ms-grid-columns: 33% 33% 33%;
        -ms-grid-rows: auto;
        grid-template-columns: 33% 33% 33%;
    }

    .mat-list-item {
        list-style: inside;
        font-size: 13px !important;
    }

    .profile {
        padding-right: 0;
    }

}
