/* ==========================================================================
   TOAST NOTIFICATION - USE GLOBAL THEME (PC & GENERAL)
   ========================================================================== */

#toast-container {
    position: fixed;
    top: 24px;
    right: 24px;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-width: 380px;
    width: 100%;
    pointer-events: none;
}

.toast-item {
    pointer-events: auto;
    background: var(--sf);
    color: var(--t);
    padding: 16px 20px;
    border-radius: var(--r);
    border: 1px solid var(--b);

    /* Đã đồng bộ sang biến bóng đổ toast chuyên dụng */
    box-shadow: var(--shadow-toast);

    font-size: var(--f-size-base);       /* Đã đổi (14px) */
    font-weight: var(--f-weight-semibold); /* Đã đổi (600) */
    line-height: 1.5;

    display: flex;
    align-items: flex-start;
    gap: 14px;
    box-sizing: border-box;

    animation: euroSlideIn .4s cubic-bezier(.16,1,.3,1) forwards;
}

/* ==========================
   STATUS
========================== */

.toast-item.success {
    border-left: 4px solid var(--s);
}

.toast-item.success span {
    color: var(--s);
}

.toast-item.error {
    border-left: 4px solid var(--d);
}

.toast-item.error span {
    color: var(--d);
}

/* nếu đã thêm --info vào theme.css */
.toast-item.info {
    border-left: 4px solid var(--info);
}

.toast-item.info span {
    color: var(--info);
}

.toast-item span {
    font-size: var(--f-size-md);        /* Đã đổi (16px -> quy về md cho cỡ chữ icon cân đối) */
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 2px;
}

/* ==========================================================================
   ANIMATION PC
   ========================================================================== */

.toast-item.fade-out {
    animation: euroSlideOut .35s cubic-bezier(.16,1,.3,1) forwards !important;
}

@keyframes euroSlideIn {
    from {
        opacity: 0;
        transform: translateX(60px) scale(.95);
    }
    to {
        opacity: 1;
        transform: translateX(0) scale(1);
    }
}

@keyframes euroSlideOut {
    from {
        opacity: 1;
        transform: translateX(0) scale(1);
    }
    to {
        opacity: 0;
        transform: translateX(80px) scale(.95);
    }
}
