"""Paleta semântica única para todos os estados do portal Kreate4Web.

Variantes suportadas pelo Unfold: success, primary, warning, danger, info.
A interface do cliente usa os mesmos significados com tons próprios.
"""

STATUS_MEANINGS = {
    "success": "Verde — ativo, saudável, confirmado, pago ou concluído.",
    "primary": "Azul — em curso, em configuração, em revisão ou a ser processado.",
    "warning": "Amarelo/laranja — atenção, espera, proximidade de prazo ou situação parcial.",
    "danger": "Vermelho — falha, atraso, suspensão, incidente ou ação urgente.",
    "info": "Cinzento/roxo — encerrado, cancelado, histórico, oferta ou responsabilidade externa.",
}

CLIENT_STATUS_LABELS = {
    "pending": "warning", "active": "success", "special": "primary", "debt": "danger",
    "blocked": "danger", "inactive": "info", "former": "info",
}
SERVICE_STATUS_LABELS = {
    "provisioning": "primary", "active": "success", "attention": "warning", "pending": "warning",
    "overdue": "danger", "cancelled": "info", "suspended": "danger", "complimentary": "info",
    "transferred": "info", "client_direct": "info", "archived": "info",
}
DOMAIN_STATUS_LABELS = {
    "pending": "warning", "active": "success", "expiring": "warning", "grace": "warning",
    "expired": "danger", "transfer_in": "primary", "transferred": "info", "suspended": "danger",
    "cancelled": "info", "complimentary": "info", "client_direct": "info",
}
HOSTING_STATUS_LABELS = {
    "provisioning": "primary", "active": "success", "limited": "warning", "migrating": "primary",
    "maintenance": "warning", "suspended": "danger", "offline": "danger", "cancelled": "info",
    "unknown": "info",
}
SERVER_STATUS_LABELS = {
    "provisioning": "primary", "active": "success", "degraded": "warning", "maintenance": "warning",
    "incident": "danger", "offline": "danger", "retired": "info",
}
ASSET_STATUS_LABELS = {
    "active": "success", "attention": "warning", "critical": "danger", "maintenance": "warning",
    "inactive": "info", "unknown": "info",
}
BACKUP_STATUS_LABELS = {
    "scheduled": "primary", "running": "primary", "created": "warning", "verified": "success",
    "failed": "danger", "expired": "info",
}
RENEWAL_STATUS_LABELS = {
    "to_notify": "warning", "notified": "primary", "waiting_payment": "warning", "partial": "warning",
    "paid": "success", "processing": "primary", "renewed": "success", "overdue": "danger",
    "cancelled": "info",
}
PAYMENT_STATUS_LABELS = {
    "pending": "warning", "waiting_proof": "warning", "validating": "primary", "partial": "warning",
    "paid": "success", "overdue": "danger", "rejected": "danger", "cancelled": "info",
    "refunded": "info",
}
WEBSITE_STATUS_LABELS = {
    "quote": "info", "approved": "success", "development": "primary", "review": "primary",
    "waiting": "warning", "on_hold": "warning", "delivered": "success", "paid": "success",
    "partial": "warning", "maintenance": "warning", "cancelled": "info", "archived": "info",
}
TASK_STATUS_LABELS = {
    "todo": "warning", "in_progress": "primary", "waiting": "warning", "blocked": "danger",
    "done": "success", "cancelled": "info",
}
TICKET_STATUS_LABELS = {
    "open": "warning", "in_progress": "primary", "reopened": "primary", "waiting_client": "warning",
    "waiting_internal": "warning", "resolved": "success", "closed": "info",
}
NOTIFICATION_STATUS_LABELS = {
    "draft": "info", "scheduled": "primary", "sending": "primary", "sent": "success",
    "failed": "danger", "cancelled": "info", "suppressed": "warning",
}

WORDPRESS_HEALTH_LABELS = {
    "healthy": "success", "attention": "warning", "critical": "danger",
    "maintenance": "warning", "unknown": "info",
}
WORDPRESS_PLUGIN_STATUS_LABELS = {
    "active": "success", "inactive": "info", "must_use": "primary",
}
WORDPRESS_SECURITY_LABELS = {
    "secure": "success", "attention": "warning", "vulnerable": "danger", "unknown": "info",
}
SSL_STATUS_LABELS = {
    "pending": "warning", "valid": "success", "expiring": "warning",
    "expired": "danger", "invalid": "danger", "revoked": "danger", "unknown": "info",
}

MONITOR_STATUS_LABELS = {
    "pending": "info", "up": "success", "degraded": "warning", "down": "danger",
    "maintenance": "warning", "paused": "info",
}
MONITOR_CHECK_LABELS = {
    "up": "success", "degraded": "warning", "down": "danger",
    "maintenance": "warning", "skipped": "info",
}
MONITOR_INCIDENT_LABELS = {
    "open": "danger", "acknowledged": "warning", "resolved": "success", "ignored": "info",
}
