/* ============================================================
   BSW TOAST NOTIFICATIONS
   Stacked at bottom-right (desktop) / bottom-centre (mobile).
   Used by showToast() in main.js.
   ============================================================ */

#bsw-toast-container {
    position: fixed;
    top: 1.2rem;
    right: 1.4rem;
    z-index: 99999;
    display: flex;
    flex-direction: column;
    gap: .55rem;
    pointer-events: none;
}

@media (max-width: 540px) {
    #bsw-toast-container {
        right: 50%;
        transform: translateX(50%);
        width: calc(100vw - 2rem);
        max-width: 360px;
    }
}

/* Individual toast */
.bsw-toast {
    display: flex;
    align-items: center;
    gap: .6rem;
    padding: .7rem 1.1rem;
    border-radius: 10px;
    font-size: .88rem;
    font-weight: 600;
    line-height: 1.35;
    box-shadow: 0 6px 24px rgba(0, 0, 0, .45);
    pointer-events: all;
    cursor: pointer;
    white-space: nowrap;
    max-width: 320px;

    /* Enter state: off-screen right, invisible */
    opacity: 0;
    transform: translateX(24px);
    transition: opacity .25s ease, transform .25s cubic-bezier(.22, 1, .36, 1);
}

@media (max-width: 540px) {
    .bsw-toast {
        max-width: 100%;
        white-space: normal;
        transform: translateY(16px);
    }
}

/* Visible state */
.bsw-toast--show {
    opacity: 1;
    transform: translateX(0);
}

@media (max-width: 540px) {
    .bsw-toast--show {
        transform: translateY(0);
    }
}

/* Exit state */
.bsw-toast--hide {
    opacity: 0;
    transform: translateX(24px) scale(.95);
    pointer-events: none;
}

@media (max-width: 540px) {
    .bsw-toast--hide {
        transform: translateY(12px) scale(.95);
    }
}

/* Icon badge */
.bsw-toast__icon {
    flex-shrink: 0;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: .8rem;
    font-weight: 800;
}

.bsw-toast__msg {
    flex: 1;
}

/* Colour variants */
.bsw-toast--success {
    background: #0d2e29;
    border: 1px solid rgba(0, 191, 165, .4);
    color: #5eead4;
}

.bsw-toast--success .bsw-toast__icon {
    background: rgba(0, 191, 165, .2);
    color: #00BFA5;
}

.bsw-toast--error {
    background: #2d1111;
    border: 1px solid rgba(248, 113, 113, .35);
    color: #fca5a5;
}

.bsw-toast--error .bsw-toast__icon {
    background: rgba(248, 113, 113, .15);
    color: #f87171;
}

.bsw-toast--warning {
    background: #2a1f08;
    border: 1px solid rgba(251, 191, 36, .35);
    color: #fcd34d;
}

.bsw-toast--warning .bsw-toast__icon {
    background: rgba(251, 191, 36, .12);
    color: #fbbf24;
}

.bsw-toast--info {
    background: #0f1e35;
    border: 1px solid rgba(148, 163, 184, .25);
    color: var(--text-secondary, #94a3b8);
}

.bsw-toast--info .bsw-toast__icon {
    background: rgba(148, 163, 184, .1);
    color: var(--text-muted, #64748b);
}