/**
* This is style file for projectopia header section.
*
* @package projectopia
*/

//Reset root colors.
:root {
    --mainColor: #6576ff;
    --mainSallowColor: #48a463;
    --mainColorDark: #2c3782;
    --subOrdinateColor: #ff6a6a;
    --initFontSize: 14px;
    --orangeColor: #ff9f10;
    --redColor: #f22020;
    --brightTurquoise: #00bfe7;
    --sallowTurquoise: #e1f3f8;
    --redSallowColor: #ffe5e5;
    --whiteColor: #ffffff;
    --darkWhiteColor: #f5f6fa;
    --graySallowColor: #99a6b9;
    --grayColor: #56606d;
    --grayDeepColor: #2d405a;
    --whiteDark: #f5f6fa;
    --caribbeanGreen: #00cd98;
}

* {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
}

body {
    padding: 0;
    margin: 0;
    font-family: 'Cabin', sans-serif;
    background-color: var(--darkWhiteColor);
}

html {
    overflow-x: hidden ;
    width: 100%;
    height: 100%;
    position: relative;
    text-rendering: optimizeLegibility;
}

.container-fluid {
    max-width: 1440px;
}

//Overwrite the link style in new version.
.wp-pto-v5x {

    a {
        color: var(--mainColor);
    }

    .piaBtn {
        font-weight: 500;
        font-size: var(--initFontSize);
        color: #ffffff;
        background-color: var(--mainColor);
        border: 1px solid var(--mainColor);
        padding: 0 20px;
        line-height: 36px;
        display: inline-block;
        border-radius: 4px;
        text-decoration: none;
        text-transform: capitalize;
        transition: 0.3s;

        &:focus,
        &:hover {
            outline: none;
            text-decoration: none;
            background-color: transparent;
            color: var(--mainColor);
        }

        &.btn-red {
            color: #fff;
            background-color: #c82333;
            border-color: #bd2130;
        }
    }
}

