// LMS header styles

.header-global {
    @extend %ui-depth1;
    box-sizing: border-box;
    position: relative;
    width: 100%;
    border-bottom: 1px solid $gray-l1;
    box-shadow: 0 1px 5px 0 $shadow-l1;
    background: $header-bg;

    .wrapper-header {
        @include clearfix();
        box-sizing: border-box;
        height: 74px;
        margin: 0 auto;
        padding: 10px 10px 0;
        width: 100%;
        max-width: 1180px;

        .left {
            @include float(left);
        }

        .right {
            @include float(right);
        }

        .logo {
            @include float(left);
            @include margin-left(10px);
            @include margin-right(10px);
            margin-top: 4px;
            margin-bottom: 0;
            position: relative;
        }

        .course-header {
            @include float(left);
            @include margin(12px, 10px, 0px, 10px);
            color: $lms-label-color;
        }

        .wrapper-user-menu {
            @include float(right);
            margin-top: 4px;
            width: auto;
        }

        .dropdown-menu {
            @include text-align(left);
            top: inherit;
        }

        .list-inline {
            &.nav-global {
                margin-top: 12px;
                margin-bottom: 0;
            }

            &.nav-courseware {
                margin-top: 5px;
            }

            .item {
                font-weight: font-weight(semi-bold);
                text-transform: uppercase;

                &.active {
                    a {
                        text-decoration: none;
                        color: $link-color;
                    }
                }
            }
        }

        .tab-nav-item{
            @include float(left);
            display: flex;
            margin: 0;
            justify-content: center;

            .tab-nav-link{
                font-size: font-size(base);
                font-weight: font-weight(semi-bold);
                color: palette(grayscale, dark);
                padding: 5px 25px 23px;
                display: inline-block;

                &:active,
                &:focus,
                &:hover {
                    border-bottom: 4px solid $lms-border-color;
                }
            }

            .active{
                border-bottom: 4px solid $black-t3 !important;
            }
        }
    }

    // Style the courseware's slim version of the header
    &.slim {
        .wrapper-header {
            height: 60px;

            .logo img {
                margin-top: 4px;
                height: 30px;
            }

            .course-header {
                margin-top: 10px;
            }

            .list-inline.nav-global {
                margin-top: 10px;
            }

            .wrapper-user-menu {
                margin-top: 0;
            }
        }
    }
}
