/* Block level styles */
.block.block_pendingnotifications {
    &::before {
        content: '';
        position: absolute;
        top: 20px;
        left: 0;
        height: 28px;
        width: 36px;
        background-image: url([[pix:block_pendingnotifications|message]]);
        background-size: 17px;
        background-position: center;
        background-repeat: no-repeat;
        background-color: $block-warning-ribbon;
        border-top-right-radius: 3px;
        border-bottom-right-radius: 3px;
    }
    .no-pending-messages {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 24px;
    }
    .no-pending-messages-image {
        max-width: 100%;
        height: 140px;
    }
    .no-pending-messages-text {
        color: $filterstext;
    }
    .pending-messages-list {
        padding-left: 0;
        .inner-card {
            display: flex;
            flex-direction: row !important;
            align-items: stretch;
            min-height: 48px;
            padding: 12px !important;
            margin-bottom: 12px;
            color: $graytext;
            .pending-message-course-image-wrap {
                flex: 0 0 72px;
                min-width: 72px;
                min-height: 0;
                align-self: stretch;
                overflow: hidden;
                border-radius: 4px;
                margin-right: 12px;
                position: relative;
                .pending-message-course-image {
                    display: block;
                    object-fit: cover;
                    position: absolute;
                    min-height: 0;
                    max-height: 100%;
                    inset: 0;
                    width: 100%;
                    height: 100%;
                }
            }
            .pending-message-card-course-name {
                font-size: 15px;
                font-weight: 600;
                color: $graytext;
                text-transform: capitalize;
                margin-bottom: 2px;
            }
            .pending-message-card-number {
                border-radius: 6px;
                background: rgba($primary, 0.08);
                font-size: 11px;
                font-weight: 400;
                color: $primary;
                display: flex;
                justify-content: center;
                align-items: center;
                padding: 3px 10px;
                max-width: fit-content;
            }
            .pending-message-card-arrow {
                margin-left: auto;
                align-self: center;
                &::before {
                    content: '';
                    display: block;
                    height: 24px;
                    width: 24px;
                    background-image: url([[pix:block_atriskactivities|arrow-narrow-right]]);
                    background-size: 24px;
                    background-position: center;
                    background-repeat: no-repeat;
                }
            }
        }
    }
    .block-button {
        display: block;
        margin-left: auto;
        margin-right: auto;
    }
}
/* In-modal styles */
.pendingnotifications-modal {
    .modal-dialog {
        max-width: 640px;
        .modal-header {
            border-bottom: none;
            padding: 24px 36px 0 36px;
            h5.modal-title {
                color: $graytext !important;
            }
        }
        .modal-body {
            padding: 24px 36px 12px 36px;
        }
    }
    .inner-card {
        display: flex;
        flex-direction: row !important;
        align-items: stretch;
        min-height: 48px;
        padding: 12px !important;
        margin-bottom: 12px;
        background: #FFF;
        box-shadow: $shadow-1;
        border: 1px solid #eeeeeeb0;
        border-radius: 6px;
        color: $graytext;
        &.is-clicable:hover {
            box-shadow: $shadow-1-hover;
        }
        &.is-clicable:active {
            box-shadow: $shadow-1-active;
        }
        /* Course card */
        .pending-message-course-image-wrap {
            flex: 0 0 72px;
            min-width: 72px;
            min-height: 0;
            align-self: stretch;
            overflow: hidden;
            border-radius: 4px;
            margin-right: 12px;
            position: relative;
            .pending-message-course-image {
                display: block;
                object-fit: cover;
                position: absolute;
                min-height: 0;
                max-height: 100%;
                inset: 0;
                width: 100%;
                height: 100%;
            }
        }
        .pending-message-card-course-name {
            font-size: 15px;
            font-weight: 600;
            color: $graytext;
            text-transform: capitalize;
            margin-bottom: 2px;
        }
        .pending-message-card-number {
            border-radius: 6px;
            background: rgba($primary, 0.08);
            font-size: 11px;
            font-weight: 400;
            color: $primary;
            display: flex;
            justify-content: center;
            align-items: center;
            padding: 3px 10px;
            max-width: fit-content;
        }
        .pending-message-card-arrow {
            margin-left: auto;
            align-self: center;
            &::before {
                content: '';
                display: block;
                height: 24px;
                width: 24px;
                background-image: url([[pix:block_pendingnotifications|arrow-narrow-right]]);
                background-size: 24px;
                background-position: center;
                background-repeat: no-repeat;
            }
        }
        /* Notification card */
        .pending-message-card-icon {
            display: flex;
            align-items: center;
            justify-content: center;
            background-color: rgba($primary, 0.08);
            width: 42px;
            min-width: 42px;
            border-radius: 4px;
            margin-right: 12px;
            .icon.material-icons.activityicon.notifications {
                margin-right: 1px;
                color: $primary;
            }
        }
        .pending-message-card-subject {
            font-size: 15px;
            font-weight: 600;
        }
        .pending-message-card-time {
            font-size: 14px;
            color: #6D6C83;
        }
    }
    /* Two-step slider styles */
    .pendingnotifications-slider {
        overflow: hidden;
        width: 100%;
        .pendingnotifications-track {
            display: flex;
            width: 200%;
            transform: translateX(0);
            transition: transform 280ms ease;
            will-change: transform;
            .pendingnotifications-view {
                flex: 0 0 100%;
                width: 100%;
                &.pendingnotifications-view-all,
                &.pendingnotifications-view-course {
                    .pending-messages-list-in-modal {
                        padding-left: 0;
                        max-width: 49%;
                        margin-left: 4px;
                        margin-top: 4px;
                    }
                }
            }
            .pendingnotifications-course-header {
                margin-bottom: 24px;
                .pendingnotifications-course-title {
                    font-size: 15px;
                }
            }
        }
    }
}

/* Two-step slider animation */
.pendingnotifications-modal-slider.is-course-open .pendingnotifications-track{
    transform: translateX(-100%);
}

/* Fixing min-height to allow smooth animation */
.modal.pendingnotifications-modal .modal-dialog-scrollable .modal-content:has(.pendingnotifications-modal-slider) {
    min-height: 300px;
}