$appbar-height : 4rem;

#appbar-shadow {
    height: $appbar-height;
}

#appbar {

    position: fixed;
    height: $appbar-height;
    padding: 0.2rem;
    width: 100%;
    background-color: darken($primary-color,5);
    box-shadow: 0 2px 4px 0 rgba(0, 0, 0, 0.4);
    z-index: 200;
    color: white;
    margin: auto;

    .brand {
        font-size: 1.4rem;
        color: white;
        margin-left: 0.5rem;
    }

    .appbar-user{

        .avatar img{
            height: 3rem;
            width: 3rem;
        }

        max-width: 210px;
        margin: auto;
        text-align: center;

        .username {
            color: white;
            margin: auto;
            font-size: 1rem;
            padding: 0.25rem 0.6rem;
            border-radius: 1rem;
            background-color: rgb(63, 63, 63);
            transition: background-color 0.5s;

            &:hover{
                background-color: rgb(32, 99, 110);
            }
        } 
    }

    .logout{

        max-width: 80px;
        margin: auto;
        text-align: center;

        a {
            color: white;
            font-size: 1.2rem;
            padding: 0.5rem 0.6rem;
            border-radius: 1rem;
            background-color: rgb(63, 63, 63);
            transition: background-color 0.5s;

            &:hover{
                background-color: rgb(148, 148, 148);
            }
        } 


    }

    .pill{
        background-color: darken($primary-color,7);
        color: white;
        font-size: 1rem;

        &:hover{
            background-color: darken($primary-color,10);
        }
    
        .pill-badge{
            background-color: darken($primary-color,10);
        }
        
    }

    .navlink-container{

        max-width: max-content;
        padding: 0 0.25rem;
        margin: auto;
        text-align: left;

        .navlink {
            color: white;
            padding: 0.4rem 0.6rem;
            border-radius: 1rem;
            background-color: rgb(82, 82, 82);
            transition: background-color, 0.5s;

            &-icon{
                font-size: 1.4rem;
            }
    
            &-text{
                display: inline;
                font-size: 0.9rem;
                text-align: center;
                transition: width 1s;
            }

            &:hover{
                max-width: max-content;
                background-color: rgb(201, 0, 0);
                .navlink-text{
                    display:inline;
                }
            }
        } 


    }
}

#menu-toggle {
    color: white;
    font-size: 1.2rem;
    padding: 0.2rem;
    border-radius: 0.2rem;
    transition: background-color 0.2s;

    &:hover {
        background-color: $primary-color;
    }

}