/* Notifications Plugin Styles */
.notifications-container {
    max-width: 800px;
    margin: 2rem auto;
    padding: 0 1rem;
}

.notifications-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--form-border-color, #f0f0f0);
}

.notifications-header h1 {
    margin: 0;
    font-size: 1.8rem;
    color: var(--font-color);
}

.notifications-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.notification {
    background: var(--section-bg-color, #fff);
    border: 1px solid var(--form-border-color, #e0e0e0);
    border-radius: 12px;
    padding: 1.5rem;
    position: relative;
    transition: all 0.2s ease;
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 1.25rem;
    align-items: start;
}

.notification.unread {
    background: var(--invitation-bg, #f0f7ff);
    border-left: 5px solid var(--primary-color, #4a90e2);
}

.notification:hover {
    box-shadow: var(--shadow-soft, 0 4px 12px rgba(0, 0, 0, 0.08));
    transform: translateY(-2px);
}

.notif-source {
    font-size: 0.75rem;
    text-transform: uppercase;
    color: var(--font-muted, #888);
    background: var(--section-head-bg-color, #f5f5f5);
    padding: 4px 8px;
    border-radius: 6px;
    height: fit-content;
    font-weight: 600;
}

.notif-content strong {
    display: block;
    font-size: 1.15rem;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
}

.notif-content p {
    margin: 0 0 0.5rem 0;
    color: var(--font-secondary, #555);
    line-height: 1.5;
}

.notif-link {
    display: inline-block;
    color: var(--primary-color, #4a90e2);
    text-decoration: none;
    font-weight: 600;
    margin-top: 0.5rem;
}

.notif-link:hover {
    text-decoration: underline;
    color: var(--primary-hover-color);
}

.notif-meta {
    text-align: right;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.75rem;
}

.notif-time {
    font-size: 0.85rem;
    color: var(--font-muted, #999);
}

.mark-read {
    background: transparent;
    border: 1px solid var(--primary-color, #4a90e2);
    color: var(--primary-color, #4a90e2);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.2s;
    font-weight: 500;
}

.mark-read:hover {
    background: var(--primary-color, #4a90e2);
    color: white;
}

.badge {
    background: var(--secondary-color, #e74c3c);
    color: white;
    padding: 6px 12px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: bold;
    margin-right: 1rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.btn-mark-all {
    background: var(--primary-color, #4a90e2);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: background 0.2s;
}

.btn-mark-all:hover {
    background: var(--primary-hover-color, #357abd);
}

.no-notifications {
    text-align: center;
    padding: 5rem 2rem;
    color: var(--font-muted, #888);
    background: var(--section-head-bg-color, #f9f9f9);
    border-radius: 12px;
    border: 1px dashed var(--form-border-color);
}

@media (max-width: 600px) {
    .notification {
        grid-template-columns: 1fr;
    }

    .notif-header-content {
        flex-direction: column;
        align-items: flex-start !important;
        gap: 1rem;
    }

    .notif-meta {
        flex-direction: row;
        justify-content: space-between;
        width: 100%;
        align-items: center;
        margin-top: 1rem;
        border-top: 1px solid var(--form-border-color);
        padding-top: 1rem;
    }
}

/* Header/Navigation integration - Superimposed on Avatar */
.nav-avatar-link {
    position: relative !important;
}

.nav-avatar-overlay-bell {
    position: absolute;
    top: 1px;
    right: 1px;
    background: #e74c3c;
    color: white;
    width: 17px;
    height: 17px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.65rem;
    border: 2px solid white;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    z-index: 10;
    pointer-events: none;
    /* Let clicks pass through to the avatar link */
}

.nav-avatar-overlay-bell i {
    font-size: 0.65rem;
}

.nav-avatar-overlay-bell .nav-badge {
    position: absolute;
    top: -10px;
    right: -10px;
    background: #e74c3c;
    color: white;
    font-size: 0.6rem;
    padding: 1px 3px;
    border-radius: 8px;
    min-width: 12px;
    text-align: center;
    font-weight: bold;
    border: 1px solid white;
}

/* Badge in avatar dropdown */
.nav-badge {
    background: #e74c3c;
    color: white;
    font-size: 0.75rem;
    padding: 1px 6px;
    border-radius: 10px;
    font-weight: bold;
    margin-left: 5px;
}