/* OpenConnection.UI.Notifications — NotificationBell styles (ADR 0017) */
.notif-bell-wrapper {
    position: relative;
    display: inline-flex;
    align-items: center;
}

.notif-bell-btn {
    position: relative;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.25rem;
    color: inherit;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.375rem;
    transition: background 0.15s;
}

.notif-bell-btn:hover {
    background: rgba(0, 0, 0, 0.08);
}

.notif-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    background: #ef4444;
    color: #fff;
    border-radius: 9999px;
    font-size: 0.625rem;
    font-weight: 700;
    min-width: 16px;
    height: 16px;
    padding: 0 3px;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    border: 2px solid var(--spoc-bg, #fff);
}

.notif-overlay {
    position: fixed;
    inset: 0;
    z-index: 999;
}

.notif-dropdown {
    position: absolute;
    right: 0;
    top: calc(100% + 8px);
    width: 360px;
    max-width: calc(100vw - 1rem);
    background: var(--spoc-bg-card, #fff);
    border: 1px solid var(--spoc-border, #e5e7eb);
    border-radius: 0.5rem;
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
    z-index: 1000;
    overflow: hidden;
}

.notif-dropdown-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--spoc-border, #e5e7eb);
}

.notif-dropdown-title {
    font-weight: 600;
    font-size: 0.875rem;
    color: var(--spoc-text, #111827);
}

.notif-mark-all-btn {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 0.75rem;
    color: var(--spoc-primary, #2563eb);
    padding: 0;
}

.notif-mark-all-btn:hover { text-decoration: underline; }

.notif-dropdown-body {
    max-height: 360px;
    overflow-y: auto;
}

.notif-empty, .notif-loading {
    padding: 2rem 1rem;
    text-align: center;
    font-size: 0.875rem;
    color: var(--spoc-text-muted, #6b7280);
}

.notif-item {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--spoc-border, #e5e7eb);
    cursor: default;
    transition: background 0.12s;
}

.notif-item:last-child { border-bottom: none; }
.notif-item:hover { background: var(--spoc-bg-hover, #f9fafb); }
.notif-item--unread { background: var(--spoc-bg-unread, #eff6ff); }
.notif-item--unread:hover { background: var(--spoc-bg-unread-hover, #dbeafe); }

.notif-item-severity {
    width: 8px;
    height: 8px;
    border-radius: 9999px;
    flex-shrink: 0;
    margin-top: 0.35rem;
}

.notif-severity-info     { background: #3b82f6; }
.notif-severity-success  { background: #22c55e; }
.notif-severity-warning  { background: #f59e0b; }
.notif-severity-error    { background: #ef4444; }
.notif-severity-critical { background: #7c3aed; }

.notif-item-content { flex: 1; min-width: 0; }
.notif-item-title { font-size: 0.8125rem; font-weight: 500; color: var(--spoc-text, #111827); line-height: 1.4; }
.notif-item-body { font-size: 0.75rem; color: var(--spoc-text-muted, #6b7280); margin-top: 0.2rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.notif-item-meta { font-size: 0.6875rem; color: var(--spoc-text-muted, #9ca3af); margin-top: 0.25rem; }

.notif-dropdown-footer {
    padding: 0.625rem 1rem;
    border-top: 1px solid var(--spoc-border, #e5e7eb);
    text-align: center;
}

.notif-prefs-link {
    font-size: 0.75rem;
    color: var(--spoc-primary, #2563eb);
    text-decoration: none;
}

.notif-prefs-link:hover { text-decoration: underline; }
