﻿/* ---- WoS Tools Hub: Toasts (standalone, white card) ---- */

.wth-toast-stack {
    position: fixed;
    top: 16px;
    right: 16px;
    z-index: 2147483000;
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: min(440px, calc(100vw - 32px));
    pointer-events: none;
}

.wth-toast {
    pointer-events: auto;
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    /* white card */
    background: rgba(255,255,255,.96);
    color: #0f172a;
    border: 1px solid rgba(15, 23, 42, .10);
    box-shadow: 0 14px 34px rgba(0,0,0,.30);
    /* slide-in from right */
    transform: translate3d(120%, 0, 0);
    opacity: 0;
    transition: transform 280ms ease, opacity 280ms ease;
    will-change: transform, opacity;
}

    /* when shown */
    .wth-toast.is-in {
        transform: translate3d(0, 0, 0);
        opacity: 1;
    }

    /* leaving */
    .wth-toast.is-out {
        transform: translate3d(120%, 0, 0);
        opacity: 0;
    }

.wth-toast__content {
    display: grid;
    grid-template-columns: 28px 1fr auto;
    gap: 12px;
    padding: 14px 14px 12px 14px;
    align-items: start;
}

.wth-toast__icon {
    width: 28px;
    height: 28px;
    border-radius: 999px;
    display: grid;
    place-items: center;
    background: rgba(2, 6, 23, .06);
    margin-top: 1px;
}

    .wth-toast__icon i {
        font-size: 16px;
        line-height: 16px;
    }

.wth-toast__title {
    font-weight: 800;
    font-size: 15px;
    letter-spacing: .2px;
    margin: 0 0 2px 0;
}

.wth-toast__msg {
    font-size: 13px;
    margin: 0;
    opacity: .92;
    white-space: pre-wrap;
    word-break: break-word;
}

.wth-toast__close {
    border: 0;
    background: transparent;
    color: rgba(15, 23, 42, .50);
    padding: 4px 6px;
    border-radius: 8px;
    cursor: pointer;
    margin-left: 6px;
}

    .wth-toast__close:hover {
        background: rgba(2, 6, 23, .06);
        color: rgba(15, 23, 42, .75);
    }

/* left accent bar */
.wth-toast::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 6px;
    height: 100%;
    background: var(--wth-accent, #3b82f6);
}

/* progress bar bottom (shrinks left->right) */
.wth-toast__bar {
    height: 3px;
    width: 100%;
    background: var(--wth-accent, #3b82f6);
    transform-origin: left center;
    transform: scaleX(1);
    opacity: .85;
}

/* Type accents */
.wth-toast--success {
    --wth-accent: #16a34a;
}

.wth-toast--error {
    --wth-accent: #dc2626;
}

.wth-toast--warning {
    --wth-accent: #f59e0b;
}

.wth-toast--info {
    --wth-accent: #3b82f6;
}

/* icon tint per type */
.wth-toast--success .wth-toast__icon i {
    color: #16a34a;
}

.wth-toast--error .wth-toast__icon i {
    color: #dc2626;
}

.wth-toast--warning .wth-toast__icon i {
    color: #f59e0b;
}

.wth-toast--info .wth-toast__icon i {
    color: #3b82f6;
}

/* mobile */
@media (max-width: 576px) {
    .wth-toast-stack {
        left: 12px;
        right: 12px;
        width: auto;
    }
}
