/* Notifications Page Styles */

.notifications-page-container {
    max-width: 800px;
    margin: 0 auto;
    padding-bottom: 40px;
}

.notifications-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    padding: 0 10px;
}

.notifications-header h2 {
    font-size: 1.6rem;
    color: var(--dark-gray, #343a40);
    font-weight: 700;
    margin: 0;
    position: relative;
    padding-right: 15px;
}

.notifications-header h2::before {
    content: '';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 24px;
    background-color: var(--primary-color, #007bff);
    border-radius: 2px;
}

.mark-all-btn {
    background-color: transparent;
    border: 1px solid var(--primary-color, #007bff);
    color: var(--primary-color, #007bff);
    padding: 8px 18px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.mark-all-btn:hover {
    background-color: var(--primary-color, #007bff);
    color: white;
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.2);
}

.notifications-list {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.notification-card {
    background: var(--card-bg, #ffffff);
    border-radius: 12px;
    padding: 8px;
    display: flex;
    gap: 12px;
    align-items: flex-start;
    position: relative;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid transparent;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    text-decoration: none !important;
    color: inherit;
}

.notification-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.08);
    border-color: rgba(0, 0, 0, 0.05);
}

/* Unread State */
.notification-card.unread {
    background-color: #f0f7ff;
    /* Very light blue */

}

.notification-card.unread::after {
    /* Was overlapping body text on some screen sizes. Moved to avatar below. */
    content: none;
}

.notification-avatar {
    flex-shrink: 0;
    position: relative;
}

.notification-card.unread .notification-avatar::after {
    /* Keep avatar clear for verification and online/offline badges. */
    content: none;
}

.notification-avatar img {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid white;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.notification-icon-badge {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 28px;
    height: 28px;
    background-color: var(--primary-color, #007bff);
    border-radius: 50%;
    border: 2px solid white;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 12px;
}

.notification-content {
    flex-grow: 1;
    padding-top: 2px;
}

.notification-header-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 2px;
}

.notification-title {
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--dark-gray, #212529);
    margin: 0;
}

.notification-title-with-dot {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    direction: rtl;
}

.notification-title-text {
    display: inline-block;
}

.message-unread-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: var(--primary-color, #007bff);
    box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.14);
    flex-shrink: 0;
}

.notification-time {
    font-size: 0.72rem;
    color: var(--secondary-color, #6c757d);
    font-weight: 500;
}

.notification-body {
    font-size: 0.78rem;
    color: var(--secondary-color, #4a5568);
    line-height: 1.35;
    margin: 0;
    margin-bottom: 4px;
}

.notification-action {
    display: inline-flex;
    align-items: center;
    font-size: 0.65rem;
    font-weight: 600;
    color: var(--primary-color, #007bff);
    background-color: rgba(0, 123, 255, 0.08);
    padding: 2px 6px;
    border-radius: 10px;
    transition: background 0.2s;
}

.notification-action:hover {
    background-color: rgba(0, 123, 255, 0.15);
}

.empty-state {
    text-align: center;
    padding: 60px 20px;
    background: white;
    border-radius: 16px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
}

.empty-state-icon {
    font-size: 4rem;
    color: var(--medium-gray, #e9ecef);
    margin-bottom: 20px;
}

.empty-state-text {
    color: var(--secondary-color, #6c757d);
    font-size: 1.1rem;
    font-weight: 600;
}

/* Pagination Customization */
.pagination {
    justify-content: center;
    margin-top: 30px;
}

/* Message-type notification highlighting */
.notification-card.message-type {
    border-right: 3px solid #17a2b8;
}

.notification-card.message-type.unread {
    background-color: #e8f9fd;
}

/* Notification group time headers */
.notification-group-header {
    font-size: 0.8rem;
    font-weight: 700;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin: 1.25rem 0 0.5rem;
    padding-right: 8px;
}

.notification-group-pill {
    display: inline-block;
    font-weight: 700;
    color: var(--primary-color, #007bff);
    padding: 2px 8px;
    border-radius: 12px;
    background: rgba(0, 0, 0, 0.05);
    margin-left: 5px;
    font-size: 0.85em;
}

.notifications-feed-status {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px 0 24px;
}

.notifications-feed-loader {
    font-size: 0.9rem;
    color: #6b7280;
}

#notifications-feed-sentinel {
    height: 1px;
    width: 100%;
}

/* Filter tabs */
.notification-filter-tab {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
    color: #6b7280;
    background: #f3f4f6;
    border: 1px solid transparent;
    transition: all 0.2s ease;
}

.notification-filter-tab:hover {
    background: #e5e7eb;
    color: #374151;
}

.notification-filter-tab.active {
    background: var(--primary-color, #007bff);
    color: white;
    border-color: var(--primary-color, #007bff);
}