.notification-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: var(--color-danger-500);
    color: var(--color-surface);
    border-radius: var(--radius-full);
    padding: var(--space-1) var(--space-2);
    font-size: var(--font-size-xs);
    font-weight: var(--font-weight-semibold);
    min-width: 18px;
    text-align: center;
}

#notificationButton {
    position: relative;
}

.notification-content {
    max-height: 400px;
    overflow-y: auto;
}

.notification-item {
    display: flex;
    gap: var(--space-3);
    padding: var(--space-3) var(--space-4);
    text-decoration: none;
    color: var(--color-text-primary);
    border-bottom: 1px solid var(--color-border-light);
    transition: var(--transition-all);
}

.notification-item:hover {
    background-color: var(--color-surface-hover);
}

.notification-item:last-child {
    border-bottom: none;
}


[data-bs-theme="midnight"] .notification-unread {
    background-color: var(--color-primary-900);
}
.notification-unread {
    background-color: var(--color-primary-50);
}

.notification-avatar {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    border-radius: var(--radius-full);
    object-fit: cover;
    border: 2px solid var(--color-border-light);
}

.notification-icon {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    border-radius: var(--radius-full);
    background: var(--color-primary-100);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-primary-600);
}

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

.notification-message {
    margin: 0 0 var(--space-1) 0;
    font-size: var(--font-size-sm);
    line-height: var(--line-height-normal);
    color: var(--color-text-primary);
}

.notification-time {
    font-size: var(--font-size-xs);
    color: var(--color-text-tertiary);
}

.notification-content::-webkit-scrollbar {
    width: 6px;
}

.notification-content::-webkit-scrollbar-track {
    background: transparent;
}

.notification-content::-webkit-scrollbar-thumb {
    background: var(--color-gray-300);
    border-radius: var(--radius-sm);
}

.notification-content::-webkit-scrollbar-thumb:hover {
    background: var(--color-gray-400);
}

.notification-view-all {
    padding: var(--space-3);
    border-top: 1px solid var(--color-border-light);
    text-align: center;
    background: var(--color-surface);
}

.notification-view-all-link {
    display: block;
    color: var(--color-primary-600);
    font-size: var(--font-size-sm);
    font-weight: var(--font-weight-semibold);
    text-decoration: none;
    transition: var(--transition-colors);
}

.notification-view-all-link:hover {
    color: var(--color-primary-700);
}

/* ── Skeleton loader ───────────────────────────────────── */
@keyframes notif-shimmer {
    0%   { background-position: -200% 0; }
    100% { background-position:  200% 0; }
}

.notif-skeleton-item {
    display: flex;
    gap: var(--space-3);
    padding: var(--space-3) var(--space-4);
    border-bottom: 1px solid var(--color-border-light);
}

.notif-skeleton-item:last-child {
    border-bottom: none;
}

.notif-skeleton {
    background: linear-gradient(
        90deg,
        var(--color-border-light) 0%,
        var(--color-surface-hover) 40%,
        var(--color-border-light) 80%
    );
    background-size: 200% 100%;
    animation: notif-shimmer 1.6s ease-in-out infinite;
    border-radius: var(--radius-md);
    flex-shrink: 0;
}

.notif-skeleton-avatar {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-full);
}

.notif-skeleton-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 8px;
}

.notif-skeleton-line {
    height: 12px;
    border-radius: var(--radius-sm);
}
