{
  "entityType": "project",
  "title": "Project Details",
  "columns": 12,
  "styles": {
    "containerClass": "entity-container entity-p-4",
    "titleClass": "entity-title entity-mb-4",
    "sectionClass": "entity-section entity-card entity-mb-4",
    "rowClass": "entity-row entity-gap-3",
    "fieldClass": "field-container"
  },
  "sections": [
    {
      "id": "header",
      "title": "Project Overview",
      "columns": 12,
      "styles": {
        "containerClass": "entity-section entity-card entity-bg-primary entity-bg-opacity-10",
        "titleClass": "entity-section-title"
      },
      "rows": [
        {
          "fields": [
            {
              "id": "projectName",
              "label": "Project Name",
              "dataKey": "name",
              "type": "text",
              "span": 8,
              "styles": {
                "valueClass": "entity-fs-4 entity-fw-bold",
                "containerClass": "field-container"
              }
            },
            {
              "id": "status",
              "label": "Status",
              "dataKey": "status",
              "type": "badge",
              "span": 2,
              "badgeMap": {
                "planned": { "class": "field-badge badge-secondary", "text": "Planned" },
                "in-progress": { "class": "field-badge badge-info", "text": "In Progress" },
                "completed": { "class": "field-badge badge-success", "text": "Completed" },
                "on-hold": { "class": "field-badge badge-warning", "text": "On Hold" },
                "cancelled": { "class": "field-badge badge-danger", "text": "Cancelled" }
              }
            },
            {
              "id": "priority",
              "label": "Priority",
              "dataKey": "priority",
              "type": "badge",
              "span": 2,
              "badgeMap": {
                "critical": { "class": "field-badge badge-danger", "text": "Critical" },
                "high": { "class": "field-badge badge-warning", "text": "High" },
                "medium": { "class": "field-badge badge-info", "text": "Medium" },
                "low": { "class": "field-badge badge-success", "text": "Low" }
              }
            }
          ]
        },
        {
          "fields": [
            {
              "id": "projectCode",
              "label": "Project Code",
              "dataKey": "projectCode",
              "type": "text",
              "span": 4,
              "styles": {
                "valueClass": "entity-font-monospace entity-fw-bold"
              }
            },
            {
              "id": "type",
              "label": "Project Type",
              "dataKey": "type",
              "type": "badge",
              "span": 4,
              "badgeMap": {
                "internal": { "class": "field-badge badge-primary", "text": "Internal" },
                "client": { "class": "field-badge badge-success", "text": "Client" },
                "rnd": { "class": "field-badge badge-info", "text": "R&D" }
              }
            },
            {
              "id": "category",
              "label": "Category",
              "dataKey": "category",
              "type": "text",
              "span": 4,
              "styles": {
                "valueClass": "entity-text-capitalize"
              }
            }
          ]
        },
        {
          "fields": [
            {
              "id": "description",
              "label": "Description",
              "dataKey": "description",
              "type": "textarea",
              "span": 12,
              "styles": {
                "containerClass": "field-container entity-bg-light entity-p-3 entity-rounded",
                "valueClass": "entity-mb-0"
              }
            }
          ]
        }
      ]
    },
    {
      "id": "timeline",
      "title": "Timeline",
      "columns": 6,
      "styles": {
        "containerClass": "entity-section entity-card",
        "titleClass": "entity-section-title"
      },
      "rows": [
        {
          "fields": [
            {
              "id": "startDate",
              "label": "Start Date",
              "dataKey": "timeline.startDate",
              "type": "date",
              "span": 6
            },
            {
              "id": "originalEndDate",
              "label": "Original End Date",
              "dataKey": "timeline.originalEndDate",
              "type": "date",
              "span": 6
            }
          ]
        },
        {
          "fields": [
            {
              "id": "revisedEndDate",
              "label": "Revised End Date",
              "dataKey": "timeline.revisedEndDate",
              "type": "date",
              "span": 6
            },
            {
              "id": "estimatedCompletion",
              "label": "Estimated Completion",
              "dataKey": "timeline.estimatedCompletion",
              "type": "date",
              "span": 6
            }
          ]
        },
        {
          "fields": [
            {
              "id": "currentPhase",
              "label": "Current Phase",
              "dataKey": "timeline.currentPhase",
              "type": "text",
              "span": 12,
              "styles": {
                "valueClass": "entity-fw-bold entity-text-info"
              }
            }
          ]
        }
      ]
    },
    {
      "id": "budget",
      "title": "Budget & Financials",
      "columns": 6,
      "styles": {
        "containerClass": "entity-section entity-card entity-bg-success entity-bg-opacity-10",
        "titleClass": "entity-section-title"
      },
      "rows": [
        {
          "fields": [
            {
              "id": "totalBudget",
              "label": "Total Budget",
              "dataKey": "budget.total",
              "type": "currency",
              "span": 12,
              "styles": {
                "valueClass": "entity-fs-5 entity-fw-bold",
                "containerClass": "field-container entity-border-bottom entity-pb-2"
              }
            }
          ]
        },
        {
          "fields": [
            {
              "id": "spent",
              "label": "Amount Spent",
              "dataKey": "budget.spent",
              "type": "currency",
              "span": 6
            },
            {
              "id": "remaining",
              "label": "Remaining Budget",
              "dataKey": "budget.remaining",
              "type": "currency",
              "span": 6
            }
          ]
        },
        {
          "fields": [
            {
              "id": "forecast",
              "label": "Forecasted Cost",
              "dataKey": "budget.forecast",
              "type": "currency",
              "span": 6
            },
            {
              "id": "variance",
              "label": "Variance",
              "dataKey": "budget.variance",
              "type": "currency",
              "span": 6
            }
          ]
        },
        {
          "fields": [
            {
              "id": "burnRate",
              "label": "Monthly Burn Rate",
              "dataKey": "budget.burnRate",
              "type": "currency",
              "span": 12
            }
          ]
        }
      ]
    },
    {
      "id": "team",
      "title": "Project Team",
      "columns": 12,
      "styles": {
        "containerClass": "entity-section entity-card",
        "titleClass": "entity-section-title"
      },
      "rows": [
        {
          "fields": [
            {
              "id": "projectManager",
              "label": "Project Manager",
              "dataKey": "manager",
              "type": "object",
              "span": 12,
              "styles": {
                "containerClass": "field-container entity-bg-light entity-p-3 entity-rounded entity-mb-3",
                "valueClass": "entity-mb-0"
              }
            }
          ]
        },
        {
          "fields": [
            {
              "id": "clientInfo",
              "label": "Client Information",
              "dataKey": "client",
              "type": "object",
              "span": 6,
              "styles": {
                "containerClass": "field-container entity-bg-light entity-p-3 entity-rounded",
                "valueClass": "entity-mb-0"
              }
            },
            {
              "id": "teamMembers",
              "label": "Team Members",
              "dataKey": "team",
              "type": "array",
              "span": 6,
              "styles": {
                "containerClass": "field-container entity-bg-light entity-p-3 entity-rounded",
                "valueClass": ""
              }
            }
          ]
        }
      ]
    },
    {
      "id": "progress",
      "title": "Progress & Metrics",
      "columns": 8,
      "styles": {
        "containerClass": "entity-section entity-card",
        "titleClass": "entity-section-title"
      },
      "rows": [
        {
          "fields": [
            {
              "id": "progressPercentage",
              "label": "Progress",
              "dataKey": "metrics.progress",
              "type": "percentage",
              "span": 4,
              "styles": {
                "valueClass": "entity-fs-4 entity-fw-bold"
              }
            },
            {
              "id": "health",
              "label": "Project Health",
              "dataKey": "metrics.health",
              "type": "badge",
              "span": 4,
              "badgeMap": {
                "excellent": { "class": "field-badge badge-success", "text": "Excellent" },
                "good": { "class": "field-badge badge-info", "text": "Good" },
                "fair": { "class": "field-badge badge-warning", "text": "Fair" },
                "poor": { "class": "field-badge badge-danger", "text": "Poor" },
                "at-risk": { "class": "field-badge badge-danger", "text": "At Risk" }
              }
            },
            {
              "id": "sprintVelocity",
              "label": "Sprint Velocity",
              "dataKey": "metrics.sprintVelocity",
              "type": "number",
              "span": 4
            }
          ]
        },
        {
          "fields": [
            {
              "id": "bugsOpen",
              "label": "Open Bugs",
              "dataKey": "metrics.bugsOpen",
              "type": "number",
              "span": 4
            },
            {
              "id": "bugsClosed",
              "label": "Closed Bugs",
              "dataKey": "metrics.bugsClosed",
              "type": "number",
              "span": 4
            },
            {
              "id": "testCoverage",
              "label": "Test Coverage",
              "dataKey": "metrics.testCoverage",
              "type": "percentage",
              "span": 4
            }
          ]
        },
        {
          "fields": [
            {
              "id": "technologies",
              "label": "Technologies Used",
              "dataKey": "technologies",
              "type": "array",
              "span": 12,
              "styles": {
                "containerClass": "field-container entity-bg-light entity-p-3 entity-rounded",
                "valueClass": ""
              }
            }
          ]
        }
      ]
    },
    {
      "id": "milestones",
      "title": "Project Milestones",
      "columns": 4,
      "styles": {
        "containerClass": "entity-section entity-card entity-bg-info entity-bg-opacity-10",
        "titleClass": "entity-section-title"
      },
      "rows": [
        {
          "fields": [
            {
              "id": "milestonesList",
              "label": "",
              "dataKey": "milestones",
              "type": "array",
              "span": 12,
              "styles": {
                "containerClass": "field-container",
                "valueClass": ""
              }
            }
          ]
        }
      ]
    },
    {
      "id": "deliverables",
      "title": "Deliverables",
      "columns": 6,
      "styles": {
        "containerClass": "entity-section entity-card",
        "titleClass": "entity-section-title"
      },
      "rows": [
        {
          "fields": [
            {
              "id": "deliverablesList",
              "label": "",
              "dataKey": "deliverables",
              "type": "array",
              "span": 12,
              "styles": {
                "containerClass": "field-container entity-bg-light entity-p-3 entity-rounded",
                "valueClass": ""
              }
            }
          ]
        }
      ]
    },
    {
      "id": "documents",
      "title": "Documents & Attachments",
      "columns": 6,
      "styles": {
        "containerClass": "entity-section entity-card",
        "titleClass": "entity-section-title"
      },
      "rows": [
        {
          "fields": [
            {
              "id": "documentsList",
              "label": "",
              "dataKey": "documents",
              "type": "array",
              "span": 12,
              "badgeMap": {
                "pdf": { "class": "field-badge badge-danger", "text": "PDF" },
                "docx": { "class": "field-badge badge-primary", "text": "DOCX" },
                "figma": { "class": "field-badge badge-info", "text": "Figma" },
                "xlsx": { "class": "field-badge badge-success", "text": "Excel" },
                "default": { "class": "field-badge badge-secondary", "text": "File" }
              }
            }
          ]
        }
      ]
    },
    {
      "id": "risks",
      "title": "Risk Assessment",
      "columns": 12,
      "styles": {
        "containerClass": "entity-section entity-card entity-bg-warning entity-bg-opacity-10",
        "titleClass": "entity-section-title"
      },
      "rows": [
        {
          "fields": [
            {
              "id": "risksList",
              "label": "",
              "dataKey": "risks",
              "type": "array",
              "span": 12,
              "styles": {
                "containerClass": "field-container entity-bg-light entity-p-3 entity-rounded",
                "valueClass": ""
              }
            }
          ]
        }
      ]
    },
    {
      "id": "metadata",
      "title": "Additional Information",
      "columns": 12,
      "styles": {
        "containerClass": "entity-section entity-card",
        "titleClass": "entity-section-title"
      },
      "rows": [
        {
          "fields": [
            {
              "id": "notes",
              "label": "Project Notes",
              "dataKey": "notes",
              "type": "textarea",
              "span": 12,
              "styles": {
                "containerClass": "field-container entity-bg-light entity-p-3 entity-rounded",
                "valueClass": "entity-fst-italic entity-mb-0"
              }
            }
          ]
        },
        {
          "fields": [
            {
              "id": "tags",
              "label": "Tags",
              "dataKey": "tags",
              "type": "array",
              "span": 12,
              "badgeMap": {
                "e-commerce": { "class": "field-badge badge-primary", "text": "E-commerce" },
                "web-app": { "class": "field-badge badge-info", "text": "Web App" },
                "react": { "class": "field-badge badge-success", "text": "React" },
                "nodejs": { "class": "field-badge badge-success", "text": "Node.js" },
                "high-priority": { "class": "field-badge badge-danger", "text": "High Priority" },
                "default": { "class": "field-badge badge-secondary", "text": "Other" }
              }
            }
          ]
        },
        {
          "fields": [
            {
              "id": "createdAt",
              "label": "Created Date",
              "dataKey": "createdAt",
              "type": "datetime",
              "span": 4
            },
            {
              "id": "lastUpdated",
              "label": "Last Updated",
              "dataKey": "lastUpdated",
              "type": "datetime",
              "span": 4
            },
            {
              "id": "createdBy",
              "label": "Created By",
              "dataKey": "createdBy",
              "type": "text",
              "span": 4
            }
          ]
        }
      ]
    }
  ]
}