/* =========================================================
   USER NOTIFICATIONS – isolated & consistent styles
   ========================================================= */
.user-notifications-scope {
    /* wrapper для изоляции */
}

/* --- Dropdown container --- */
.user-notifications-scope .dd-menu {
    width: 400px;
    height: 500px;
    background: #ffffff;
    border-radius: 12px;
    overflow: visible; /* чтобы scale не обрезался */
    right: 0; /* привязка к кнопке справа */
    left: auto;
    position: absolute;
    top: 100%;
    z-index: 1000;
}

/* --- Header --- */
.user-notifications-scope .dd-menu .border-bottom {
    border-bottom: 1px solid #eef0f3;
}

.user-notifications-scope h6 {
    font-weight: 600;
}

/* --- Badge --- */
.user-notifications-scope .badge {
    font-size: 0.55rem;
    line-height: 1;
    padding: 4px 6px;
}

/* --- Toggle hidden button --- */
.user-notifications-scope .toggle-hidden-btn {
    width: 32px;
    height: 32px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* --- Scroll containers --- */
.user-notifications-scope .notifications-container,
.user-notifications-scope .notifications-hidden-container {
    max-height: 400px;
    overflow-y: auto;
}

/* --- Notification wrapper --- */
.user-notifications-scope .notification-item-wrapper {
    position: relative;
    overflow: visible;
}

/* --- Notification card --- */
.user-notifications-scope .dropdown-item {
    display: block;
    border-radius: 8px;
    padding: 8px;
    transition:
        transform 0.15s ease,
        box-shadow 0.15s ease,
        background-color 0.15s ease;
    will-change: transform;
}

/* --- Hover effect (same everywhere) --- */
.user-notifications-scope .dropdown-item:hover {
    transform: scale(1.02);
    z-index: 2;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
}

/* --- Avatar / icon --- */
.user-notifications-scope .avatar {
    width: 28px;
    height: 28px;
}

.user-notifications-scope .icon {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* --- Text --- */
.user-notifications-scope .title {
    font-size: 0.85rem;
    font-weight: 600;
}

.user-notifications-scope p {
    font-size: 0.75rem;
    line-height: 1.3;
}

/* --- Delete button --- */
.user-notifications-scope .delete-notification {
    opacity: 0;
    transition: opacity 0.15s ease;
}

.user-notifications-scope .notification-item-wrapper:hover .delete-notification {
    opacity: 1;
}

/* --- Prevent dropdown from overflowing screen --- */
@media (max-width: 480px) {
    .user-notifications-scope .dd-menu {
        width: calc(100vw - 16px);
        right: 8px;
        left: 8px;
    }
}

/* --- Mobile: disable scale hover --- */
@media (max-width: 768px) {
    .user-notifications-scope .dropdown-item:hover {
        transform: none !important;
        box-shadow: none;
    }
}


#notification-bell-count {
    animation: badge-pop 0.25s ease;
}

@keyframes badge-pop {
    0% {
        transform: translate(50%, -50%) scale(0.6);
        opacity: 0;
    }
    100% {
        transform: translate(50%, -50%) scale(1);
        opacity: 1;
    }
}

