/**
 * toast.css
 * Shared slide-in notification toast — pair with js/toast.js's showToast(type, message).
 * Container is created automatically by showToast() if missing, so pages only need to
 * link this stylesheet + the script, no markup required.
 */

#app-toast-container {
    position: fixed;
    top: 24px;
    right: 24px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-width: 360px;
    max-width: 520px;
}

.app-toast {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 1rem 1.3rem;
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, .13);
    font-size: 0.9rem;
    font-weight: 500;
    line-height: 1.4;
    animation: appToastSlideIn .28s cubic-bezier(.16, 1, .3, 1);
}

.app-toast svg {
    flex-shrink: 0;
}

.app-toast-success { background: #f0fdf4; border: 1.5px solid #86efac; color: #15803d; }
.app-toast-error   { background: #fef2f2; border: 1.5px solid #fca5a5; color: #b91c1c; }
.app-toast-warning { background: #fffbeb; border: 1.5px solid #fde68a; color: #92400e; }

@keyframes appToastSlideIn {
    from { opacity: 0; transform: translateX(40px); }
    to   { opacity: 1; transform: translateX(0); }
}
