﻿#notif-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    display: flex;
    flex-direction: column-reverse;
    gap: 10px;
    z-index: 9999;
    align-items: flex-end;
}

.avatar-noti-wrap {
    position: relative;
    flex-shrink: 0;
}
.noti-badge {
    position: absolute;
    bottom: -2px;
    right: -2px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    border: 2px solid #ffffff;
    background: #0068ff;
    display: flex;
    align-items: center;
    justify-content: center;
}

    .noti-badge svg {
        width: 10px;
        height: 10px;
        display: block;
    }
.noti-content {
    flex: 1;
    min-width: 0;
    padding-right: 20px;
}

.noti-sender {
    font-size: 13.5px;
    font-weight: 600;
    color: #111111;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.35;
}

.noti-message {
    font-size: 12.5px;
    color: rgba(0,0,0,0.6);
    margin-top: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.4;
}

.noti-time {
    font-size: 11px;
    color: rgba(0,0,0,0.3);
    margin-top: 3px;
}
.close-noti-btn {
    position: absolute;
    top: 8px;
    right: 10px;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    font-size: 12px;
    color: rgba(255,255,255,0.6);
    border-radius: 50%;
    transition: opacity 0.15s, background 0.15s;
    background: transparent;
    border: none;
}

.close-noti-btn:hover {
    background: rgba(255,255,255,0.12);
    color: #fff;
}
.notif-card {
    display: flex;
    align-items: center;
    gap: 12px;
    background: #ffffff;
    border: 0.5px solid rgba(255,255,255,0.08);
    border-radius: 14px;
    padding: 13px 16px 13px 14px;
    width: 320px;
    position: relative;
    box-shadow: 0 4px 16px rgba(0,0,0,0.5), 0 1px 0 rgba(255,255,255,0.04) inset;
    cursor: pointer;
    transition: background 0.15s, transform 0.15s;
    animation: slideIn 0.38s cubic-bezier(0.22, 1, 0.36, 1) forwards;
    opacity: 0;
    transform: translateX(60px);
    user-select: none;
}

    .notif-card:hover {
        background: #f5f6f8;
        transform: translateX(-2px);
    }

    .notif-card:active {
        transform: scale(0.98);
    }
    .notif-card.dismiss {
        animation: slideOut 0.22s cubic-bezier(0.55, 0, 1, 0.45) forwards;
    }
    .notif-card:hover .close-noti-btn {
        opacity: 1;
    }
@keyframes slideIn {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideOut {
    to {
        opacity: 0;
        transform: translateX(60px);
    }
}
.avatar-noti {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: 700;
    color: #fff;
    letter-spacing: -0.5px;
    flex-shrink: 0;
}

    .avatar-noti img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
    }