/* Notification System Styles */
.notification-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 10px;
    pointer-events: none;
}

.notification {
    pointer-events: all;
    min-width: 100px;
    max-width: 220px;

    padding: 8px 12px;   /* 🔥 giảm mạnh */
    gap: 4px;            /* 🔥 sát hơn */
    background: linear-gradient(135deg, rgba(30, 30, 60, 0.98) 0%, rgba(50, 50, 80, 0.98) 100%);
    backdrop-filter: blur(20px);
    border-radius: 12px;
    border-left: 4px solid;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    animation: slideIn 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55) forwards;
    position: relative;
    overflow: hidden;
}

.notification::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    animation: shimmer 2s infinite;
}

@keyframes slideIn {
    from {
        transform: translateX(450px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOut {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(450px);
        opacity: 0;
    }
}

@keyframes shimmer {
    0%, 100% {
        transform: translateX(-100%);
    }
    50% {
        transform: translateX(100%);
    }
}

.notification.removing {
    animation: slideOut 0.3s ease-in forwards;
}

.notification-icon {
    color: rgba(255, 255, 255, 0.6);
    font-size: 14px;
    flex-shrink: 0;
    animation: iconPop 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

@keyframes iconPop {
    0% {
        transform: scale(0) rotate(-180deg);
    }
    50% {
        transform: scale(1.2) rotate(10deg);
    }
    100% {
        transform: scale(1) rotate(0);
    }
}

.notification-content {
    flex: 1;
    color: #ffffff;
}

.notification-message {
    font-size: 11px;     /* tăng nhẹ để dễ đọc */
    line-height: 1.25;   /* 🔥 sát chữ */
    font-weight: 500;
}


.notification-close {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.6);
    font-size: 14px;

    cursor: pointer;
    padding: 0 2px;

    border-radius: 4px;
    transition: all 0.2s;
    flex-shrink: 0;
}

.notification-close:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
}

.notification.success {
    border-left-color: #10b981;
}

.notification.error {
    border-left-color: #ef4444;
}

.notification.info {
    border-left-color: #3b82f6;
}

.notification.warning {
    border-left-color: #f59e0b;
}

.notification-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    background: linear-gradient(90deg, 
        rgba(99, 102, 241, 0.8) 0%, 
        rgba(139, 92, 246, 0.8) 100%);
    animation: progress 3s linear forwards;
    border-radius: 0 0 0 12px;
}

@keyframes progress {
    from {
        width: 100%;
    }
    to {
        width: 0%;
    }
}