.all-notifications-page {
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    padding: 32px 24px;
    box-sizing: border-box;
}

/* Page header */
.all-notifications-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    padding: 20px 26px;
    margin-bottom: 24px;
    border-radius: 14px;
    background: linear-gradient(135deg, #312e81, #6d28d9);
    color: #fff;
    box-shadow: 0 5px 16px rgba(49, 46, 129, 0.16);
}

.all-notifications-header h4 {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
    font-size: 21px;
    font-weight: 700;
}

.back-home {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 9px 14px;
    border: 1px solid #379d32;
    border-radius: 8px;
    background: #379d32;
    color: #fff !important;
    text-decoration: none !important;
    font-size: 13px;
    white-space: nowrap;
    transition: background 0.2s ease;
}

.back-home:hover {
    background: #fff;
    border-color: #fff;
    color: #000 !important;
}

/* Notification list */
.all-notification-item {
    display: flex;
    align-items: center;
    gap: 18px;
    width: 100%;
    box-sizing: border-box;
    padding: 20px 22px;
    margin-bottom: 14px;
    background: #fff;
    border: 1px solid #e0e7ff;
    border-radius: 14px;
    color: #1f2937 !important;
    text-decoration: none !important;
    box-shadow: 0 2px 6px rgba(49, 46, 129, 0.04);
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.all-notification-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 7px 20px rgba(49, 46, 129, 0.12);
}

.all-notification-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    min-width: 50px;
    border-radius: 14px;
    background: #ede9fe;
    color: #7c3aed;
    font-size: 19px;
}

/* Different icon colours */
.all-notification-item:nth-of-type(5n + 1) .all-notification-icon {
    background: #ede9fe;
    color: #7c3aed;
}

.all-notification-item:nth-of-type(5n + 2) .all-notification-icon {
    background: #dbeafe;
    color: #2563eb;
}

.all-notification-item:nth-of-type(5n + 3) .all-notification-icon {
    background: #dcfce7;
    color: #16a34a;
}

.all-notification-item:nth-of-type(5n + 4) .all-notification-icon {
    background: #ffedd5;
    color: #ea580c;
}

.all-notification-item:nth-of-type(5n) .all-notification-icon {
    background: #fce7f3;
    color: #db2777;
}

.all-notification-details {
    flex: 1;
    min-width: 0;
}

.all-notification-title {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 7px;
    color: #111827;
    font-size: 16px;
    font-weight: 650;
    line-height: 1.5;
    overflow-wrap: anywhere;
}

.all-notification-title .badge {
    font-size: 10px;
    padding: 4px 7px;
    border-radius: 5px;
}

.all-notification-date {
    display: flex;
    align-items: center;
    gap: 7px;
    color: #6b7280;
    font-size: 13px;
}

.all-notification-date i {
    color: #7c3aed;
}

.all-notification-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    min-width: 36px;
    border-radius: 50%;
    background: #f5f3ff;
    color: #7c3aed;
    font-size: 25px;
    transition: transform 0.2s ease, background 0.2s ease;
}

.all-notification-item:hover .all-notification-arrow {
    transform: translateX(3px);
    background: #ede9fe;
}

/* Empty state */
.all-notifications-empty {
    padding: 45px 20px;
    text-align: center;
    background: #fff;
    border: 1px dashed #c7d2fe;
    border-radius: 14px;
    color: #6b7280;
}

.all-notifications-empty i {
    display: block;
    margin-bottom: 12px;
    color: #7c3aed;
    font-size: 30px;
}

/* Pagination */
.all-notifications-pagination {
    display: flex;
    justify-content: center;
    margin-top: 28px;
}

.all-notifications-pagination nav {
    max-width: 100%;
}

/* Responsive */
@media (max-width: 768px) {
    .all-notifications-page {
        padding: 20px 14px;
    }

    .all-notifications-header {
        padding: 17px;
        margin-bottom: 18px;
    }

    .all-notifications-header h4 {
        font-size: 18px;
    }

    .all-notification-item {
        gap: 12px;
        padding: 15px;
        margin-bottom: 11px;
    }

    .all-notification-icon {
        width: 42px;
        height: 42px;
        min-width: 42px;
        font-size: 16px;
    }

    .all-notification-title {
        font-size: 14px;
    }

    .all-notification-date {
        font-size: 12px;
    }

    .all-notification-arrow {
        width: 30px;
        height: 30px;
        min-width: 30px;
        font-size: 21px;
    }
}

@media (max-width: 420px) {
    .all-notifications-header {
        gap: 12px;
    }

    .all-notifications-header h4 {
        font-size: 16px;
    }

    .back-home {
        padding: 8px 10px;
        font-size: 12px;
    }

    .all-notification-item {
        gap: 10px;
        padding: 12px;
    }

    .all-notification-icon {
        width: 36px;
        height: 36px;
        min-width: 36px;
    }

    .all-notification-arrow {
        width: 26px;
        height: 26px;
        min-width: 26px;
    }
}

/* Main white container around the entire notification list */
.all-notifications-wrapper {
    background: #ffffff;
    border: 1px solid #e0e7ff;
    border-radius: 18px;
    padding: 24px;
    box-shadow: 0 4px 20px rgba(49, 46, 129, 0.08);
}

/* Header inside the white container */
.all-notifications-header {
    margin-bottom: 22px;
}

/* Individual notification cards */
.all-notification-item {
    background: #ffffff;
}

/* Mobile */
@media (max-width: 768px) {
    .all-notifications-wrapper {
        padding: 14px;
        border-radius: 14px;
    }
}

/* Scrollable notifications list */
.all-notifications-list {
    max-height: 600px;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 4px 10px 4px 4px;
    scroll-behavior: smooth;
}

/* Custom vertical scrollbar */
.all-notifications-list::-webkit-scrollbar {
    width: 8px;
}

.all-notifications-list::-webkit-scrollbar-track {
    background: #f5f3ff;
    border-radius: 10px;
}

.all-notifications-list::-webkit-scrollbar-thumb {
    background: #a78bfa;
    border-radius: 10px;
}

.all-notifications-list::-webkit-scrollbar-thumb:hover {
    background: #6d28d9;
}

/* Firefox scrollbar */
.all-notifications-list {
    scrollbar-width: thin;
    scrollbar-color: #a78bfa #f5f3ff;
}

@media (max-width: 768px) {
    .all-notifications-list {
        max-height: 500px;
        padding-right: 6px;
    }
}