/* Container chứa các toast */
.custom-toast-container {
    position: fixed;
    z-index: 9999;
    pointer-events: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* Các vị trí */
.custom-toast-container.toast-center {
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    align-items: center;
}
.custom-toast-container.toast-top-right {
    top: 20px;
    right: 20px;
    align-items: flex-end;
}
.custom-toast-container.toast-top-left {
    top: 20px;
    left: 20px;
    align-items: flex-start;
}
.custom-toast-container.toast-bottom-right {
    bottom: 20px;
    right: 20px;
    align-items: flex-end;
}
.custom-toast-container.toast-bottom-left {
    bottom: 20px;
    left: 20px;
    align-items: flex-start;
}
.custom-toast-container.toast-top-center {
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    align-items: center;
}
.custom-toast-container.toast-bottom-center {
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    align-items: center;
}

/* Base Toast Item */
.custom-toast {
    background-color: rgba(0, 0, 0, 0.75); /* Màu nền tối như trong ảnh */
    color: #fff;
    padding: 15px 25px;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 200px;
    max-width: 350px;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    opacity: 0;
    transition: opacity 0.3s ease, transform 0.3s ease;
    transform: translateY(20px);
    pointer-events: auto;
}

/* Kiểu riêng khi ở giữa (giống modal) */
.toast-center .custom-toast {
    padding: 30px;
    transform: scale(0.8);
}
.toast-center .custom-toast.show {
    transform: scale(1);
    opacity: 1;
}

/* Trạng thái hiển thị (cho các vị trí khác) */
.custom-toast.show {
    opacity: 1;
    transform: translateY(0);
}

/* Icon */
.custom-toast .toast-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
    font-size: 24px;
}

.custom-toast .toast-icon svg {
    width: 30px;
    height: 30px;
    fill: white;
}

/* Các loại màu Icon */
.toast-success .toast-icon { background-color: #00c9a7; }
.toast-error .toast-icon { background-color: #ff4d4f; }
.toast-warning .toast-icon { background-color: #faad14; }
.toast-info .toast-icon { background-color: #1890ff; }

/* Text */
.custom-toast .toast-message {
    font-size: 16px;
    line-height: 1.4;
}
