#toast-container {
    position: fixed;
    top: 30px;
    right: 30px;
    z-index: 1000;
}
.toast {
    display: flex;
    align-items: center;
    padding: 16px 20px;
    margin-bottom: 15px;
    border-radius: 12px;
    min-width: 300px;
    
    /* Hiệu ứng cũ của og */
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    color: #fff;
    font-family: 'Segoe UI', Tahoma, sans-serif;

    /* QUAN TRỌNG: Animation xuất hiện thì giữ nguyên, nhưng thêm transition để biến mất mượt */
    animation: slideLeft 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55) forwards;
    
    /* Transition cho lúc biến mất */
    transition: 
        opacity 0.4s ease, 
        transform 0.4s ease, 
        max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), 
        margin-bottom 0.4s cubic-bezier(0.4, 0, 0.2, 1), 
        padding 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    
    overflow: hidden; 
    max-height: 200px; /* Phải lớn hơn chiều cao thật của toast */
    opacity: 1;
}

/* Sửa lại class hiding: KHÔNG DÙNG ANIMATION NỮA */
.toast.hiding {
    opacity: 0;
    transform: scale(0.9) translateX(20px); /* Thu nhỏ nhẹ và đẩy sang phải */
    max-height: 0;
    margin-bottom: 0;
    padding-top: 0;
    padding-bottom: 0;
    border-top-width: 0;
    border-bottom-width: 0;
    pointer-events: none; /* Ngăn người dùng click khi đang biến mất */
}

@keyframes slideLeft {
    from { transform: translateX(120%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

/* Nội dung bên trong */
.icon-box {
    margin-right: 15px;
    display: flex;
    align-items: center;
}

.title {
    font-weight: 700;
    font-size: 15px;
    margin-bottom: 2px;
}

.message {
    font-size: 13px;
    opacity: 0.8;
}

/* Màu sắc chuyên nghiệp (trong suốt nhưng có ánh màu) */
.toast.error {
    background: rgba(255, 77, 77, 0.2); /* Đỏ nhạt mờ */
    border-left: 6px solid #ff4d4d;
}
.toast.error .icon-box { color: #ff4d4d; }

.toast.success {
    background: rgba(46, 204, 113, 0.2); /* Xanh lá nhạt mờ */
    border-left: 6px solid #2ecc71;
}
.toast.success .icon-box { color: #2ecc71; }

.toast.info {
    background: rgba(149, 165, 166, 0.2); /* Xám nhạt mờ */
    border-left: 6px solid #95a5a6;
}
.toast.info .icon-box { color: #bdc3c7; }

@keyframes fadeOut {
    to {
        opacity: 0;
        transform: translateX(20px); /* Hơi lùi lại một tí rồi biến mất */
    }
}