/* AppToast — reusable stack (success / danger / info / warning) */

.app-toast-stack {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0.5rem;
    max-width: min(100vw - 1.5rem, 22rem);
    pointer-events: none;
}

.app-toast-stack > .toast {
    pointer-events: auto;
    width: 100%;
    max-width: none;
}

.app-toast {
    --app-toast-accent: #94a3b8;
    border: 1px solid rgba(148, 163, 184, 0.25) !important;
}

.app-toast--success {
    --app-toast-accent: #22c55e;
}

.app-toast--danger {
    --app-toast-accent: #f87171;
}

.app-toast--info {
    --app-toast-accent: #38bdf8;
}

.app-toast--warning {
    --app-toast-accent: #eab308;
}

.app-toast-inner {
    border: 1px solid rgba(148, 163, 184, 0.15);
    background: rgba(15, 23, 42, 0.97);
    backdrop-filter: blur(8px);
}

.app-toast-icon-col {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 0.75rem 0 0.75rem 0.75rem;
    color: var(--app-toast-accent);
    font-size: var(--ds-text-lg);
    flex-shrink: 0;
}

.app-toast .toast-body {
    color: #f1f5f9;
    font-size: 0.875rem;
    line-height: 1.45;
    padding: 0.75rem 0.5rem 0.75rem 0.35rem;
    border-left: 3px solid var(--app-toast-accent);
}

.app-toast .btn-close {
    flex-shrink: 0;
    margin: 0.65rem 0.65rem 0.65rem 0;
    opacity: 0.65;
}

.app-toast .btn-close:hover {
    opacity: 1;
}

@media (prefers-reduced-motion: reduce) {
    .app-toast {
        transition: none !important;
    }
}
