/* NotificationBell — header notification dropdown */
.notification-bell {
    position: relative;
}

.notification-bell__trigger {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border: none;
    background: transparent;
    border-radius: 8px;
    cursor: pointer;
    color: var(--text-secondary);
    transition: background 0.15s, color 0.15s;
}

.notification-bell__trigger:hover {
    background: var(--bg-hover, rgba(0,0,0,0.06));
    color: var(--text-primary);
}

.notification-bell--open .notification-bell__trigger {
    background: var(--bg-hover, rgba(0,0,0,0.06));
    color: var(--accent, #3b82f6);
}

.notification-bell__trigger i {
    font-size: 16px;
}

.notification-bell__badge {
    position: absolute;
    top: 2px;
    right: 2px;
    min-width: 16px;
    height: 16px;
    padding: 0 4px;
    border-radius: 8px;
    background: var(--error, #ef4444);
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

/* Panel */
.notification-bell__panel {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    width: 380px;
    max-height: 480px;
    background: var(--bg-primary, #fff);
    border: 1px solid var(--border-primary, #e2e8f0);
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
    z-index: 1000;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    animation: notif-panel-in 0.15s ease-out;
}

@keyframes notif-panel-in {
    from { opacity: 0; transform: translateY(-4px); }
    to { opacity: 1; transform: none; }
}

.notification-bell__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    border-bottom: 1px solid var(--border-primary, #e2e8f0);
}

.notification-bell__title {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary, #1e293b);
}

.notification-bell__mark-all {
    background: none;
    border: none;
    color: var(--accent, #3b82f6);
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 6px;
}

.notification-bell__mark-all:hover {
    background: color-mix(in srgb, var(--accent, #3b82f6), transparent 92%);
}

/* Empty state */
.notification-bell__empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 40px 20px;
    color: var(--text-tertiary, #94a3b8);
    font-size: 13px;
}

.notification-bell__empty i {
    font-size: 32px;
    opacity: 0.5;
}

/* List */
.notification-bell__list {
    overflow-y: auto;
    max-height: 400px;
}

.notification-bell__item {
    display: flex;
    gap: 12px;
    padding: 12px 16px;
    cursor: pointer;
    transition: background 0.1s;
    border-bottom: 1px solid var(--border-secondary, #f1f5f9);
}

.notification-bell__item:hover {
    background: var(--bg-hover, #f8fafc);
}

.notification-bell__item--unread {
    background: color-mix(in srgb, var(--accent, #3b82f6), transparent 96%);
}

.notification-bell__item--unread:hover {
    background: color-mix(in srgb, var(--accent, #3b82f6), transparent 92%);
}

.notification-bell__icon {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background: var(--bg-secondary, #f1f5f9);
    color: var(--accent, #3b82f6);
    font-size: 14px;
    flex-shrink: 0;
}

.notification-bell__item--unread .notification-bell__icon {
    background: var(--accent, #3b82f6);
    color: #fff;
}

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

.notification-bell__item-title {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary, #1e293b);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.notification-bell__item-message {
    font-size: 12px;
    color: var(--text-secondary, #64748b);
    margin-top: 2px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.notification-bell__item-time {
    font-size: 11px;
    color: var(--text-tertiary, #94a3b8);
    margin-top: 4px;
}

/* Backdrop (click-to-close) */
.notification-bell__backdrop {
    position: fixed;
    inset: 0;
    z-index: 999;
}
