{
  "version": "2.6",
  "children": [
    {
      "type": "frame",
      "name": "Customer Lookup Showcase",
      "width": 1440,
      "fill": "$bg-page",
      "layout": "vertical",
      "gap": 80,
      "padding": [80, 120],
      "children": [
        {
          "type": "frame",
          "id": "CustomerLookupSection",
          "name": "Customer Lookup Section",
          "width": "fill_container",
          "layout": "vertical",
          "gap": 32,
          "children": [
            {
              "type": "frame",
              "id": "CustomerLookupHeader",
              "name": "customerLookupSectionHeader",
              "layout": "vertical",
              "gap": 16,
              "alignItems": "center",
              "children": [
                {
                  "type": "frame",
                  "id": "CustomerLookupBadge",
                  "name": "shBadge",
                  "fill": "#FF5C0018",
                  "cornerRadius": 100,
                  "padding": [6, 14],
                  "children": [
                    {
                      "type": "text",
                      "id": "CustomerLookupBadgeText",
                      "name": "badgeText",
                      "fill": "$orange-primary",
                      "content": "CUSTOMER LOOKUP",
                      "fontFamily": "Roboto",
                      "fontSize": 11,
                      "fontWeight": "500",
                      "letterSpacing": 2
                    }
                  ]
                },
                {
                  "type": "text",
                  "id": "CustomerLookupTitle",
                  "name": "shTitle",
                  "fill": "$text-primary",
                  "content": "Customer Search & Add",
                  "textAlign": "center",
                  "fontFamily": "Roboto",
                  "fontSize": 42,
                  "fontWeight": "normal",
                  "letterSpacing": -1
                }
              ]
            },
            {
              "type": "frame",
              "id": "CustomerLookupExample",
              "name": "customerLookupExample",
              "width": "fill_container",
              "fill": "$bg-surface",
              "cornerRadius": 16,
              "stroke": {"thickness": 1, "fill": "$border-subtle"},
              "padding": 40,
              "justifyContent": "center",
              "children": [
                {
                  "type": "frame",
                  "id": "CustomerLookupModal",
                  "name": "Organism/CustomerLookup/Modal",
                  "reusable": true,
                  "width": 480,
                  "fill": "$bg-elevated",
                  "cornerRadius": 20,
                  "stroke": {"thickness": 1, "fill": "$border-default"},
                  "layout": "vertical",
                  "clip": true,
                  "children": [
                    {
                      "type": "frame",
                      "id": "CustomerLookupTopBar",
                      "name": "topBar",
                      "width": "fill_container",
                      "padding": [16, 20],
                      "stroke": {"thickness": 1, "fill": "$border-subtle", "sides": ["bottom"]},
                      "justifyContent": "space_between",
                      "alignItems": "center",
                      "children": [
                        {"type": "text", "id": "CustomerLookupModalTitle", "fill": "$text-primary", "content": "Tìm khách hàng", "fontFamily": "Roboto", "fontSize": 18, "fontWeight": "600"},
                        {
                          "type": "frame",
                          "id": "CustomerLookupCloseBtn",
                          "name": "closeBtn",
                          "width": 36,
                          "height": 36,
                          "fill": "$bg-interactive",
                          "cornerRadius": 10,
                          "justifyContent": "center",
                          "alignItems": "center",
                          "children": [
                            {"type": "icon_font", "id": "CustomerLookupCloseIcon", "width": 18, "height": 18, "iconFontName": "x", "iconFontFamily": "lucide", "fill": "$text-secondary"}
                          ]
                        }
                      ]
                    },
                    {
                      "type": "frame",
                      "id": "CustomerLookupBody",
                      "name": "body",
                      "width": "fill_container",
                      "layout": "vertical",
                      "padding": 20,
                      "gap": 16,
                      "children": [
                        {
                          "type": "frame",
                          "id": "CustomerLookupSearchBox",
                          "name": "searchBox",
                          "width": "fill_container",
                          "height": 48,
                          "fill": "$bg-surface",
                          "cornerRadius": 12,
                          "stroke": {"thickness": 1, "fill": "$border-default"},
                          "padding": [0, 16],
                          "gap": 12,
                          "alignItems": "center",
                          "children": [
                            {"type": "icon_font", "id": "CustomerLookupSearchIcon", "width": 20, "height": 20, "iconFontName": "search", "iconFontFamily": "lucide", "fill": "$text-tertiary"},
                            {"type": "text", "id": "CustomerLookupSearchText", "fill": "$text-primary", "content": "0912", "fontFamily": "Roboto", "fontSize": 15, "fontWeight": "normal"},
                            {"type": "frame", "id": "CustomerLookupSearchSpacer", "width": "fill_container", "height": 1},
                            {"type": "icon_font", "id": "CustomerLookupClearIcon", "width": 18, "height": 18, "iconFontName": "x-circle", "iconFontFamily": "lucide", "fill": "$text-tertiary"}
                          ]
                        },
                        {
                          "type": "frame",
                          "id": "CustomerLookupResults",
                          "name": "results",
                          "width": "fill_container",
                          "layout": "vertical",
                          "gap": 8,
                          "children": [
                            {
                              "type": "frame",
                              "id": "CustomerResult1",
                              "name": "customerResult1",
                              "width": "fill_container",
                              "fill": "$bg-surface",
                              "cornerRadius": 12,
                              "stroke": {"thickness": 2, "fill": "$orange-primary"},
                              "padding": 16,
                              "gap": 14,
                              "alignItems": "center",
                              "children": [
                                {
                                  "type": "frame",
                                  "id": "CustomerResult1Avatar",
                                  "name": "avatar",
                                  "width": 44,
                                  "height": 44,
                                  "fill": "#3B82F630",
                                  "cornerRadius": 100,
                                  "justifyContent": "center",
                                  "alignItems": "center",
                                  "children": [
                                    {"type": "text", "id": "CustomerResult1Initials", "fill": "#3B82F6", "content": "NH", "fontFamily": "Roboto", "fontSize": 16, "fontWeight": "600"}
                                  ]
                                },
                                {
                                  "type": "frame",
                                  "id": "CustomerResult1Info",
                                  "name": "info",
                                  "layout": "vertical",
                                  "gap": 4,
                                  "width": "fill_container",
                                  "children": [
                                    {"type": "text", "id": "CustomerResult1Name", "fill": "$text-primary", "content": "Nguyễn Hồng", "fontFamily": "Roboto", "fontSize": 15, "fontWeight": "500"},
                                    {"type": "text", "id": "CustomerResult1Phone", "fill": "$text-secondary", "content": "0912 345 678", "fontFamily": "Roboto", "fontSize": 13, "fontWeight": "normal"}
                                  ]
                                },
                                {
                                  "type": "frame",
                                  "id": "CustomerResult1Points",
                                  "name": "points",
                                  "fill": "#22C55E18",
                                  "cornerRadius": 8,
                                  "padding": [6, 10],
                                  "children": [
                                    {"type": "text", "id": "CustomerResult1PointsText", "fill": "$green-success", "content": "120 điểm", "fontFamily": "Roboto", "fontSize": 12, "fontWeight": "600"}
                                  ]
                                }
                              ]
                            },
                            {
                              "type": "frame",
                              "id": "CustomerResult2",
                              "name": "customerResult2",
                              "width": "fill_container",
                              "fill": "$bg-surface",
                              "cornerRadius": 12,
                              "stroke": {"thickness": 1, "fill": "$border-default"},
                              "padding": 16,
                              "gap": 14,
                              "alignItems": "center",
                              "children": [
                                {
                                  "type": "frame",
                                  "id": "CustomerResult2Avatar",
                                  "name": "avatar",
                                  "width": 44,
                                  "height": 44,
                                  "fill": "#8B5CF630",
                                  "cornerRadius": 100,
                                  "justifyContent": "center",
                                  "alignItems": "center",
                                  "children": [
                                    {"type": "text", "id": "CustomerResult2Initials", "fill": "#8B5CF6", "content": "TL", "fontFamily": "Roboto", "fontSize": 16, "fontWeight": "600"}
                                  ]
                                },
                                {
                                  "type": "frame",
                                  "id": "CustomerResult2Info",
                                  "name": "info",
                                  "layout": "vertical",
                                  "gap": 4,
                                  "width": "fill_container",
                                  "children": [
                                    {"type": "text", "id": "CustomerResult2Name", "fill": "$text-primary", "content": "Trần Linh", "fontFamily": "Roboto", "fontSize": 15, "fontWeight": "500"},
                                    {"type": "text", "id": "CustomerResult2Phone", "fill": "$text-secondary", "content": "0912 888 999", "fontFamily": "Roboto", "fontSize": 13, "fontWeight": "normal"}
                                  ]
                                },
                                {
                                  "type": "frame",
                                  "id": "CustomerResult2Points",
                                  "name": "points",
                                  "fill": "$bg-interactive",
                                  "cornerRadius": 8,
                                  "padding": [6, 10],
                                  "children": [
                                    {"type": "text", "id": "CustomerResult2PointsText", "fill": "$text-secondary", "content": "45 điểm", "fontFamily": "Roboto", "fontSize": 12, "fontWeight": "500"}
                                  ]
                                }
                              ]
                            }
                          ]
                        },
                        {
                          "type": "frame",
                          "id": "CustomerLookupAddNew",
                          "name": "addNewBtn",
                          "width": "fill_container",
                          "height": 48,
                          "cornerRadius": 12,
                          "stroke": {"thickness": 1, "fill": "$border-default", "style": "dashed"},
                          "gap": 8,
                          "justifyContent": "center",
                          "alignItems": "center",
                          "children": [
                            {"type": "icon_font", "id": "CustomerLookupAddIcon", "width": 18, "height": 18, "iconFontName": "user-plus", "iconFontFamily": "lucide", "fill": "$text-secondary"},
                            {"type": "text", "id": "CustomerLookupAddText", "fill": "$text-secondary", "content": "Thêm khách hàng mới", "fontFamily": "Roboto", "fontSize": 14, "fontWeight": "500"}
                          ]
                        }
                      ]
                    },
                    {
                      "type": "frame",
                      "id": "CustomerLookupActions",
                      "name": "actions",
                      "width": "fill_container",
                      "padding": [16, 20],
                      "stroke": {"thickness": 1, "fill": "$border-subtle", "sides": ["top"]},
                      "gap": 12,
                      "children": [
                        {
                          "type": "frame",
                          "id": "CustomerLookupSkipBtn",
                          "name": "skipBtn",
                          "width": "fill_container",
                          "height": 48,
                          "cornerRadius": 12,
                          "stroke": {"thickness": 1, "fill": "$border-default"},
                          "justifyContent": "center",
                          "alignItems": "center",
                          "children": [
                            {"type": "text", "id": "CustomerLookupSkipText", "fill": "$text-secondary", "content": "Bỏ qua", "fontFamily": "Roboto", "fontSize": 15, "fontWeight": "500"}
                          ]
                        },
                        {
                          "type": "frame",
                          "id": "CustomerLookupConfirmBtn",
                          "name": "confirmBtn",
                          "width": "fill_container",
                          "height": 48,
                          "fill": {"type": "gradient", "gradientType": "linear", "enabled": true, "rotation": 135, "size": {"height": 1}, "colors": [{"color": "#FF5C00", "position": 0}, {"color": "#FF8A4C", "position": 1}]},
                          "cornerRadius": 12,
                          "gap": 8,
                          "justifyContent": "center",
                          "alignItems": "center",
                          "children": [
                            {"type": "icon_font", "id": "CustomerLookupConfirmIcon", "width": 18, "height": 18, "iconFontName": "check", "iconFontFamily": "lucide", "fill": "$text-primary"},
                            {"type": "text", "id": "CustomerLookupConfirmText", "fill": "$text-primary", "content": "Chọn khách hàng", "fontFamily": "Roboto", "fontSize": 15, "fontWeight": "600"}
                          ]
                        }
                      ]
                    }
                  ]
                }
              ]
            }
          ]
        },
        {
          "type": "frame",
          "id": "CustomerAddSection",
          "name": "Customer Add Form Section",
          "width": "fill_container",
          "layout": "vertical",
          "gap": 32,
          "children": [
            {
              "type": "frame",
              "id": "CustomerAddHeader",
              "name": "customerAddSectionHeader",
              "layout": "vertical",
              "gap": 16,
              "alignItems": "center",
              "children": [
                {
                  "type": "frame",
                  "id": "CustomerAddBadge",
                  "name": "shBadge",
                  "fill": "#FF5C0018",
                  "cornerRadius": 100,
                  "padding": [6, 14],
                  "children": [
                    {
                      "type": "text",
                      "id": "CustomerAddBadgeText",
                      "name": "badgeText",
                      "fill": "$orange-primary",
                      "content": "ADD CUSTOMER",
                      "fontFamily": "Roboto",
                      "fontSize": 11,
                      "fontWeight": "500",
                      "letterSpacing": 2
                    }
                  ]
                },
                {
                  "type": "text",
                  "id": "CustomerAddTitle",
                  "name": "shTitle",
                  "fill": "$text-primary",
                  "content": "New Customer Form",
                  "textAlign": "center",
                  "fontFamily": "Roboto",
                  "fontSize": 42,
                  "fontWeight": "normal",
                  "letterSpacing": -1
                }
              ]
            },
            {
              "type": "frame",
              "id": "CustomerAddExample",
              "name": "customerAddExample",
              "width": "fill_container",
              "fill": "$bg-surface",
              "cornerRadius": 16,
              "stroke": {"thickness": 1, "fill": "$border-subtle"},
              "padding": 40,
              "justifyContent": "center",
              "children": [
                {
                  "type": "frame",
                  "id": "CustomerAddModal",
                  "name": "Organism/CustomerLookup/AddForm",
                  "reusable": true,
                  "width": 480,
                  "fill": "$bg-elevated",
                  "cornerRadius": 20,
                  "stroke": {"thickness": 1, "fill": "$border-default"},
                  "layout": "vertical",
                  "clip": true,
                  "children": [
                    {
                      "type": "frame",
                      "id": "CustomerAddTopBar",
                      "name": "topBar",
                      "width": "fill_container",
                      "padding": [16, 20],
                      "stroke": {"thickness": 1, "fill": "$border-subtle", "sides": ["bottom"]},
                      "justifyContent": "space_between",
                      "alignItems": "center",
                      "children": [
                        {
                          "type": "frame",
                          "id": "CustomerAddBackBtn",
                          "name": "backBtn",
                          "gap": 8,
                          "alignItems": "center",
                          "children": [
                            {"type": "icon_font", "id": "CustomerAddBackIcon", "width": 20, "height": 20, "iconFontName": "arrow-left", "iconFontFamily": "lucide", "fill": "$text-secondary"},
                            {"type": "text", "id": "CustomerAddModalTitle", "fill": "$text-primary", "content": "Thêm khách hàng", "fontFamily": "Roboto", "fontSize": 18, "fontWeight": "600"}
                          ]
                        },
                        {
                          "type": "frame",
                          "id": "CustomerAddCloseBtn2",
                          "name": "closeBtn",
                          "width": 36,
                          "height": 36,
                          "fill": "$bg-interactive",
                          "cornerRadius": 10,
                          "justifyContent": "center",
                          "alignItems": "center",
                          "children": [
                            {"type": "icon_font", "id": "CustomerAddCloseIcon2", "width": 18, "height": 18, "iconFontName": "x", "iconFontFamily": "lucide", "fill": "$text-secondary"}
                          ]
                        }
                      ]
                    },
                    {
                      "type": "frame",
                      "id": "CustomerAddBody",
                      "name": "body",
                      "width": "fill_container",
                      "layout": "vertical",
                      "padding": 20,
                      "gap": 16,
                      "children": [
                        {
                          "type": "frame",
                          "id": "CustomerAddFieldName",
                          "name": "fieldName",
                          "width": "fill_container",
                          "layout": "vertical",
                          "gap": 8,
                          "children": [
                            {"type": "text", "id": "CustomerAddLabelName", "fill": "$text-secondary", "content": "Họ và tên *", "fontFamily": "Roboto", "fontSize": 13, "fontWeight": "500"},
                            {
                              "type": "frame",
                              "id": "CustomerAddInputName",
                              "name": "inputName",
                              "width": "fill_container",
                              "height": 48,
                              "fill": "$bg-surface",
                              "cornerRadius": 12,
                              "stroke": {"thickness": 1, "fill": "$border-default"},
                              "padding": [0, 16],
                              "alignItems": "center",
                              "children": [
                                {"type": "text", "id": "CustomerAddInputNameText", "fill": "$text-tertiary", "content": "Nhập họ và tên khách hàng", "fontFamily": "Roboto", "fontSize": 15, "fontWeight": "normal"}
                              ]
                            }
                          ]
                        },
                        {
                          "type": "frame",
                          "id": "CustomerAddFieldPhone",
                          "name": "fieldPhone",
                          "width": "fill_container",
                          "layout": "vertical",
                          "gap": 8,
                          "children": [
                            {"type": "text", "id": "CustomerAddLabelPhone", "fill": "$text-secondary", "content": "Số điện thoại *", "fontFamily": "Roboto", "fontSize": 13, "fontWeight": "500"},
                            {
                              "type": "frame",
                              "id": "CustomerAddInputPhone",
                              "name": "inputPhone",
                              "width": "fill_container",
                              "height": 48,
                              "fill": "$bg-surface",
                              "cornerRadius": 12,
                              "stroke": {"thickness": 1, "fill": "$orange-primary"},
                              "padding": [0, 16],
                              "alignItems": "center",
                              "children": [
                                {"type": "text", "id": "CustomerAddInputPhoneText", "fill": "$text-primary", "content": "0987 654 321", "fontFamily": "Roboto", "fontSize": 15, "fontWeight": "normal"}
                              ]
                            }
                          ]
                        },
                        {
                          "type": "frame",
                          "id": "CustomerAddFieldEmail",
                          "name": "fieldEmail",
                          "width": "fill_container",
                          "layout": "vertical",
                          "gap": 8,
                          "children": [
                            {"type": "text", "id": "CustomerAddLabelEmail", "fill": "$text-secondary", "content": "Email (tùy chọn)", "fontFamily": "Roboto", "fontSize": 13, "fontWeight": "500"},
                            {
                              "type": "frame",
                              "id": "CustomerAddInputEmail",
                              "name": "inputEmail",
                              "width": "fill_container",
                              "height": 48,
                              "fill": "$bg-surface",
                              "cornerRadius": 12,
                              "stroke": {"thickness": 1, "fill": "$border-default"},
                              "padding": [0, 16],
                              "alignItems": "center",
                              "children": [
                                {"type": "text", "id": "CustomerAddInputEmailText", "fill": "$text-tertiary", "content": "email@example.com", "fontFamily": "Roboto", "fontSize": 15, "fontWeight": "normal"}
                              ]
                            }
                          ]
                        },
                        {
                          "type": "frame",
                          "id": "CustomerAddFieldNote",
                          "name": "fieldNote",
                          "width": "fill_container",
                          "layout": "vertical",
                          "gap": 8,
                          "children": [
                            {"type": "text", "id": "CustomerAddLabelNote", "fill": "$text-secondary", "content": "Ghi chú", "fontFamily": "Roboto", "fontSize": 13, "fontWeight": "500"},
                            {
                              "type": "frame",
                              "id": "CustomerAddInputNote",
                              "name": "inputNote",
                              "width": "fill_container",
                              "height": 80,
                              "fill": "$bg-surface",
                              "cornerRadius": 12,
                              "stroke": {"thickness": 1, "fill": "$border-default"},
                              "padding": 16,
                              "children": [
                                {"type": "text", "id": "CustomerAddInputNoteText", "fill": "$text-tertiary", "content": "Thêm ghi chú về khách hàng...", "fontFamily": "Roboto", "fontSize": 15, "fontWeight": "normal"}
                              ]
                            }
                          ]
                        }
                      ]
                    },
                    {
                      "type": "frame",
                      "id": "CustomerAddActions",
                      "name": "actions",
                      "width": "fill_container",
                      "padding": [16, 20],
                      "stroke": {"thickness": 1, "fill": "$border-subtle", "sides": ["top"]},
                      "gap": 12,
                      "children": [
                        {
                          "type": "frame",
                          "id": "CustomerAddCancelBtn",
                          "name": "cancelBtn",
                          "width": "fill_container",
                          "height": 48,
                          "cornerRadius": 12,
                          "stroke": {"thickness": 1, "fill": "$border-default"},
                          "justifyContent": "center",
                          "alignItems": "center",
                          "children": [
                            {"type": "text", "id": "CustomerAddCancelText", "fill": "$text-secondary", "content": "Hủy", "fontFamily": "Roboto", "fontSize": 15, "fontWeight": "500"}
                          ]
                        },
                        {
                          "type": "frame",
                          "id": "CustomerAddSaveBtn",
                          "name": "saveBtn",
                          "width": "fill_container",
                          "height": 48,
                          "fill": {"type": "gradient", "gradientType": "linear", "enabled": true, "rotation": 135, "size": {"height": 1}, "colors": [{"color": "#FF5C00", "position": 0}, {"color": "#FF8A4C", "position": 1}]},
                          "cornerRadius": 12,
                          "gap": 8,
                          "justifyContent": "center",
                          "alignItems": "center",
                          "children": [
                            {"type": "icon_font", "id": "CustomerAddSaveIcon", "width": 18, "height": 18, "iconFontName": "save", "iconFontFamily": "lucide", "fill": "$text-primary"},
                            {"type": "text", "id": "CustomerAddSaveText", "fill": "$text-primary", "content": "Lưu khách hàng", "fontFamily": "Roboto", "fontSize": 15, "fontWeight": "600"}
                          ]
                        }
                      ]
                    }
                  ]
                }
              ]
            }
          ]
        }
      ]
    }
  ],
  "variables": {
    "bg-elevated": {"type": "color", "value": "#1A1A1D"},
    "bg-interactive": {"type": "color", "value": "#2A2A2E"},
    "bg-page": {"type": "color", "value": "#0A0A0B"},
    "bg-surface": {"type": "color", "value": "#111113"},
    "border-default": {"type": "color", "value": "#2A2A2E"},
    "border-subtle": {"type": "color", "value": "#1F1F23"},
    "green-success": {"type": "color", "value": "#22C55E"},
    "orange-light": {"type": "color", "value": "#FF8A4C"},
    "orange-primary": {"type": "color", "value": "#FF5C00"},
    "text-primary": {"type": "color", "value": "#FFFFFF"},
    "text-secondary": {"type": "color", "value": "#ADADB0"},
    "text-tertiary": {"type": "color", "value": "#8B8B90"}
  }
}