//Projectopia header styles.
#pto-header {
    background-color: var(--mainColorDark);
    min-height: 70px;
    display: flex;
    align-items: center;

    .container-fluid {
        max-width: 110rem;
    }

    .wp-logo {
        max-height: 2.5rem;
    }
    
    .projectopia-logo {
        max-height: 3.5rem;
    }

    .user-name {
        text-transform: capitalize;
    }

    .navbar {
        background-color: transparent;
        padding: 0;

        .btnNavToggle {
            &:focus {
                outline: none;
                box-shadow: none;
            }
        }

        .navbar-brand {
            line-height: 0;
        }

        .navbar-collapse {
            flex-basis: auto;
        }

        .nav-item {
            margin: 0px;
            padding: 0px;

            &.active {
                a.nav-link {
                    color: #c4cefe !important;
                    position: relative;
    
                    &:after {
                        width: 100%;
                    }
                }
            }
        }

        .dropdown-menu {
            margin: 0;
            padding: 10px;
            position: absolute ;
            left: 0;
            top: 100%;
            min-width: 180px;

            .dropdown-item {
                padding: .25rem .5rem;
                color: #212529;
                font-size: 14px;

                &::after {
                    display: none;
                }

                &:hover,
                &:active {
                    color: var(--mainColor) ;
                    background-color: transparent;
                    box-shadow: none;
                    text-shadow: none;
                    outline: none;
                }
            }
        }

        .dropdown-toggle {
            &::before {
                font-family: "Nioicon" ;
                right: -15px;
                position: absolute;
                top: 0;
                font-size: 10px;
            }
        }

        .dropdown-item.active,
        .dropdown-item:hover,
        .dropdown-item:active {
            background-color: var(--mainColor);

            a {
                color: #fff ;
            }
        }

        a.nav-link {
            font-weight: 500;
            font-size: 14px;
            padding: 0;
            margin: 0 11px;
            line-height: 70px;
            transition: 0.3s;
            font-family: 'Cabin', sans-serif !important;
            text-transform: capitalize;
            position: relative;
            transition: all 0.6s;
            color: var(--darkWhiteColor);

            &::after {
                position: absolute;
                content: "";
                width: 0;
                height: 3px;
                left: 0px;
                bottom: 0;
                background: #c4cefe;
                border: 0;
                margin: 0;
                transition: all 0.6s;
            }

            &:hover {
                color: #c4cefe ;

                &::after {
                    width: 32px;
                }
            }

            &:focus {
                box-shadow:none;
                outline:none;
            }
        }

        ul.rightNavbar {

            .notification-dropdown-menu {
                position: absolute;
                left: initial ;
                right: 0 ;
                top: 100% ;
                z-index: 100;
            }

            .dropdown {
                position: relative;
                .btn-notify {
                    width: 30px;
                    height: 30px;
                    padding: 0;
                    margin: 0;
                    background-color: transparent;
                    margin-top: 4px;

                    @media (max-width: 576px) {
                        width: 20px;
                        height: 20px;
                    }

                    &.btn-profile {
                        width: auto;
                        height: auto;
                        display: flex;
                        align-items: center;
                        color: #ffffff;
                        > img {
                            width: 35px;
                            height: 35px;
                            object-fit: cover;
                            object-position: center;
                            border-radius: 100%;
                        }
                        > span {
                            font-style: normal;
                            font-weight: 500;
                            font-size: 16px;
                            line-height: 19px;
                            color: #ffffff;
                            display: inline-block;
                            
                            @media (max-width: 576px) {
                                display: none !important;
                            }
                        }
                    }

                    &.btn-upgrade {
                        width: auto;
                        height: auto;
                        display: flex;
                        align-items: center;
                        color: #ffffff;
                        background-color: #e53737;
                        padding: 5px 8px;
                        font-size: 14px;
                        @media (max-width: 576px) {
                            margin-top: 12px;
                        }

                        > span {
                            @media (max-width: 576px) {
                                display: none;
                            }
                        }
                    }

                    &:focus {
                        outline: none;
                        box-shadow: none;
                    }

                    > .count {
                        position: absolute;
                        top: -3px;
                        right: -3px;
                        width: 18px;
                        height: 18px;
                        border-radius: 100%;
                        background-color: #f34444;
                        display: block;
                        font-size: 12px;
                        color: #ffffff;
                    }
                }
            }

            li {
                + li {
                    margin-left: 15px;
                    @media (max-width: 576px) {
                        margin-left: 8px;
                    }
                }
            }
        }

        ul.responsiveMenu.navbar-nav {

            @media (max-width: 1200px) {

                position: fixed;
                width: 250px;
                height: 100vh;
                top: 0;
                left: 0;
                z-index: 100;
                background-color: var(--mainColor);
                transform: translateX(-100%);
                transition: all 0.3s linear;
                padding: 20px;

                &.is-vissible {
                    transform: translateX(0);
                }

                li.nav-item {
                    .nav-link {
                        line-height: 20px ;
                        padding: 7px 0 ;
                        display: block;
                        margin: 0;

                        i.fa {
                            margin-right: 0;
                            float: right;
                        }
                    }

                    &.active {
                        .nav-link {
                            &:after {
                                display: none;
                            }
                        }
                    }
                }
            }
        }
    }

    .pto-notifications-widget {
        width: 300px;
        z-index: 998;
        position: absolute;
        padding:0;
        border-radius: 6px;
        padding: 8px;
        background: var( --mainColor );
        left: -150px !important;

        .notification_message a {
            color: #000 !important;
            text-decoration: none;
        }
    
        #notification_list {
            background: #fff;
            margin: 5px 0;
            max-height: 400px;
            overflow: auto;

            ul li {
                display:block;
                padding:6px;
                border-bottom: 1px dotted #ececec;
                padding-left: 0.95rem;
                margin-left: 0;
            }

            ul li.unread {
                background:#efefef;
                border-bottom: 1px dotted #fff;
                margin: 3px;
                padding-left: 0.95rem;
            }

            ul li:first-child {
                border-top-left-radius:4px;
                border-top-right-radius:4px;
            }


            ul li:last-child {
                border-bottom:0;
                border-bottom-left-radius:4px;
                border-bottom-right-radius:4px;
            }
        }

        h3 {
            font-size: 20px;
            text-align: center;
        }

        #notification_actions {
            padding-top: .3125rem;
        }
    }

    @media ( max-width: 1540px ) {
        /*.navbar .navbar-collapse {
            flex-direction: column-reverse !important;
        }*/

        .navbar-right {
            padding: 10px 0;
        }
    }
}

