/* Notification Bell */
.notification-bell {
    position: relative;
}

.notification-bell__button {
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px 8px;
    display: flex;
    align-items: center;
    position: relative;
    font-size: 16px;
    opacity: 0.7;
    transition: opacity 0.15s;
}

.notification-bell__button:hover {
    opacity: 1;
}

.notification-bell__icon {
    filter: grayscale(100%);
}

.notification-bell__button:hover .notification-bell__icon {
    filter: none;
}

.notification-bell__badge {
    position: absolute;
    top: 0;
    right: 0;
    background: #dc3545;
    color: white;
    font-size: 10px;
    font-weight: 600;
    min-width: 16px;
    height: 16px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
}

/* Notification Dropdown */
.notification-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    width: 320px;
    max-height: 400px;
    background: var(--modal-bg);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    box-shadow: 0 4px 16px var(--window-shadow);
    z-index: 10000;
    overflow: hidden;
    margin-top: 4px;
}

.notification-dropdown__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 12px;
    border-bottom: 1px solid var(--border-color);
    font-weight: 600;
    font-size: 13px;
    color: var(--text-primary);
    background: var(--table-header-bg);
}

.notification-dropdown__mark-read {
    background: none;
    border: none;
    color: var(--entity-comment-primary);
    cursor: pointer;
    font-size: 11px;
    padding: 2px 6px;
}

.notification-dropdown__mark-read:hover {
    text-decoration: underline;
}

.notification-dropdown__list {
    max-height: 350px;
    overflow-y: auto;
}

.notification-dropdown__empty {
    padding: 20px;
    text-align: center;
    color: var(--text-secondary);
    font-size: 13px;
}

.notification-item {
    padding: 10px 12px;
    border-bottom: 1px solid var(--border-light);
    cursor: pointer;
    font-size: 12px;
    transition: background 0.15s;
}

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

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

.notification-item--unread {
    background: var(--entity-comment-light);
}

.notification-item--unread:hover {
    background: var(--entity-comment-border);
}

.notification-item__content {
    color: var(--text-primary);
    margin-bottom: 4px;
}

.notification-item__actor {
    font-weight: 600;
    color: var(--entity-comment-primary);
}

.notification-item__preview {
    color: var(--text-secondary);
    font-size: 11px;
    font-style: italic;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.notification-item__time {
    color: var(--text-tertiary);
    font-size: 10px;
    margin-top: 4px;
}
