{
	"Type": "Grid",
	"Id": "lobby",
	"Width": "100%",
	"Height": "100%",
	"HorizontalAlignment": "Stretch",
	"VerticalAlignment": "Stretch",
	"Children": [
		{
			"Type": "Panel",
			"Id": "lobby_content",
			"HorizontalAlignment": "Center",
			"VerticalAlignment": "Center",
			"Padding": "16",
			"Classes": [
				"ps-panel--accent-strip"
			],
			"Children": [
				{
					"Type": "Label",
					"Id": "lobby_title",
					"Text": "Game Lobby",
					"Style": "Label.Title",
					"Margin": "0 0 10 0"
				},
				{
					"Type": "Grid",
					"Id": "lobby_container",
					"RowDefinitions": ["Auto", "*"],
					"ColumnDefinitions": ["300px", "*"],
					"Children": [
						{
							"Type": "Panel",
							"Id": "players_panel",
							"Padding": "16",
							"Classes": ["ps-panel--accent-strip"],
							"Children": [
								{
										"Type": "Label",
										"Text": "Players",
										"Style": "Label.Heading",
										"Margin": "0 0 10 0"
								},
								{
										"Type": "DataGrid",
										"Id": "players_grid",
										"HeadersVisible": false,
										"Columns": [
											{
												"Id": "col_name",
												"Header": "Name",
												"Width": "*"
											},
											{
												"Id": "col_faction",
												"Header": "Faction",
												"Width": "*"
											},
											{
												"Id": "col_ready",
												"Header": "Ready",
												"Width": "80px",
												"Alignment": "Center"
											}
										]
								}
							]
						},
						{
							"Type": "Panel",
							"Id": "slots_panel",
							"Padding": "16",
							"Classes": ["ps-panel--accent-strip"],
							"Children": [
								{
										"Type": "Label",
										"Text": "Faction Slots",
										"Style": "Label.Heading",
										"Margin": "0 0 10 0"
								},
								{
										"Type": "DataGrid",
										"Id": "slots_grid",
										"HeadersVisible": false,
										"Columns": [
											{
												"Id": "col_slot",
												"Header": "Slot",
												"Width": "60px",
												"Alignment": "Center"
											},
											{
												"Id": "col_player",
												"Header": "Player",
												"Width": "*"
											},
											{
												"Id": "col_action",
												"Header": "Action",
												"Width": "120px",
												"Alignment": "Center"
											}
										]
								}
							]
						}
					]
				},
				{
					"Type": "Panel",
					"Id": "lobby_actions",
					"HorizontalAlignment": "Center",
					"Margin": "10 0 0 0",
					"Orientation": "Horizontal",
					"Gap": 8,
					"Children": [
						{
							"Type": "Button",
							"Id": "btn_ready",
							"Text": "Ready",
							"Style": "Primary",
							"Command": "core.lobby.toggle_ready",
							"Width": "120px"
						},
						{
							"Type": "Button",
							"Id": "btn_start_game",
							"Text": "Start Game",
							"Style": "Success",
							"Command": "core.lobby.start_game",
							"Width": "120px"
						}
					]
				}
			]
		}
	]
}
