/* App-wide flash toasts */
.app-toast-root {
    position: fixed;
    top: 18px;
    right: 18px;
    z-index: 2000;
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: min(380px, calc(100vw - 24px));
    pointer-events: none;
}

.app-toast {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 12px 14px;
    border-radius: 12px;
    border: 1px solid transparent;
    background: #fff;
    color: #0d2b4d;
    box-shadow: 0 12px 30px rgba(15, 40, 60, 0.18);
    opacity: 0;
    transform: translateY(-8px);
    transition: opacity 0.2s ease, transform 0.2s ease;
    pointer-events: auto;
}

.app-toast.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.app-toast.is-leaving {
    opacity: 0;
    transform: translateY(-6px);
}

.app-toast-icon {
    flex-shrink: 0;
    width: 22px;
    height: 22px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: 1px;
    font-size: 15px;
}

.app-toast-body {
    flex: 1;
    min-width: 0;
    font-size: 14px;
    line-height: 1.45;
    font-weight: 500;
}

.app-toast-close {
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: inherit;
    opacity: 0.7;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.app-toast-close:hover {
    opacity: 1;
    background: rgba(0, 0, 0, 0.06);
}

.app-toast--success {
    background: #ecfbf7;
    border-color: #b6eadc;
    color: #0f5c4c;
}

.app-toast--success .app-toast-icon { color: #16a34a; }

.app-toast--error {
    background: #fff1f1;
    border-color: #f3c1c1;
    color: #8a1f1f;
}

.app-toast--error .app-toast-icon { color: #dc2626; }

.app-toast--warning {
    background: #fff8eb;
    border-color: #f0d7a3;
    color: #7a5310;
}

.app-toast--warning .app-toast-icon { color: #d97706; }

.app-toast--info {
    background: #eef8fb;
    border-color: #b9e0ea;
    color: #0d4f6c;
}

.app-toast--info .app-toast-icon { color: #0d7c80; }

@media (max-width: 575.98px) {
    .app-toast-root {
        top: 12px;
        right: 12px;
        left: 12px;
        width: auto;
    }
}