.pto-admin-breadcrumbs {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 30px;
    background: #fff;
    padding: 15px 30px;
    /*border: solid 1px #ebebeb;*/
    border-radius: .375rem;

    .pto-admin-breadcrumbs__title {
        font-size: calc(var(--initFontSize) - 4px );
        h1 {
            font-weight: normal;
            font-size: calc(var(--initFontSize) + 4px);
            line-height: 22px;
            color: #2d405a;
        }

        span {
            margin: 0 5px;
        }

        a,
        span {
            font-size: var(--initFontSize);
            line-height: 15px;
            color: var(--mainColor);

            &:hover {
                text-decoration: none;
            }
        }
    }

    .pto-admin-breadcrumbs__back-button {
        font-size: calc(var(--initFontSize) + 2px);
        color: #6576ff;
        display: inline-block;

        &:hover {
            text-decoration: none;
        }

        span {
            color: #6576ff;
            font-size: 24px;
            margin-right: 10px;
            position: relative;
            top: 5px;
        }
    }

    #wpcontent & a {
        color: var(--mainColor);
    } 
}

.pto-notification-alert {
    .pto-notification-alert__content {
        background-color: #ffe7e7;
        border-radius: 6px;
        padding: 30px;
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-top: 30px;
        flex-wrap: wrap;

        .pto-notification-alert__image {
            width: 59px;
            height: 59px;
            background-color: #ffdede;
            border-radius: 50%;
            text-align: center;
            line-height: 50px;
            margin-right: 20px;
        }

        &-info {

            display: -webkit-box;
            display: -ms-flexbox;
            display: flex;
            -webkit-box-align: center;
            -ms-flex-align: center;
            align-items: center;

            h3 {
                font-weight: 500;
                font-size: 18px;
                line-height: 24px;
                color: var( --subOrdinateColor );
            }

            p {
                font-weight: normal;
                font-size: calc(var(--initFontSize) - 1px);
                line-height: 22px;
                color: #56606d;
                margin-bottom: 0;

                &:not( :last-child ) {
                    margin-bottom: 10px;
                }
            }

            .alert_info {
                width: 90%;
                flex-basis: 1;
                flex-shrink: 1;
                flex-grow: 1;
            }

            @media ( max-width: 576px) {
                width: 100%;
                display: block;
                margin: 0;
                margin-bottom: 10px;
            }

            @media ( max-width: 991px) {
                width: 100%;
            }

        }

        @media (max-width: 991px) {
            -webkit-box-orient: vertical;
            -webkit-box-direction: normal;
            -ms-flex-direction: column;
            flex-direction: column;
            -webkit-box-align: start;
            -ms-flex-align: start;
            align-items: flex-start;
            padding: 15px;
        }

    }

}

.notification_avatar {
    float:left;
    border-radius:10px;
    padding-right:6px;
    padding-top:3px;
    max-width:25px;
}

.notification_avatar img {
    max-width:100%;	
    height:auto;
}

.notification_message {
    float:left;
    padding-right:15px;
    font-size:12px;
    position:relative;
}

.notification_message a {
    color:#000;
    text-decoration:none;
}

.notification_remove {
    position:absolute;
    right:0;
    top:6px;
}

.notification_time {
    font-size:10px;
    font-style:italic;
}

.author-other.no_access {
    display: none;
}