{
  "version": "2.6",
  "children": [
    {
      "type": "frame",
      "id": "CustomerHistoryDialog",
      "name": "Dialog/CustomerHistory",
      "reusable": true,
      "width": 460,
      "height": 600,
      "fill": "$bg-elevated",
      "cornerRadius": 20,
      "layout": "vertical",
      "children": [
        {
          "type": "frame",
          "id": "CustHeader",
          "width": "fill_container",
          "padding": [16, 20],
          "gap": 12,
          "alignItems": "center",
          "stroke": {"thickness": 1, "fill": "$border-subtle"},
          "children": [
            {"type": "frame", "id": "CustAvatar", "width": 48, "height": 48, "fill": {"type": "gradient", "gradientType": "linear", "rotation": 135, "colors": [{"color": "#8B5CF6", "position": 0}, {"color": "#A78BFA", "position": 1}]}, "cornerRadius": 24, "justifyContent": "center", "alignItems": "center", "children": [
              {"type": "text", "id": "CustInitials", "fill": "#FFFFFF", "content": "TL", "fontFamily": "Roboto", "fontSize": 18, "fontWeight": "700"}
            ]},
            {"type": "frame", "id": "CustInfo", "width": "fill_container", "layout": "vertical", "gap": 2, "children": [
              {"type": "text", "id": "CustName", "fill": "$text-primary", "content": "Trần Thị Lan", "fontFamily": "Roboto", "fontSize": 17, "fontWeight": "700"},
              {"type": "frame", "id": "CustMeta", "gap": 8, "alignItems": "center", "children": [
                {"type": "frame", "id": "CustVip", "fill": "#EAB30820", "cornerRadius": 6, "padding": [3, 8], "children": [
                  {"type": "text", "id": "CustVipText", "fill": "#EAB308", "content": "VIP Gold", "fontFamily": "Roboto", "fontSize": 11, "fontWeight": "600"}
                ]},
                {"type": "text", "id": "CustPhone", "fill": "$text-tertiary", "content": "0912 345 678", "fontFamily": "Roboto", "fontSize": 12}
              ]}
            ]},
            {"type": "frame", "id": "CustClose", "width": 32, "height": 32, "fill": "$bg-interactive", "cornerRadius": 8, "justifyContent": "center", "alignItems": "center", "children": [
              {"type": "icon_font", "id": "CustCloseIcon", "width": 16, "height": 16, "iconFontName": "x", "iconFontFamily": "lucide", "fill": "$text-secondary"}
            ]}
          ]
        },
        {
          "type": "frame",
          "id": "CustStats",
          "width": "fill_container",
          "padding": [12, 20],
          "gap": 10,
          "children": [
            {"type": "frame", "id": "Stat1", "width": "fill_container", "fill": "$bg-page", "cornerRadius": 12, "padding": 12, "layout": "vertical", "gap": 4, "alignItems": "center", "children": [
              {"type": "text", "id": "Stat1Value", "fill": "$orange-primary", "content": "47", "fontFamily": "Roboto", "fontSize": 22, "fontWeight": "700"},
              {"type": "text", "id": "Stat1Label", "fill": "$text-tertiary", "content": "Đơn hàng", "fontFamily": "Roboto", "fontSize": 11}
            ]},
            {"type": "frame", "id": "Stat2", "width": "fill_container", "fill": "$bg-page", "cornerRadius": 12, "padding": 12, "layout": "vertical", "gap": 4, "alignItems": "center", "children": [
              {"type": "text", "id": "Stat2Value", "fill": "#22C55E", "content": "2.8M", "fontFamily": "Roboto", "fontSize": 22, "fontWeight": "700"},
              {"type": "text", "id": "Stat2Label", "fill": "$text-tertiary", "content": "Tổng chi", "fontFamily": "Roboto", "fontSize": 11}
            ]},
            {"type": "frame", "id": "Stat3", "width": "fill_container", "fill": "$bg-page", "cornerRadius": 12, "padding": 12, "layout": "vertical", "gap": 4, "alignItems": "center", "children": [
              {"type": "text", "id": "Stat3Value", "fill": "#3B82F6", "content": "1,250", "fontFamily": "Roboto", "fontSize": 22, "fontWeight": "700"},
              {"type": "text", "id": "Stat3Label", "fill": "$text-tertiary", "content": "Điểm tích lũy", "fontFamily": "Roboto", "fontSize": 11}
            ]}
          ]
        },
        {
          "type": "frame",
          "id": "CustOrders",
          "width": "fill_container",
          "height": "fill_container",
          "layout": "vertical",
          "padding": [0, 20],
          "gap": 8,
          "children": [
            {"type": "text", "id": "OrdersTitle", "fill": "$text-secondary", "content": "Lịch sử gần đây", "fontFamily": "Roboto", "fontSize": 13, "fontWeight": "600", "padding": [0, 0, 6, 0]},
            {"type": "frame", "id": "Order1", "width": "fill_container", "fill": "$bg-page", "cornerRadius": 12, "padding": 14, "gap": 12, "alignItems": "center", "children": [
              {"type": "frame", "id": "Order1Icon", "width": 40, "height": 40, "fill": "#22C55E15", "cornerRadius": 10, "justifyContent": "center", "alignItems": "center", "children": [
                {"type": "icon_font", "id": "Order1IconI", "width": 20, "height": 20, "iconFontName": "check-circle", "iconFontFamily": "lucide", "fill": "#22C55E"}
              ]},
              {"type": "frame", "id": "Order1Info", "width": "fill_container", "layout": "vertical", "gap": 2, "children": [
                {"type": "text", "id": "Order1Id", "fill": "$text-primary", "content": "#00458 - Cà phê sữa đá (2)", "fontFamily": "Roboto", "fontSize": 13, "fontWeight": "500"},
                {"type": "text", "id": "Order1Date", "fill": "$text-tertiary", "content": "Hôm nay, 14:30", "fontFamily": "Roboto", "fontSize": 12}
              ]},
              {"type": "text", "id": "Order1Total", "fill": "$text-primary", "content": "70,000đ", "fontFamily": "Roboto", "fontSize": 14, "fontWeight": "600"}
            ]},
            {"type": "frame", "id": "Order2", "width": "fill_container", "fill": "$bg-page", "cornerRadius": 12, "padding": 14, "gap": 12, "alignItems": "center", "children": [
              {"type": "frame", "id": "Order2Icon", "width": 40, "height": 40, "fill": "#22C55E15", "cornerRadius": 10, "justifyContent": "center", "alignItems": "center", "children": [
                {"type": "icon_font", "id": "Order2IconI", "width": 20, "height": 20, "iconFontName": "check-circle", "iconFontFamily": "lucide", "fill": "#22C55E"}
              ]},
              {"type": "frame", "id": "Order2Info", "width": "fill_container", "layout": "vertical", "gap": 2, "children": [
                {"type": "text", "id": "Order2Id", "fill": "$text-primary", "content": "#00412 - Combo sáng (1)", "fontFamily": "Roboto", "fontSize": 13, "fontWeight": "500"},
                {"type": "text", "id": "Order2Date", "fill": "$text-tertiary", "content": "Hôm qua, 08:15", "fontFamily": "Roboto", "fontSize": 12}
              ]},
              {"type": "text", "id": "Order2Total", "fill": "$text-primary", "content": "55,000đ", "fontFamily": "Roboto", "fontSize": 14, "fontWeight": "600"}
            ]},
            {"type": "frame", "id": "Order3", "width": "fill_container", "fill": "$bg-page", "cornerRadius": 12, "padding": 14, "gap": 12, "alignItems": "center", "children": [
              {"type": "frame", "id": "Order3Icon", "width": 40, "height": 40, "fill": "#22C55E15", "cornerRadius": 10, "justifyContent": "center", "alignItems": "center", "children": [
                {"type": "icon_font", "id": "Order3IconI", "width": 20, "height": 20, "iconFontName": "check-circle", "iconFontFamily": "lucide", "fill": "#22C55E"}
              ]},
              {"type": "frame", "id": "Order3Info", "width": "fill_container", "layout": "vertical", "gap": 2, "children": [
                {"type": "text", "id": "Order3Id", "fill": "$text-primary", "content": "#00389 - Trà sữa (3)", "fontFamily": "Roboto", "fontSize": 13, "fontWeight": "500"},
                {"type": "text", "id": "Order3Date", "fill": "$text-tertiary", "content": "03/02, 16:45", "fontFamily": "Roboto", "fontSize": 12}
              ]},
              {"type": "text", "id": "Order3Total", "fill": "$text-primary", "content": "135,000đ", "fontFamily": "Roboto", "fontSize": 14, "fontWeight": "600"}
            ]}
          ]
        },
        {
          "type": "frame",
          "id": "CustFooter",
          "width": "fill_container",
          "stroke": {"thickness": 1, "fill": "$border-subtle"},
          "gap": 12,
          "padding": [16, 20],
          "children": [
            {"type": "frame", "id": "EditCustBtn", "width": "fill_container", "height": 46, "fill": "$bg-interactive", "cornerRadius": 12, "gap": 8, "justifyContent": "center", "alignItems": "center", "children": [
              {"type": "icon_font", "id": "EditCustIcon", "width": 18, "height": 18, "iconFontName": "user-pen", "iconFontFamily": "lucide", "fill": "$text-secondary"},
              {"type": "text", "id": "EditCustText", "fill": "$text-secondary", "content": "Sửa thông tin", "fontFamily": "Roboto", "fontSize": 14, "fontWeight": "500"}
            ]},
            {"type": "frame", "id": "ApplyBtn", "width": "fill_container", "height": 46, "fill": {"type": "gradient", "gradientType": "linear", "rotation": 135, "colors": [{"color": "#FF5C00", "position": 0}, {"color": "#FF8A4C", "position": 1}]}, "cornerRadius": 12, "gap": 8, "justifyContent": "center", "alignItems": "center", "children": [
              {"type": "icon_font", "id": "ApplyIcon", "width": 18, "height": 18, "iconFontName": "user-check", "iconFontFamily": "lucide", "fill": "#FFFFFF"},
              {"type": "text", "id": "ApplyText", "fill": "#FFFFFF", "content": "Áp dụng", "fontFamily": "Roboto", "fontSize": 14, "fontWeight": "600"}
            ]}
          ]
        }
      ]
    }
  ],
  "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"}
  }
}
