{
  "Type": "Window",
  "Id": "combat_log",
  "Title": "Combat Log",
  "Icon": "\u2694",
  "Classes": [
    "ps-window-holo"
  ],
  "State": "Maximized",
  "DisplayLocation": "Taskbar",
  "WindowGroup": "static_menu",
  "IsRestorable": false,
  "IsMinimizable": false,
  "Width": "100%",
  "Height": "100%",
  "Background": "rgba(0,0,0,0.85)",
  "Padding": "16",
  "Children": [
    {
      "Type": "Grid",
      "Id": "combat_log_layout",
      "Width": "100%",
      "Height": "100%",
      "HorizontalAlignment": "Stretch",
      "VerticalAlignment": "Stretch",
      "ColumnDefinitions": [
        "1.4fr",
        "1fr"
      ],
      "RowDefinitions": [
        "Auto",
        "1fr"
      ],
      "Gap": 12,
      "Children": [
        {
          "Type": "StackPanel",
          "Id": "combat_log_header",
          "Grid.Row": 0,
          "Grid.Column": 0,
          "Grid.ColumnSpan": 2,
          "Orientation": "Vertical",
          "Gap": 4,
          "Children": [
            {
              "Type": "Label",
              "Id": "combat_log_title",
              "Text": "Combat Events",
              "Style": "Label.Heading"
            },
            {
              "Type": "Label",
              "Id": "combat_log_subtitle",
              "Text": "Beam fire, missile impacts, point defense, and ship losses stream here in real time.",
              "Style": "Label.Small"
            }
          ]
        },
        {
          "Type": "DataGrid",
          "Id": "combat_log_grid",
          "Grid.Row": 1,
          "Grid.Column": 0,
          "Width": "100%",
          "Height": "100%",
          "SelectionMode": "Single",
          "OnSelectionChanged": "core.combat_log.select_row",
          "HeadersVisible": true,
          "EnableVerticalScroll": true,
          "UseZebraStriping": false,
          "AllowSorting": false,
          "AutoScrollToEnd": true,
          "FooterLeftText": "",
          "Columns": [
            {
              "Header": "Tick",
              "Field": "tick",
              "Width": "90px"
            },
            {
              "Header": "Type",
              "Field": "type",
              "Width": "100px"
            },
            {
              "Header": "Attacker",
              "Field": "attacker",
              "Width": "120px"
            },
            {
              "Header": "Target",
              "Field": "target",
              "Width": "120px"
            },
            {
              "Header": "Summary",
              "Field": "summary",
              "Flex": 1
            }
          ],
          "Rows": []
        },
        {
          "Type": "StackPanel",
          "Id": "combat_log_detail_panel",
          "Grid.Row": 1,
          "Grid.Column": 1,
          "Orientation": "Vertical",
          "Gap": 10,
          "Padding": "16",
          "Background": "rgba(13,18,28,0.92)",
          "Border": "1px solid rgba(92,168,255,0.16)",
          "CornerRadius": 12,
          "Children": [
            {
              "Type": "Label",
              "Id": "combat_log_detail_heading",
              "Text": "Selected Event",
              "Style": "Label.Subheading"
            },
            {
              "Type": "Label",
              "Id": "combat_log_detail_title",
              "Text": "No combat events yet.",
              "Style": "Label.BodyStrong"
            },
            {
              "Type": "Label",
              "Id": "combat_log_detail_body",
              "Text": "Combat events will appear here when ships exchange fire.",
              "Wrap": true,
              "Style": "Label.Small"
            }
          ]
        }
      ]
    }
  ]
}
