{
        "type": "dashboard",
        "refreshInterval": 30000,
        "layout": "grid",
        "widgets": [
            {
                "id": "stats_overview",
                "type": "stats",
                "title": "Submission Overview",
                "size": "full",
                "dataSource": "/api/taxcore/stats/{org_id}",
                "stats": [
                    {
                        "key": "total_submissions",
                        "label": "Total Submissions",
                        "icon": "fa-file-alt",
                        "color": "primary"
                    },
                    {
                        "key": "successful",
                        "label": "Successful",
                        "icon": "fa-check-circle",
                        "color": "success"
                    },
                    {
                        "key": "failed",
                        "label": "Failed",
                        "icon": "fa-times-circle",
                        "color": "error"
                    },
                    {
                        "key": "pending",
                        "label": "Pending",
                        "icon": "fa-clock",
                        "color": "warning"
                    }
                ]
            },
            {
                "id": "success_rate",
                "type": "gauge",
                "title": "Success Rate",
                "size": "half",
                "dataSource": "/api/taxcore/stats/{org_id}",
                "calculate": "(successful / total_submissions) * 100",
                "min": 0,
                "max": 100,
                "unit": "%",
                "ranges": [
                    {"min": 0, "max": 70, "color": "error", "label": "Poor"},
                    {"min": 70, "max": 90, "color": "warning", "label": "Fair"},
                    {"min": 90, "max": 100, "color": "success", "label": "Excellent"}
                ]
            },
            {
                "id": "total_amount",
                "type": "metric",
                "title": "Total Amount Submitted",
                "size": "half",
                "dataSource": "/api/taxcore/stats/{org_id}",
                "key": "total_amount",
                "format": "currency",
                "trend": {
                    "enabled": true,
                    "compareWith": "previous_period"
                }
            },
            {
                "id": "retry_queue",
                "type": "alert",
                "title": "Retry Queue",
                "size": "full",
                "dataSource": "/api/taxcore/queue-stats/{org_id}",
                "alerts": [
                    {
                        "key": "queued_for_retry",
                        "label": "Items in Retry Queue",
                        "severity": "warning",
                        "threshold": 0,
                        "icon": "fa-hourglass-half"
                    },
                    {
                        "key": "max_retries_exceeded",
                        "label": "Max Retries Exceeded",
                        "severity": "error",
                        "threshold": 0,
                        "icon": "fa-exclamation-triangle"
                    }
                ]
            },
            {
                "id": "recent_submissions",
                "type": "list",
                "title": "Recent Submissions",
                "size": "full",
                "dataSource": "/api/taxcore/submission-history/{org_id}?limit=10",
                "columns": [
                    {"key": "created_at", "label": "Time", "type": "datetime"},
                    {"key": "reference_table", "label": "Type", "type": "text"},
                    {"key": "status", "label": "Status", "type": "badge"},
                    {"key": "total_amount", "label": "Amount", "type": "currency"}
                ]
            },
            {
                "id": "submission_trend",
                "type": "chart",
                "title": "7-Day Submission Trend",
                "size": "full",
                "dataSource": "/api/taxcore/trend/{org_id}?days=7",
                "chartType": "line",
                "xAxis": "date",
                "yAxis": ["successful", "failed"],
                "colors": {
                    "successful": "#10b981",
                    "failed": "#ef4444"
                }
            }
        ]
    }