@keyframes spinner {
    from { transform: rotate3d(0);    }
    to   { transform: rotate3d(0, 0, 1, -360deg); }
}

@keyframes spinner-navbar {
    from { width: 0%; }
    to   { width: 100%; }
}

.navbar {
    position: fixed;
    top: 0px;
    left: 0px;
    right: 0px;
    z-index: 10003;
    padding: 0px 25px;
    height: 50px;
    // background: #f5f5f5;
    margin: 0px 0px 0px 0px;
    background: #455a64;
    @include tr(all .3s);
    @include bs(0 2px 2px 0 rgba(0,0,0,0.14), 0 1px 5px 0 rgba(0,0,0,0.12), 0 3px 1px -2px rgba(0,0,0,0.2));
    color: white;//$primary-color;


    .user-title {
        position: absolute;
        top: 50px;
        right: 0px;
        background: white;
        color: $text-color;
        padding: 3px 5px;
        @include bs(0 2px 2px 0 rgba(0,0,0,0.14), 0 1px 5px 0 rgba(0,0,0,0.12), 0 3px 1px -2px rgba(0,0,0,0.2));
    
        
    }

    > a.mobile-nav {
        display: none;
        position: absolute;
        left: 5px;
        top: 5px;
    }

    > ul {
        margin: 0;
        padding: 0;
        float: left;
        > li {
            float: left;
            display: block;
            padding: 0;
            margin: 0;
            line-height: 50px;
            height: 50px;
            &.divider {
                margin: 0px 15px;
                font-size: 10px;
                color: #fff;
                &:after{
                    content: '|';
                }
            }
            &.trend {
                > a {
                    span {
                        font-size: 11px;
                    }
                }
            }
            > a {
                @extend .tr-250;
                position: relative;
                font-size: 20px;
                color: white;//$primary-color;
                display: block;
                padding: 0 10px;
                cursor: pointer;
                line-height: 50px;
                height: 50px;

                &.disabled {
                    opacity: 0.5;
                }

                .icon {
                    @extend .tr-250;
                    font-size: 30px;
                    vertical-align: sub;
                    position: relative;
                    top: 5px;
                }
                &.active {
                    background: $teal-color;
                    color: white;
                    .icon {
                        color: white;
                    }
                }
                &:hover:not(.active) {
                    background: #03597d;
                }

                .counter {
                    position: absolute;
                    top: 5px;
                    right: -7px;
                    z-index: 1;
                    text-align: center;
                    display: block;
                    background: $blue-color;
                    padding: 3px;
                    border-radius: 7px;
                    > span {
                        border-radius: 3px;
                        display: block;
                        width: 22px; height: 22px;
                        text-align: center;
                        line-height: 22px;
                        font-size: 15px;
                        font-weight: bold;
                        color: white !important;
                        background: $teal-color;

                        // rad(3); db(); wh(25); tac(); lh(25px); fs(15px !important); fwb(); bs(-2px 2px 5px 1px #323232);
                        // fg(white); bg(red) ;
                    }
                }
            }
        }
        &.menu {
            >li {
                @extend .tr-250;
                position: relative;   
                z-index: 2;  
                top: 0px;
                >a {
                    padding: 0 15px;            
                    > img {
                        width: 30px;
                        vertical-align: middle;
                    } 
                    &:hover, &.active {
                        background: transparent;
                    }
                } 
                &:hover, &.active {
                    background: $teal-color;
                }        
            }
        }
    }

    @include desktop-and-down {

        > a.mobile-nav {
            display: block; 
        }

        .brand {
                margin-left: 18px;
        }

        > ul {
            > li {
                > a {
                    padding: 0px 5px;
                }
            }
            &.menu {
                >li {
                    >a {
                        padding: 0 8px; 
                    }
                }
            }
        }        
    }

    @include tablet-and-down {
        padding: 0px 5px 0px 30px;
        margin-left: 0px;

        > ul {
            > li {
                > a {
                    padding: 0px 3px;
                    .icon {
                        font-size: 20px;
                        top: 0px;
                    }
                    .button.large i {
                        font-size: 13px;
                    }
                }
            }
            &.menu {
                >li {
                    >a {
                        padding: 0px 3px;
                        > img {
                            width: 18px;

                        }
                    }
                }
            }
        }
    }
}