/**
 * Toast Notification Styles - BIVACO CRM & Admin
 * Giao diện Toast thông báo hiện đại, tinh gọn dạng popup card giữa màn hình
 * Thiết kế chuẩn theo mẫu: Thẻ tối bo tròn mờ (glassmorphism), icon tròn nổi bật, chữ trắng sắc nét
 */

#toast-container {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 999999;
    pointer-events: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

/* Toast Card chính */
.bvc-toast {
    pointer-events: auto;
    min-width: 200px;
    max-width: 380px;
    background: rgba(24, 28, 38, 0.92);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 18px;
    padding: 22px 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    box-shadow: 0 20px 40px -8px rgba(0, 0, 0, 0.55),
                0 0 0 1px rgba(255, 255, 255, 0.08);
    color: #ffffff;
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    animation: bvcToastIn 0.3s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
    cursor: pointer;
    user-select: none;
    transition: opacity 0.25s ease, transform 0.25s ease;
}

/* Hiệu ứng biến mất */
.bvc-toast.toast-hide {
    animation: bvcToastOut 0.25s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

/* Icon tròn */
.bvc-toast-icon {
    width: 58px;
    height: 58px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 14px;
    flex-shrink: 0;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

.bvc-toast-icon svg {
    width: 28px;
    height: 28px;
    fill: #ffffff;
}

/* Màu sắc theo từng loại thông báo */
/* 1. Success - Xanh ngọc / Xanh lục sáng rực rỡ */
.bvc-toast-success .bvc-toast-icon {
    background: #00c988;
    box-shadow: 0 8px 24px -4px rgba(0, 201, 136, 0.5);
}

/* 2. Error - Đỏ hồng hiện đại */
.bvc-toast-error .bvc-toast-icon {
    background: #ef4444;
    box-shadow: 0 8px 24px -4px rgba(239, 68, 68, 0.5);
}

/* 3. Warning - Vàng cam */
.bvc-toast-warning .bvc-toast-icon {
    background: #f59e0b;
    box-shadow: 0 8px 24px -4px rgba(245, 158, 11, 0.5);
}

/* 4. Info - Xanh dương */
.bvc-toast-info .bvc-toast-icon {
    background: #3b82f6;
    box-shadow: 0 8px 24px -4px rgba(59, 130, 246, 0.5);
}

/* Tiêu đề & Nội dung tin nhắn */
.bvc-toast-title {
    font-size: 16px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 4px;
    letter-spacing: -0.2px;
}

.bvc-toast-message {
    font-size: 14.5px;
    font-weight: 500;
    line-height: 1.45;
    color: rgba(255, 255, 255, 0.95);
    word-break: break-word;
}

/* Keyframe hiệu ứng phóng to và hiện dần */
@keyframes bvcToastIn {
    0% {
        opacity: 0;
        transform: scale(0.7) translateY(12px);
    }
    100% {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

/* Keyframe hiệu ứng thu nhỏ và mờ dần khi ẩn */
@keyframes bvcToastOut {
    0% {
        opacity: 1;
        transform: scale(1);
    }
    100% {
        opacity: 0;
        transform: scale(0.85) translateY(-8px);
    }
}

