/* NotificationBell — 헤더 알림 배지/드롭다운. 다른 곳 스타일 영향 받지 않도록 nb- 프리픽스로 격리. */

.nb-host {
    position: relative;
    display: inline-flex;
    align-items: center;
    font-family: inherit;
}

.nb-trigger {
    appearance: none;
    -webkit-appearance: none;
    background: transparent;
    border: 0;
    padding: 6px;
    margin: 0;
    cursor: pointer;
    color: inherit;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    line-height: 1;
    position: relative;
    font-family: inherit;
}

.nb-trigger:hover {
    background: rgba(0, 0, 0, 0.05);
}

.nb-trigger:focus-visible {
    outline: 2px solid #4a8cff;
    outline-offset: 2px;
}

.nb-trigger .nb-icon {
    font-size: 22px;
    line-height: 1;
    font-variation-settings: 'FILL' 0, 'wght' 500, 'GRAD' 0, 'opsz' 24;
}

.nb-badge {
    position: absolute;
    top: -2px;
    right: -2px;
    min-width: 16px;
    height: 16px;
    padding: 0 4px;
    background: #e84135;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    border-radius: 9px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    box-sizing: border-box;
    font-family: inherit;
    pointer-events: none;
}

.nb-popover {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    width: 360px;
    max-width: calc(100vw - 32px);
    max-height: 60vh;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
    z-index: 9999;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    font-family: inherit;
    color: #222;
}

.nb-popover-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 12px 14px;
    border-bottom: 1px solid #f0f0f0;
    background: #fafafa;
}

.nb-popover-title {
    font-weight: 700;
    font-size: 14px;
    color: #111;
}

.nb-action-all-read {
    appearance: none;
    -webkit-appearance: none;
    background: #fff;
    border: 1px solid #ddd;
    color: #444;
    font-size: 12px;
    padding: 4px 10px;
    border-radius: 6px;
    cursor: pointer;
    font-family: inherit;
    line-height: 1.4;
}

.nb-action-all-read:hover {
    background: #f3f3f3;
}

.nb-popover-body {
    overflow-y: auto;
    flex: 1 1 auto;
    min-height: 0;
}

.nb-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.nb-item {
    border-bottom: 1px solid #f5f5f5;
}

.nb-item:last-child {
    border-bottom: 0;
}

.nb-item-link {
    display: block;
    padding: 12px 14px;
    text-decoration: none;
    color: inherit;
}

.nb-item-link:hover {
    background: #f7f9fc;
}

.nb-item-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.nb-item-title {
    font-size: 13px;
    color: #111;
    font-weight: 500;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    flex: 1 1 auto;
    min-width: 0;
}

.nb-item-tags {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.nb-item-tag {
    display: inline-flex;
    align-items: center;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    padding: 1px 7px;
    border-radius: 9px;
    line-height: 1.5;
    font-family: inherit;
    letter-spacing: 0.2px;
}

.nb-item-tag--new {
    background: #2563eb;
}

.nb-item-tag--count {
    background: #e84135;
}

.nb-item-meta {
    font-size: 11px;
    color: #888;
    margin-top: 4px;
}

.nb-empty {
    padding: 30px 14px;
    text-align: center;
    color: #999;
    font-size: 13px;
}

.nb-loading {
    padding: 14px;
    text-align: center;
    color: #777;
    font-size: 12px;
}
