{
  "version": "2.7",
  "children": [
    {
      "type": "frame",
      "id": "RoleSwitchDialog",
      "x": 0,
      "y": 0,
      "name": "Dialog/RoleSwitch",
      "reusable": true,
      "width": 380,
      "height": 530,
      "fill": "$bg-elevated",
      "cornerRadius": 20,
      "layout": "vertical",
      "children": [
        {
          "type": "frame",
          "id": "SwitchContent",
          "width": "fill_container",
          "height": "fill_container",
          "layout": "vertical",
          "gap": 20,
          "padding": [
            28,
            24
          ],
          "children": [
            {
              "type": "frame",
              "id": "SwitchIconWrap",
              "width": "fill_container",
              "justifyContent": "center",
              "children": [
                {
                  "type": "frame",
                  "id": "SwitchIconBg",
                  "width": 72,
                  "height": 72,
                  "fill": "#F9731620",
                  "cornerRadius": 36,
                  "justifyContent": "center",
                  "alignItems": "center",
                  "children": [
                    {
                      "type": "frame",
                      "id": "SwitchIconInner",
                      "width": 52,
                      "height": 52,
                      "fill": "#F9731620",
                      "cornerRadius": 26,
                      "justifyContent": "center",
                      "alignItems": "center",
                      "children": [
                        {
                          "type": "icon_font",
                          "id": "SwitchIcon",
                          "width": 28,
                          "height": 28,
                          "iconFontName": "users",
                          "iconFontFamily": "lucide",
                          "fill": "#F97316"
                        }
                      ]
                    }
                  ]
                }
              ]
            },
            {
              "type": "frame",
              "id": "SwitchTitle",
              "width": "fill_container",
              "layout": "vertical",
              "gap": 6,
              "alignItems": "center",
              "children": [
                {
                  "type": "text",
                  "id": "SwitchTitleText",
                  "fill": "$text-primary",
                  "content": "Chuyển Vai Trò",
                  "textAlign": "center",
                  "fontFamily": "Roboto",
                  "fontSize": 20,
                  "fontWeight": "700"
                },
                {
                  "type": "text",
                  "id": "SwitchSubtitle",
                  "fill": "$text-tertiary",
                  "content": "Đang đăng nhập: Thu Ngân",
                  "textAlign": "center",
                  "fontFamily": "Roboto",
                  "fontSize": 14,
                  "fontWeight": "normal"
                }
              ]
            },
            {
              "type": "frame",
              "id": "RoleList",
              "width": "fill_container",
              "layout": "vertical",
              "gap": 8,
              "children": [
                {
                  "type": "frame",
                  "id": "RoleCashier",
                  "width": "fill_container",
                  "height": 56,
                  "fill": "$orange-primary",
                  "cornerRadius": 14,
                  "gap": 12,
                  "padding": [
                    0,
                    16
                  ],
                  "alignItems": "center",
                  "children": [
                    {
                      "type": "frame",
                      "id": "CashierAvatar",
                      "width": 36,
                      "height": 36,
                      "fill": "#FFFFFF20",
                      "cornerRadius": 18,
                      "justifyContent": "center",
                      "alignItems": "center",
                      "children": [
                        {
                          "type": "icon_font",
                          "id": "CashierIcon",
                          "width": 18,
                          "height": 18,
                          "iconFontName": "user",
                          "iconFontFamily": "lucide",
                          "fill": "#FFFFFF"
                        }
                      ]
                    },
                    {
                      "type": "frame",
                      "id": "CashierInfo",
                      "width": "fill_container",
                      "layout": "vertical",
                      "gap": 2,
                      "children": [
                        {
                          "type": "text",
                          "id": "CashierName",
                          "fill": "#FFFFFF",
                          "content": "Thu Ngân",
                          "fontFamily": "Roboto",
                          "fontSize": 14,
                          "fontWeight": "600"
                        },
                        {
                          "type": "text",
                          "id": "CashierDesc",
                          "fill": "#FFFFFF90",
                          "content": "Đang sử dụng",
                          "fontFamily": "Roboto",
                          "fontSize": 11,
                          "fontWeight": "normal"
                        }
                      ]
                    },
                    {
                      "type": "icon_font",
                      "id": "CashierCheck",
                      "width": 20,
                      "height": 20,
                      "iconFontName": "check-circle",
                      "iconFontFamily": "lucide",
                      "fill": "#FFFFFF"
                    }
                  ]
                },
                {
                  "type": "frame",
                  "id": "RoleManager",
                  "width": "fill_container",
                  "height": 56,
                  "fill": "$bg-page",
                  "cornerRadius": 14,
                  "stroke": {
                    "thickness": 1,
                    "fill": "$border-default"
                  },
                  "gap": 12,
                  "padding": [
                    0,
                    16
                  ],
                  "alignItems": "center",
                  "children": [
                    {
                      "type": "frame",
                      "id": "ManagerAvatar",
                      "width": 36,
                      "height": 36,
                      "fill": "#8B5CF620",
                      "cornerRadius": 18,
                      "justifyContent": "center",
                      "alignItems": "center",
                      "children": [
                        {
                          "type": "icon_font",
                          "id": "ManagerIcon",
                          "width": 18,
                          "height": 18,
                          "iconFontName": "shield",
                          "iconFontFamily": "lucide",
                          "fill": "#8B5CF6"
                        }
                      ]
                    },
                    {
                      "type": "frame",
                      "id": "ManagerInfo",
                      "width": "fill_container",
                      "layout": "vertical",
                      "gap": 2,
                      "children": [
                        {
                          "type": "text",
                          "id": "ManagerName",
                          "fill": "$text-primary",
                          "content": "Quản Lý",
                          "fontFamily": "Roboto",
                          "fontSize": 14,
                          "fontWeight": "500"
                        },
                        {
                          "type": "text",
                          "id": "ManagerDesc",
                          "fill": "$text-tertiary",
                          "content": "Toàn quyền truy cập",
                          "fontFamily": "Roboto",
                          "fontSize": 11,
                          "fontWeight": "normal"
                        }
                      ]
                    },
                    {
                      "type": "icon_font",
                      "id": "ManagerLock",
                      "width": 16,
                      "height": 16,
                      "iconFontName": "lock",
                      "iconFontFamily": "lucide",
                      "fill": "$text-tertiary"
                    }
                  ]
                },
                {
                  "type": "frame",
                  "id": "RoleKitchen",
                  "width": "fill_container",
                  "height": 56,
                  "fill": "$bg-page",
                  "cornerRadius": 14,
                  "stroke": {
                    "thickness": 1,
                    "fill": "$border-default"
                  },
                  "gap": 12,
                  "padding": [
                    0,
                    16
                  ],
                  "alignItems": "center",
                  "children": [
                    {
                      "type": "frame",
                      "id": "KitchenAvatar",
                      "width": 36,
                      "height": 36,
                      "fill": "#22C55E20",
                      "cornerRadius": 18,
                      "justifyContent": "center",
                      "alignItems": "center",
                      "children": [
                        {
                          "type": "icon_font",
                          "id": "KitchenIcon",
                          "width": 18,
                          "height": 18,
                          "iconFontName": "chef-hat",
                          "iconFontFamily": "lucide",
                          "fill": "#22C55E"
                        }
                      ]
                    },
                    {
                      "type": "frame",
                      "id": "KitchenInfo",
                      "width": "fill_container",
                      "layout": "vertical",
                      "gap": 2,
                      "children": [
                        {
                          "type": "text",
                          "id": "KitchenName",
                          "fill": "$text-primary",
                          "content": "Bếp / Pha Chế",
                          "fontFamily": "Roboto",
                          "fontSize": 14,
                          "fontWeight": "500"
                        },
                        {
                          "type": "text",
                          "id": "KitchenDesc",
                          "fill": "$text-tertiary",
                          "content": "Xem đơn hàng",
                          "fontFamily": "Roboto",
                          "fontSize": 11,
                          "fontWeight": "normal"
                        }
                      ]
                    },
                    {
                      "type": "icon_font",
                      "id": "KitchenLock",
                      "width": 16,
                      "height": 16,
                      "iconFontName": "lock",
                      "iconFontFamily": "lucide",
                      "fill": "$text-tertiary"
                    }
                  ]
                },
                {
                  "type": "frame",
                  "id": "RoleWaiter",
                  "width": "fill_container",
                  "height": 56,
                  "fill": "$bg-page",
                  "cornerRadius": 14,
                  "stroke": {
                    "thickness": 1,
                    "fill": "$border-default"
                  },
                  "gap": 12,
                  "padding": [
                    0,
                    16
                  ],
                  "alignItems": "center",
                  "children": [
                    {
                      "type": "frame",
                      "id": "WaiterAvatar",
                      "width": 36,
                      "height": 36,
                      "fill": "#3B82F620",
                      "cornerRadius": 18,
                      "justifyContent": "center",
                      "alignItems": "center",
                      "children": [
                        {
                          "type": "icon_font",
                          "id": "WaiterIcon",
                          "width": 18,
                          "height": 18,
                          "iconFontName": "utensils-crossed",
                          "iconFontFamily": "lucide",
                          "fill": "#3B82F6"
                        }
                      ]
                    },
                    {
                      "type": "frame",
                      "id": "WaiterInfo",
                      "width": "fill_container",
                      "layout": "vertical",
                      "gap": 2,
                      "children": [
                        {
                          "type": "text",
                          "id": "WaiterName",
                          "fill": "$text-primary",
                          "content": "Phục Vụ",
                          "fontFamily": "Roboto",
                          "fontSize": 14,
                          "fontWeight": "500"
                        },
                        {
                          "type": "text",
                          "id": "WaiterDesc",
                          "fill": "$text-tertiary",
                          "content": "Gọi món & phục vụ",
                          "fontFamily": "Roboto",
                          "fontSize": 11,
                          "fontWeight": "normal"
                        }
                      ]
                    },
                    {
                      "type": "icon_font",
                      "id": "WaiterLock",
                      "width": 16,
                      "height": 16,
                      "iconFontName": "lock",
                      "iconFontFamily": "lucide",
                      "fill": "$text-tertiary"
                    }
                  ]
                }
              ]
            }
          ]
        },
        {
          "type": "frame",
          "id": "SwitchFooter",
          "width": "fill_container",
          "stroke": {
            "thickness": 1,
            "fill": "$border-subtle"
          },
          "padding": [
            16,
            24
          ],
          "children": [
            {
              "type": "frame",
              "id": "CancelSwitchBtn",
              "width": "fill_container",
              "height": 48,
              "fill": "$bg-interactive",
              "cornerRadius": 12,
              "justifyContent": "center",
              "alignItems": "center",
              "children": [
                {
                  "type": "text",
                  "id": "CancelSwitchText",
                  "fill": "$text-secondary",
                  "content": "Đóng",
                  "fontFamily": "Roboto",
                  "fontSize": 14,
                  "fontWeight": "500"
                }
              ]
            }
          ]
        }
      ]
    }
  ],
  "variables": {
    "bg-elevated": {
      "type": "color",
      "value": "#1A1A1D"
    },
    "bg-interactive": {
      "type": "color",
      "value": "#2A2A2E"
    },
    "bg-page": {
      "type": "color",
      "value": "#0A0A0B"
    },
    "border-default": {
      "type": "color",
      "value": "#2A2A2E"
    },
    "border-subtle": {
      "type": "color",
      "value": "#1F1F23"
    },
    "orange-primary": {
      "type": "color",
      "value": "#FF5C00"
    },
    "text-primary": {
      "type": "color",
      "value": "#FFFFFF"
    },
    "text-secondary": {
      "type": "color",
      "value": "#ADADB0"
    },
    "text-tertiary": {
      "type": "color",
      "value": "#8B8B90"
    }
  }
}