/**
 * AllOEMRims Toast — Phase 4 polish.
 *
 * Top-right slide-in (top-center on mobile). Auto-dismisses after 4s
 * (configurable). Click to dismiss. Stack supports multiple concurrent
 * toasts.
 */

.aor-toast-stack {
    position: fixed;
    top: 16px;
    right: 16px;
    z-index: 99999;
    display: flex;
    flex-direction: column;
    gap: 8px;
    pointer-events: none;
}

@media (max-width: 640px) {
    .aor-toast-stack {
        top: 12px;
        left: 12px;
        right: 12px;
        align-items: stretch;
    }
}

.aor-toast {
    pointer-events: auto;
    background: linear-gradient(135deg, #0a1929 0%, #050d18 100%);
    border: 1px solid rgba(255, 255, 255, 0.10);
    border-radius: 10px;
    padding: 12px 16px 12px 14px;
    color: #fff;
    font-size: 14px;
    line-height: 1.4;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 240px;
    max-width: 360px;
    transform: translateX(120%);
    opacity: 0;
    transition:
        transform var(--motion-duration-base, 250ms) var(--motion-easing-decelerate, cubic-bezier(0, 0, 0.2, 1)),
        opacity var(--motion-duration-base, 250ms) var(--motion-easing-decelerate, cubic-bezier(0, 0, 0.2, 1));
    cursor: pointer;
}

.aor-toast.is-visible {
    transform: translateX(0);
    opacity: 1;
}

.aor-toast.is-leaving {
    transform: translateX(120%);
    opacity: 0;
}

@media (max-width: 640px) {
    .aor-toast {
        max-width: none;
        transform: translateY(-120%);
    }
    .aor-toast.is-visible { transform: translateY(0); }
    .aor-toast.is-leaving { transform: translateY(-120%); }
}

.aor-toast-icon {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 14px;
    font-weight: 700;
}

.aor-toast-success { border-left: 4px solid #4ade80; }
.aor-toast-success .aor-toast-icon { background: rgba(74, 222, 128, 0.15); color: #4ade80; }

.aor-toast-error { border-left: 4px solid #ef4444; }
.aor-toast-error .aor-toast-icon { background: rgba(239, 68, 68, 0.15); color: #ef4444; }

.aor-toast-info { border-left: 4px solid #00c8ff; }
.aor-toast-info .aor-toast-icon { background: rgba(0, 200, 255, 0.15); color: #00c8ff; }

.aor-toast-message {
    flex: 1;
    color: rgba(255, 255, 255, 0.92);
}

.aor-toast-close {
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.5);
    font-size: 18px;
    cursor: pointer;
    padding: 0 4px;
    line-height: 1;
    flex-shrink: 0;
}

.aor-toast-close:hover {
    color: #fff;
}
