/* Notifications Sidebar */
.atb-dashboard-notifications-sidebar {
    position: fixed;
    top: calc( 32px + 64px );
    right: 0;
    width: 100%;
    max-width: 500px;
    height: calc( 100vh - 92px );
    background-color: #FFF;
    box-shadow: -10px 12px 14px rgba(0, 0, 0, 0.05);
    opacity: 0;
    visibility: hidden;
    transform: translate3d( 100%, 0, 0 );
    transition: ease transform 300ms, ease opacity 300ms;
    z-index: 1000;

    &.opened {
        opacity: 1;
        visibility: visible;
        transform: none;
    }

    &.closing {
        opacity: 0;
        transform: translate3d( 100%, 0, 0 );
    }

    .atb-dashboard-notifications-sidebar-close {
        position: absolute;
        top: 15px;
        right: 15px;
        transition: ease opacity 300ms;

        &:hover {
            opacity: 0.7;
        }
    }

    .atb-dashboard-notifications-sidebar-header {
        display: flex;
        align-items: center;
        gap: 10px;
        background-color: #EAEEF2;
        padding: 20px 22px;

        .atb-dashboard-notifications-sidebar-header-icon {
            display: flex;
            align-items: center;
            justify-content: center;
            width: 40px;
            height: 40px;
            background-color: #FFF;
            border: 1px solid #EBEDEF;
            border-radius: 35px;

            svg {
                position: relative;
                top: -2px;
            }
        }

        .atb-dashboard-notifications-sidebar-header-content {
            h3 {
                font-size: 16px;
                line-height: 26px;
                font-weight: 600;
                color: #3858E9;
                margin: 0;
            }

            p {
                font-size: 13px;
                line-height: 18px;
                color: #757575;
                margin: 0;
            }
        }
    }

    .atb-dashboard-notifications-sidebar-tabs {
        position: relative;

        &:after {
            content: '';
            position: absolute;
            bottom: -10px;
            left: 20px;
            width: calc( 100% - 40px);
            border-bottom: 1px solid #F0F0F1;
        }

        & + .atb-dashboard-notifications-sidebar-body {
            max-height: calc( 100vh - 232px);
        }
    }

    .atb-dashboard-notifications-sidebar-body {
        padding: 20px;
        overflow-y: auto;
        max-height: calc( 100vh - 180px );
        
        &::-webkit-scrollbar {
            width: 5px;
        }
        &::-webkit-scrollbar-track {
            background: #e2e2e2;
        }
        &::-webkit-scrollbar-thumb {
            background-color: #CCC;
        }
    }

}

/* Notifications (card) */
.atb-dashboard-notification {
    .atb-dashboard-notification-date {
        display: block;
        font-size: 13px;
        line-height: 18px;
        color: #757575;

        & + .atb-dashboard-notification-content {
            margin-top: 20px;
        }
    }

    .changelog-tag {
        display: inline-block;
        font-size: 10px;
        line-height: 18px;
        color: #FFF;
        padding: 0px 10px;
        background-color: #CCC;
        border-radius: 3px;
        text-transform: uppercase;
        font-weight: 600;
        margin-bottom: 5px;

        &.changelog-added {
            background-color: #73B189;
        }

        &.changelog-changed {
            background-color: #F6CA45;
        }

        &.changelog-fixed {
            background-color: #967BE3;
        }
    }

    .changelog-description {
        display: block;
        font-size: 13px;
        line-height: 21px;
        font-weight: 400;
        color: #757575;
        margin-top: 5px;
    }

    .atb-dashboard-notification-content {
        ul {
            margin: 0;
            li {
                display: flex;
                flex-direction: column;
                align-items: flex-start;
                font-size: 16px;
                line-height: 26px;
                font-weight: 600;
                color: #101517;

                & + li {
                    margin-top: 15px;
                    padding-top: 15px;
                    border-top: 1px solid #E7E7E7;
                }
            }   
        }
    }

    & + .atb-dashboard-notification {
        margin: 20px -20px 0px;
        padding: 20px 20px 0px;
        border-top: 1px solid #E7E7E7;
    }
}

.atb-dashboard__top-bar-item-notification {
    &.read {
        .atb-dashboard__top-bar-item-notification-count {
            display: none;
        }
    }
}