.notification {
    position: relative;
    cursor: pointer;
}

.bell {
    font-size: 18px;
    appearance: none;
    background: transparent;
    border: 0;
    padding: 0;
    color: inherit;
    cursor: pointer;
}

.badge {
    position: absolute;
    top: -6px;
    right: -8px;
    background: red;
    color: #fff;
    font-size: 10px;
    padding: 2px 6px;
    border-radius: 50%;
}

.notification-dropdown {
    position: absolute;
    top: 30px;
    right: 0;

    width: 320px;
    max-width: min(320px, calc(100vw - 24px));

    background: #0d1117;
    border: 1px solid #1f2a36;
    border-radius: 10px;

    display: flex;
    flex-direction: column;
    padding: 10px;

    z-index: 1000;

    /* Начальное состояние */
    opacity: 0;
    visibility: hidden;
    pointer-events: none;

    transform: translateY(-8px) scale(0.98);
    transform-origin: top right;

    /* Плавная анимация */
    transition:
        opacity 0.22s ease,
        transform 0.25s cubic-bezier(0.2, 0.8, 0.2, 1),
        visibility 0.25s;
}

.notification-dropdown.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;

    transform: translateY(0) scale(1);
}



.notification-item {
    padding: 8px;
    font-size: 13px;
    color: #c9d1d9;
    border-bottom: 1px solid #1f2a36;
    display: flex;
    flex-direction: column;
    gap: 4px;
    cursor: default;
    text-decoration: none;
}

.notification-item:last-child {
    border-bottom: none;
}

.notification-item.unread {
    background: rgba(47, 140, 255, 0.08);
}

.notification-item--link {
    cursor: pointer;
}

.notification-item--link:hover {
    background: #161b22;
}

.notification-text {
    line-height: 1.4;
    white-space: normal;
    word-break: break-word;
    overflow-wrap: anywhere;
}

.notification-time {
    font-size: 11px;
    color: #7f8a96;
}

.notification-empty {
    padding: 10px 8px;
    color: #8a96a3;
    font-size: 13px;
}

.header-notification-slot {
    display: flex;
    align-items: center;
    justify-content: center;
}

.header-notification-slot .notification {
    display: flex;
    align-items: center;
    justify-content: center;
}

.header-notification-slot .bell {
    width: 34px;
    height: 34px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    padding: 0;
    margin: 0;
    border: 1px solid transparent;
    border-radius: 10px;

    background: transparent;
    cursor: pointer;

    line-height: 1;
    box-sizing: border-box;
}

.header-notification-slot .notification-bell__icon {
    display: block;
    width: 24px;
    height: 24px;
    min-width: 24px;
    min-height: 24px;
    object-fit: contain;
    flex-shrink: 0;
}

.header-notification-slot .bell {
    color: #aab6c4;
    transition:
        color 0.18s ease,
        background 0.18s ease,
        border-color 0.18s ease;
}

.header-notification-slot .bell:hover,
.header-notification-slot .bell[aria-expanded="true"] {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.07);
    border-color: rgba(255, 255, 255, 0.08);
}

.header-notification-slot .bell:focus-visible {
    outline: 2px solid #2f8cff;
    outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
    .notification-dropdown {
        transition: none;
        transform: none;
    }
}