/* Notifications Component Styles */
.notifications-container {
    width: 100%;
    background: transparent;
    pointer-events: none;
}

.notification-item {
    width: 100%;
    padding: 1rem 1.5rem;
    margin-bottom: 0;
    border-radius: 0;
    border-left: none;
    border-right: none;
    border-top: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15), 0 2px 4px rgba(0, 0, 0, 0.1);
    pointer-events: auto;
    position: relative;
    overflow: hidden;
    /* Div hiển thị luôn, không có animation */
    opacity: 1;
    transform: none;
}

.notification-item.type-info {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.notification-item.hidden {
    display: none;
}

/* Notification Types - Màu sắc hài hòa với theme website */
.notification-item.type-info {
    background: linear-gradient(135deg, rgba(13, 110, 253, 0.95) 0%, rgba(0, 86, 179, 0.95) 100%) !important;
    color: white;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.notification-item.type-success {
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.95) 0%, rgba(22, 163, 74, 0.95) 100%);
    color: white;
    border-bottom: 3px solid rgba(22, 163, 74, 0.8);
    backdrop-filter: blur(10px);
}

.notification-item.type-warning {
    background: linear-gradient(135deg, rgba(251, 191, 36, 0.95) 0%, rgba(245, 158, 11, 0.95) 100%);
    color: #1f2937;
    border-bottom: 3px solid rgba(245, 158, 11, 0.8);
    backdrop-filter: blur(10px);
}

.notification-item.type-danger {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.95) 0%, rgba(220, 38, 38, 0.95) 100%);
    color: white;
    border-bottom: 3px solid rgba(220, 38, 38, 0.8);
    backdrop-filter: blur(10px);
}

.notification-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    /* Animation cho text content */
    transition: opacity 0.5s ease-in-out, transform 0.5s ease-in-out;
    opacity: 0;
    transform: translateY(-100%);
}

.notification-content.fade-in {
    opacity: 1;
    transform: translateY(0);
}

.notification-content.fade-out {
    opacity: 0;
    transform: translateY(-100%);
}

.notification-text {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.notification-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
    opacity: 0.9;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.1));
}

.notification-title {
    font-weight: 600;
    font-size: 1rem;
    margin: 0;
    line-height: 1.4;
}

.notification-message {
    font-size: 0.9rem;
    margin: 0;
    line-height: 1.5;
    opacity: 0.92;
}

.notification-item.type-warning .notification-message {
    opacity: 0.85;
}

.notification-close {
    display: none; 
}
/* .notification-close {
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: inherit;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    flex-shrink: 0;
    backdrop-filter: blur(5px);
} */

.notification-close:hover {
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.3);
    transform: scale(1.05);
}

.notification-item.type-warning .notification-close {
    background: rgba(0, 0, 0, 0.1);
    border-color: rgba(0, 0, 0, 0.15);
}

.notification-item.type-warning .notification-close:hover {
    background: rgba(0, 0, 0, 0.15);
    border-color: rgba(0, 0, 0, 0.2);
}

.notification-close:focus {
    outline: 2px solid rgba(255, 255, 255, 0.5);
    outline-offset: 2px;
}

/* Multiple notifications stacking */
.notifications-container.has-multiple .notification-item {
    margin-bottom: 0;
}




.notification-icon {
    color: #ffffff;
    animation: 
        iconColor 2.5s ease-in-out infinite,
        iconShake 1.8s ease-in-out infinite;
}

/* Hiệu ứng đổi màu trắng → vàng → trắng */
@keyframes iconColor {
    0% {
        color: #ffffff;
    }
    50% {
        color: #ffd24d; /* vàng nhẹ */
    }
    100% {
        color: #ffffff;
    }
}

/* Hiệu ứng rung nhẹ */
@keyframes iconShake {
    0%,
    100% {
        transform: translateX(0);
    }
    25% {
        transform: translateX(-1.5px) rotate(-2deg);
    }
    50% {
        transform: translateX(1.5px) rotate(2deg);
    }
    75% {
        transform: translateX(-1px) rotate(-1deg);
    }
}



/* Responsive */
@media (max-width: 768px) {
    .notification-icon {
        font-size: 14px;
    } 
    .notification-item {
        padding: 0.75rem 1rem;
    }
    
    .notification-content {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .notification-text {
        width: 100%;
    }
    
    .notification-title {
        font-size: 0.95rem;
    }
    
    .notification-message {
        font-size: 0.85rem;
    }
    
    .notification-close {
        position: absolute;
        top: 0.5rem;
        right: 0.5rem;
    }
}

/* Animation for smooth transitions */
@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-100%);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideUp {
    from {
        opacity: 1;
        transform: translateY(0);
    }
    to {
        opacity: 0;
        transform: translateY(-100%);
    }
}

