:root {
--notifications-profile-image-size: 45px;
--notifications-profile-image: 0.25rem;
}

.nav-item-notifications, .notifications {

    .notification-toggle {
        position: relative;
        .notify {
            position: absolute;
            top: 0;
            right: 0;
            padding: 0 6px;
            line-height: 18px;
            font-size: 11px;
            color: white;
            border-radius: 10rem;
            z-index: 999;
        }

        .notify-important {
            background: $highlight-gradient;
            box-shadow: $highlight-box-shadow;
        }

    }

    .notification-list {
        width: 360px;

        .notification-options {
            border-bottom: 1px solid $gray-400;
        }

        //notification placeholder-card

        @keyframes placeholderAnimation {
            from {
                transform: translateX(0%) rotate(18deg);
            }

            to {
                transform: translateX(340px) rotate(18deg);
            }
        }

        .placeholder-card {
            position: relative;

            &:first-child {
                margin-top: 0.5rem;
            }

            &:last-child {
                margin-bottom: 0.5rem;
            }

            &::after {
                content: '';
                position: absolute;
                width: 60px;
                background: rgba(255,255,255,0.7);
                top: 0;
                bottom: 0;
                transform: rotate(18deg);
                left: 0;
                margin: 0 0 0 -70px;
                filter: blur(10px);
                animation-name: placeholderAnimation;
                animation-duration: 1.2s;
                animation-iteration-count: infinite;
            }


            .placeholder-profile-image {
                width: var(--notifications-profile-image-size);
                height: var(--notifications-profile-image-size);
                margin-top: var(--notifications-profile-image);
                background: $gray-300;
                border-radius: var(--theme-profile-picture-border-radius);
            }

            .subject-placeholder, .date-placeholder, .type-placeholder {
                display: block;
                border-radius: 10rem;
            }

            .date-placeholder, .type-placeholder {
                background: $gray-300;
                height: 7px;
            }

            .subject-placeholder {
                height: 8px;
                width: 120px;
                background: $gray-400;
                margin-top: 8px;
            }

            .date-placeholder {
                width: 80px;
                margin-top: 8px;
            }

            .type-placeholder {
                width: 60px;
                margin-top: 11px;
                margin-bottom: 6px;
            }
        }

        .placeholder-message {

            .placeholder-message-icon {
                font-size: 6rem;
                color: $gray-300;
                line-height: 0;
            }

            .placeholder-message-text {
                color: $gray-800;
            }

        }

        .unread-marker-column {
            width: 10px;
            padding: calc(var(--notifications-profile-image-size)/2) 0;
            margin-right: 10px;
            margin-left: 1px;
        }

        //notification message cards
        .notification_wrapper {
            position: relative;
            overflow: auto;
            max-height: 520px;

            .notification {
                background: #fff;
                font-size: 0.875rem;

                &:first-child {
                    margin-top: 0.5rem;
                }

                &:last-child {
                    margin-bottom: 0.5rem;
                }


                .notification-profile-image {
                    height: var(--notifications-profile-image-size);
                    width: var(--notifications-profile-image-size);
                    margin-top: var(--notifications-profile-image);
                }

                //Unread notifications
                &.notification-unread {
                    .unread-marker {
                        background: $highlight-gradient;
                        box-shadow: $highlight-box-shadow;
                        opacity: 1;
                        width: 11px;
                        height: 11px;
                        border-radius: 10rem;

                        @keyframes fadeIn {
                            0% { opacity: 0; }
                            100% { opacity: 1; }
                        }

                        &.marker-fade {
                            animation: fadeIn 0.75s;
                        }
                    }
                }

                // notification link styling
                .notification-link {
                    color: $gray-800;
                    text-decoration: none;
                    word-break: break-word;
                }

                .options {
                    color: $gray-700;
                }

                .communication-action {
                    color: $gray-700;
                }

                .notification-type {
                    font-size: 80%;
                }

                .no_sender {
                    background: $gray-300;
                    width: var(--notifications-profile-image-size);
                    line-height: var(--notifications-profile-image-size);
                    margin-top: var(--notifications-profile-image);
                    display: block;
                    text-align: center;
                    color: #fff;
                    font-size: 26px;
                    border-radius: 10rem;
                }

                .message {
                    padding: 10px;
                    border: 1px solid $gray-300;
                    background: #fff;
                    color: $gray-800;

                    img {
                        max-height: 550px;
                        width: auto !important;
                    }
                }
            }
        }
    }
}
