/**
 * NanoTrans Agent Paywall — Admin Dashboard SSE Styles
 *
 * Minimal styles for real-time toast notifications, anomaly warning banners,
 * and the emergency-mode notice. Designed to harmonize with WordPress admin
 * colour conventions (fonts, shadows, border-radius, status colours).
 */

/* -------------------------------------------------------------------------
 * Toast container — fixed top-right, stacks notifications vertically
 * ------------------------------------------------------------------------- */
.nanotrans-toast-container {
    position: fixed;
    top: 40px;
    right: 20px;
    z-index: 100000;
    display: flex;
    flex-direction: column;
    gap: 8px;
    pointer-events: none; /* let clicks pass through the gap between toasts */
}

/* -------------------------------------------------------------------------
 * Individual toast
 * ------------------------------------------------------------------------- */
.nanotrans-toast {
    pointer-events: auto;
    background: #fff;
    padding: 12px 16px;
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    font-size: 13px;
    line-height: 1.5;
    max-width: 360px;
    opacity: 1;
    transform: translateX(0);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

/* Exit animation — triggered by JS after 5 s */
.nanotrans-toast--hiding {
    opacity: 0;
    transform: translateX(20px);
}

/* Left-border colour conveys severity, mirroring WP admin notice conventions */
.nanotrans-toast--success {
    border-left: 4px solid #00a32a; /* WP green */
}

.nanotrans-toast--warning {
    border-left: 4px solid #dba617; /* WP yellow */
}

.nanotrans-toast--error {
    border-left: 4px solid #d63638; /* WP red */
}

/* -------------------------------------------------------------------------
 * Anomaly warning banner — persistent, prepended inside #nanotrans-dashboard
 * ------------------------------------------------------------------------- */
.nanotrans-warning-banner {
    background: #fcf0f1;
    border-left: 4px solid #d63638;
    padding: 12px 16px;
    margin-bottom: 16px;
    font-size: 13px;
    line-height: 1.5;
}

.nanotrans-warning-banner strong {
    display: block;
    margin-bottom: 4px;
    color: #d63638;
}

/* -------------------------------------------------------------------------
 * Emergency-mode notice — inserted inside .wrap at the top of the page.
 * Uses WordPress .notice.notice-error base classes; this rule just ensures
 * the emergency notice is visually distinct from ordinary notices.
 * ------------------------------------------------------------------------- */
#nanotrans-emergency-notice {
    border-left-width: 6px;
}

#nanotrans-emergency-notice p {
    font-size: 14px;
    padding: 4px 0;
}
