/* Modern Notification Cards Styling - Premium Glassmorphism */
.notification-container {
    position: fixed;
    z-index: 10000;
    pointer-events: none;
    display: flex;
    flex-direction: column;
    gap: 15px;
    padding: 20px;
    max-width: 420px;
    width: 100%;
}

.notif-top-right {
    top: 0;
    right: 0;
    align-items: flex-end;
}

.notif-top-left {
    top: 0;
    left: 0;
    align-items: flex-start;
}

.notif-bottom-right {
    bottom: 0;
    right: 0;
    align-items: flex-end;
    flex-direction: column-reverse;
}

.notif-bottom-left {
    bottom: 0;
    left: 0;
    align-items: flex-start;
    flex-direction: column-reverse;
}

.notif-top-center {
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    align-items: center;
}

.notif-bottom-center {
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    align-items: center;
    flex-direction: column-reverse;
}

.notification-card {
    pointer-events: auto;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px) saturate(180%);
    -webkit-backdrop-filter: blur(12px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
    border-radius: 20px;
    padding: 25px;
    display: flex;
    gap: 15px; 
    align-items: center;
    min-width: 320px;
    max-width: 420px;
    animation: notifSlideIn 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.notif-custom-html {
    width: 100%;
}

.notif-custom-html img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
}

.notification-card:hover {
    transform: translateY(-8px) scale(1.03);
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.18);
}

.notification-card .notif-image {
    width: 64px;
    height: 64px;
    border-radius: 14px;
    object-fit: cover;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.notification-card .notif-content {
    flex-grow: 1;
}

.notification-card .notif-title {
    font-weight: 800;
    font-size: 16px;
    margin-bottom: 6px;
    color: #111;
    letter-spacing: -0.01em;
}

.notification-card .notif-text {
    font-size: 13.5px;
    color: #444;
    line-height: 1.5;
    font-weight: 500;
}

.notification-card .notif-close {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.06);
    border-radius: 50%;
    font-size: 16px;
    color: #666;
    cursor: pointer;
    border: none;
    transition: all 0.2s ease;
}

.notification-card .notif-close:hover {
    background: #ff4d4d;
    color: white;
    transform: rotate(90deg);
}

@keyframes notifSlideIn {
    0% {
        opacity: 0;
        transform: translateY(30px) scale(0.85);
        filter: blur(10px);
    }

    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
        filter: blur(0);
    }
}

.notification-card.fade-out {
    opacity: 0;
    transform: scale(0.9) translateY(-30px);
    filter: blur(10px);
    pointer-events: none;
}



/* Subtle inner glow */
.notification-card::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 20px;
    padding: 1px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.5), transparent);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
}