/* Global styling for toast notifications */
.toast-container {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: auto; /* Thay đổi từ 100% thành auto */
    max-width: 350px; /* Đặt độ rộng tối đa */
    pointer-events: none;
}

.toast {
    display: inline-flex;
    align-items: center;
    background: white;
    color: black;
    padding: 10px; /* Điều chỉnh padding nếu cần */
    border: none; /* Bỏ viền */
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2); /* Tạo box shadow */
    opacity: 0;
    transform: translateY(-20px);
    transition: opacity 0.3s, transform 0.3s;
    pointer-events: auto;
    max-width: 350px;
    word-wrap: break-word; /* Cho phép văn bản xuống dòng */
}

/* Icon styling */
.toast-icon {
    font-size: 20px;
    margin-right: 8px;
}

/* Animation for showing toast */
.show {
    opacity: 1;
    transform: translateY(0);
}

/* Toast specific styles for icons */
.toast-success .toast-icon {
    color: #4caf50; /* Màu xanh cho biểu tượng success */
}

.toast-error .toast-icon {
    color: #f44336; /* Màu đỏ cho biểu tượng error */
}