.header {
    background: $bg-light;
    padding: $space10 0;

    img {
        width: auto;
        height: auto;
    }

    .top-header {
        @include flex;

        .logo {
            width: 120px;
        }

        .h-right {
            display: flex;
            align-items: center;
            position: relative;
        }

        .notification {
            position: relative;
            padding: 0 8px;
            margin-right: $space5;

            img {
                height: 28px;
            }

            .count {
                @include font-size(12px);
                line-height: 10px;
                position: absolute;
                top: 1px;
                right: 5px;
                color: $white;
                background: #D03636;
                width: 15px;
                height: 9px;
                border-radius: 50%;
                text-align: center;
                padding: 3px 0;

            }
        }

        .user {
            position: relative;
            padding-right: $space20;

            img {
                width: 30px;
                height: 30px;
            }

            &::after {
                content: '';
                position: absolute;
                top: 12px;
                right: 0;
                background: url('../images/dropdown-1.svg') no-repeat;
                display: inline-block;
                height: 9px;
                width: 15px;
                margin-left: $space5;
                transition: 0.3s all ease-in-out;
            }

            &.active {
                &::after {
                    transform: rotate(180deg);
                }
            }

        }

        .dropdown {
            position: relative;
        }

        .notification-popup {
            position: absolute;
            right: -68px;
            top: 51px;
            width: 350px;
            background: $white;
            border: $common-border;
            border-radius: 5px;
            z-index: 2;

            .popup-head {
                border-bottom: $common-border;

                .head-name {
                    @include font-size(16px);
                    line-height: 18px;
                    font-family: $robotomedium;
                    color: $title-color;
                }
            }

            .popup-head,
            .popup-bottom {
                @include flex;

                .link {
                    @include font-size(14px);
                    line-height: 18px;
                    color: $primary-color;
                    text-decoration: underline;
                }

                .close-notification {
                    margin-left: $space15;
                    cursor: pointer;
                }
            }

            .popup-body,
            .popup-bottom,
            .popup-head {
                padding: $space10 $space15;
            }

            .popup-body {
                height: 300px;
                overflow: auto;

                .small-head {
                    @include font-size(14px);
                    line-height: 16px;
                    font-family: $robotomedium;
                    color: $subtitle-color;
                    margin-bottom: $space10;
                }

                .box {
                    margin-bottom: $space15;

                    &:nth-last-of-type(1) {
                        margin-bottom: 0;
                    }
                }

                .single-nf {
                    display: flex;
                    align-items: flex-start;
                    padding: $space10;
                    background: $light-blue;
                    border-bottom: $common-border;

                    &.read {
                        background: transparent;
                        border-bottom: none;
                    }

                    img {
                        margin-right: $space5;
                    }

                    .nf-name,
                    .time {
                        line-height: 18px;
                    }

                    .nf-name {
                        display: block;
                        margin-bottom: 2px;
                        @include font-size(14px);
                        color: $title-color;
                    }

                    .time {
                        @include font-size(13px);
                        color: $subtitle-color;
                    }
                }
            }

            .popup-bottom {
                border-top: $common-border;

                .view-all {
                    @include font-size(14px);
                    line-height: 14px;
                    color: $white;
                    background: $primary-color;
                    padding: $space5 $space10;
                    border-radius: 5px;
                    transition: 0.3s all ease-in-out;

                    @media (hover:hover) {
                        &:hover {
                            background: $primary-hover;
                        }
                    }
                }
            }
        }

        .notification-popup,
        .drp-list {
            display: none;

            &.show {
                display: block;
                animation-duration: 0.3s;
                animation-fill-mode: both;
                animation-name: dropdownslideIn;
            }
        }

        .drp-list {
            position: absolute;
            right: 0;
            top: 52px;
            border-radius: 10px;
            border: $common-border;
            background: $white;
            padding: $space10 0;
            width: 180px;

            img {
                vertical-align: bottom;
                margin-right: $space10;
            }

            .single-link {
                padding: $space5 $space15;
                margin-bottom: $space10;
                display: block;
                @include font-size(15px);
                line-height: 18px;
                color: $title-color;

                &:nth-last-of-type(1) {
                    margin-bottom: 0;
                }
            }

        }
    }


    @keyframes dropdownslideIn {
        0% {
            transform: translateY(1rem);
            opacity: 0;
        }

        100% {
            transform: translateY(0rem);
            opacity: 1;
        }

        0% {
            transform: translateY(1rem);
            opacity: 0;
        }
    }
}

.no-scroll{
    overflow: hidden;
}

@media screen and (min-width:768px) {
    .header {
        .top-header {
            .logo {
                width: unset;
            }

            .notification {
                margin-right: $space15;
            }

            .notification-popup {
                width: 460px;

                .popup-body{
                    height: 490px;
                }
            }
        }
    }
}