/* ==========================
   Notification Bell
   ========================== */

#notificationBell {
    position: relative;
/*
    display: flex;
    align-items: center;
    justify-content: center;
*/
    width: 28px;
    height: 28px;
    cursor: pointer;
}

#notificationBell svg {
    transition: transform .2s ease;
}

#notificationBell.has-notifications svg {
    animation: bellShake 2.5s infinite;
    transform-origin: top center;
}

@keyframes bellShake {

    0%   { transform: rotate(0deg); }

    3%   { transform: rotate(-12deg); }
    6%   { transform: rotate(10deg); }
    9%   { transform: rotate(-8deg); }
    12%  { transform: rotate(6deg); }
    15%  { transform: rotate(0deg); }

    100% { transform: rotate(0deg); }
}


/* ==========================
   Notification Badge
   ========================== */

#notificationBadge {

    position: absolute;

    top: -5px;
    right: -5px;

    min-width: 16px;
    height: 16px;

    padding: 0 3px;

    background: #e53935;
    color: #fff;

    border-radius: 999px;

    font-size: 9px;
    font-weight: bold;
    line-height: 1;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    border: 2px solid #fff;
    box-sizing: border-box;

    animation: badgePulse 1.8s infinite;
}


@keyframes badgePulse {

    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.18);
    }

    100% {
        transform: scale(1);
    }
}




/* =====================================
   Notification List
   ===================================== */
.notification-popup {

    position: absolute;

    top: 34px;
    left: calc(100% + 8px);

    width: 350px;
    max-height: 420px;

    overflow-y: auto;

    background: white;

    border: 1px solid #ddd;
    border-radius: 10px;

    box-shadow: 0 6px 18px rgba(0,0,0,.2);

    z-index: 10000;

    display: none;

    background: #ffffff !important;
    opacity: 1 !important;

    box-shadow: 0 8px 24px rgba(0,0,0,.25);
}

.notification-popup.show {
    display: block;
}


.notification-item {

    display: flex;
    align-items: flex-start;
    gap: 10px;

    padding: 10px;

    border-bottom: 1px solid #ececec;

    cursor: pointer;
    transition: background .15s;
}

.notification-item:hover {
    background: #f7faff;
}

.notification-avatar {

    width: 36px;
    height: 36px;

    flex: 0 0 36px;

    border-radius: 50%;
    object-fit: cover;
}

.notification-text {
    flex: 1;
    min-width: 0;
}

.notification-title {
    font-weight: 600;
    font-size: 13px;
    color: #234;
}

.notification-event {
    margin-top: 2px;
    font-size: 13px;
    color: #1976d2;
}

.notification-preview {

    margin-top: 4px;

    font-size: 12px;
    color: #666;

    overflow: hidden;
    text-overflow: ellipsis;

    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.notification-empty {
    padding: 15px;
    text-align: center;
    color: #777;
}