/*
Template Name: Material HeadUp
Author: UnEspace
Email: rampeur@gmail.com
File: scss
*/

/*******************
Main sidebar
******************/

#snav{
    box-shadow: 1px 0px 20px rgba(0, 0, 0, 0.08);
    &.mat-drawer{
        background: $sidebar;
        width: 240px;
        padding-top: 0px;
    }
    &.mat-drawer-side{
        border-right: 0px solid $sidebar;
    }
    mat-list-item {
        height: auto;
        padding: 0px 10px;
        &:hover{
            background: none;
        }
        .mdc-list-item__content{
            display: block;
            &:hover{
                background: none;
                span > a{
                    color:$white;
                    background: $sidebar-selected;
                    border-radius: $radius;
                    mat-icon{
                        color:$white;
                    }
                }
            }
        }
        a{
            height: 35px;
            padding: 0 10px;
            margin-top: 8px;
            margin-bottom: 8px;
            align-items: center;
            display: flex;
            font-size: 1rem;
            font-weight: 300;
            white-space: nowrap;
            color:$sidebar-text;
            mat-icon:not(.dd-icon){
                margin-right: 8px;
            }
            mat-icon{
                color:$sidebar-icons;
            }
            .dd-icon{
                font-size: 16px;
                width: 16px;
                transition: 0.2s ease-in;
                margin: 5px 0 5px 5px;
                height: 16px;
            }
        }
        &.selected > .mdc-list-item__content span > a{
            background: $sidebar-selected;
            border-radius: $radius;
            color:$white;
            mat-icon{
                color:$white;
            }
            .dd-icon{
                -webkit-transform: rotate(-180deg);
                transform: rotate(-180deg);
            }
            
        }
        &.selected .sub-item .mdc-list-item__content a.selected{
            background: transparent;
            color:$inverse;
            font-weight: 500;
        }
    }
}
/*******************
use profile section
******************/

.user-profile {
    position: relative;
    height: 162px;
    background-image: url('/assets/images/users/bg_user.jpg');
    background-size: cover;
    background-repeat: no-repeat;
    .profile-img {
        width: 50px;
        margin-left: 30px;
        padding: 30px 0;
        border-radius: 100%;
        &::before {
            -webkit-animation: 2.5s blow 0s linear infinite;
            animation: 2.5s blow 0s linear infinite;
            position: absolute;
            content: '';
            width: 50px;
            height: 50px;
            top: 31px;
            margin: 0 auto;
            border-radius: 50%;
            z-index: 0;
        }
        @-webkit-keyframes blow {
            0% {
                box-shadow: 0 0 0 0px rgba(0, 0, 0, 0.1);
                opacity: 1;
                -webkit-transform: scale3d(1, 1, 0.5);
                transform: scale3d(1, 1, 0.5);
            }
            50% {
                box-shadow: 0 0 0 10px rgba(0, 0, 0, 0.1);
                opacity: 1;
                -webkit-transform: scale3d(1, 1, 0.5);
                transform: scale3d(1, 1, 0.5);
            }
            100% {
                box-shadow: 0 0 0 20px rgba(0, 0, 0, 0.1);
                opacity: 0;
                -webkit-transform: scale3d(1, 1, 0.5);
                transform: scale3d(1, 1, 0.5);
            }
        }
        @keyframes blow {
            0% {
                box-shadow: 0 0 0 0px rgba(0, 0, 0, 0.1);
                opacity: 1;
                -webkit-transform: scale3d(1, 1, 0.5);
                transform: scale3d(1, 1, 0.5);
            }
            50% {
                box-shadow: 0 0 0 10px rgba(0, 0, 0, 0.1);
                opacity: 1;
                -webkit-transform: scale3d(1, 1, 0.5);
                transform: scale3d(1, 1, 0.5);
            }
            100% {
                box-shadow: 0 0 0 20px rgba(0, 0, 0, 0.1);
                opacity: 0;
                -webkit-transform: scale3d(1, 1, 0.5);
                transform: scale3d(1, 1, 0.5);
            }
        }
        img {
            width: 100%;
            border-radius: 100%;
        }
    }
    .profile-text {
        padding: 5px 0 0 0;
        position: relative;
        cursor: pointer;
        white-space: nowrap;
        > a {
            color: $white !important;
            width: 100%;
            padding: 4px 10px 8px 22px;
            background-color: rgba(217, 202, 174, 0.5);
            display: block;
            white-space: nowrap;
            &:after{
                position: absolute;
                right: 20px;
                top:20px;
            }
        }
        .mat-icon {
            line-height: var(--bs-body-line-height);
        }
    }
}

.sidebar-closed #snav{
    &.mat-sidenav ~ .mat-drawer-content {
        margin-left: 0px!important;
    }
}