/**
 * Notifications Page Styles
 */

/* Action Header */
.notifications-header-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding: 10px 15px;
    background: var(--bg-secondary);
    border-radius: 12px;
    border: 1px solid var(--border-color);
}

.notifications-header-actions span {
    font-size: 13px;
    color: var(--text-secondary);
    font-weight: 600;
}

.notifications-header-actions .actions-group {
    display: flex;
    gap: 10px;
}

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

.notification-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 15px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    transition: background-color 0.2s;
    position: relative;
}

.notification-link-area {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 15px;
    text-decoration: none;
    min-width: 0; /* Prevents content from overflowing */
}

.notification-item.unread {
    background: rgba(124, 58, 237, 0.08);
    border-left: 4px solid var(--accent-purple);
}

.notification-item:hover {
    background: var(--bg-input);
    border-color: var(--accent-purple);
}

.notification-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    flex-shrink: 0;
}

.notification-content {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.notification-actor-avatar .avatar-img {
    width: 36px;
    height: 36px;
    border-radius: 50%;
}

.notification-text {
    font-size: 14px;
    color: var(--text-color);
    line-height: 1.4;
}

.notification-text strong {
    color: var(--white);
    font-weight: 700;
}

.notification-time {
    display: block;
    font-size: 11px;
    color: var(--text-secondary);
    margin-top: 4px;
}

/* New Delete Button */
.notification-delete-btn {
    background: transparent;
    border: none;
    color: var(--text-muted);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 14px;
    flex-shrink: 0;
    opacity: 0.5;
    transition: all 0.2s ease;
}

.notification-item:hover .notification-delete-btn {
    opacity: 1;
}

.notification-delete-btn:hover {
    background: rgba(239, 68, 68, 0.15);
    color: var(--danger);
}

/* Edit Mode Styles */
.notification-select-checkbox {
    display: none;
    margin-right: 15px;
    animation: fadeIn 0.3s;
}

.notifications-list.edit-mode .notification-select-checkbox {
    display: block;
}

.notifications-list.edit-mode .notification-link-area {
    pointer-events: none; /* Disable navigation in edit mode */
}

.notifications-list.edit-mode .notification-delete-btn {
    display: none; /* Hide individual delete buttons in edit mode */
}

.notification-item.selected {
    background: rgba(0, 212, 255, 0.1);
    border-color: var(--accent-cyan);
}

/* Bottom Action Bar */
.notifications-bottom-actions {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--bg-card);
    border-top: 1px solid var(--border-color);
    padding: 15px 20px;
    display: none;
    align-items: center;
    justify-content: space-between;
    z-index: 2500; /* Above content, below navbar */
    transform: translateY(100%);
    transition: transform 0.3s ease;
    box-shadow: 0 -5px 20px rgba(0,0,0,0.3);
}

.notifications-list.edit-mode + .notifications-bottom-actions {
    display: flex;
    transform: translateY(0);
}

.selection-info {
    font-size: 14px;
    color: var(--text-secondary);
}

.selection-info #selection-count {
    font-weight: 700;
    color: var(--accent-cyan);
}

@media (min-width: 993px) {
    .notifications-bottom-actions {
        left: 280px; /* Adjust for desktop sidebar */
        border-radius: 16px 16px 0 0;
    }
}

@media (max-width: 992px) {
    .notifications-bottom-actions {
        padding-bottom: 25px; /* Safe area for mobile */
    }
}