{
  "version": "2.7",
  "children": [
    {
      "type": "frame",
      "id": "ThemeCustomizationScreen",
      "name": "Screen/ThemeCustomization",
      "reusable": true,
      "clip": true,
      "width": 420,
      "height": 540,
      "fill": "$bg-elevated",
      "cornerRadius": 24,
      "layout": "vertical",
      "children": [
        {
          "type": "frame",
          "id": "ThemeHeader",
          "width": "fill_container",
          "padding": [16, 20],
          "stroke": {"thickness": 1, "fill": "$border-subtle", "sides": ["bottom"]},
          "justifyContent": "space_between",
          "alignItems": "center",
          "children": [
            {"type": "frame", "id": "ThemeHeaderLeft", "gap": 12, "alignItems": "center", "children": [
              {"type": "frame", "id": "ThemeIconBg", "width": 40, "height": 40, "fill": "#EC489920", "cornerRadius": 12, "justifyContent": "center", "alignItems": "center", "children": [
                {"type": "icon_font", "id": "ThemeIcon", "width": 20, "height": 20, "iconFontName": "palette", "iconFontFamily": "lucide", "fill": "#EC4899"}
              ]},
              {"type": "text", "id": "ThemeTitle", "fill": "$text-primary", "content": "Giao diện", "fontFamily": "Roboto", "fontSize": 18, "fontWeight": "700"}
            ]},
            {"type": "frame", "id": "ThemeCloseBtn", "width": 36, "height": 36, "fill": "$bg-interactive", "cornerRadius": 18, "justifyContent": "center", "alignItems": "center", "children": [
              {"type": "icon_font", "id": "ThemeCloseIcon", "width": 18, "height": 18, "iconFontName": "x", "iconFontFamily": "lucide", "fill": "$text-secondary"}
            ]}
          ]
        },
        {
          "type": "frame",
          "id": "ThemeContent",
          "width": "fill_container",
          "height": "fill_container",
          "padding": 20,
          "layout": "vertical",
          "gap": 20,
          "children": [
            {"type": "frame", "id": "ThemeModeSection", "width": "fill_container", "layout": "vertical", "gap": 12, "children": [
              {"type": "text", "id": "ThemeModeLabel", "fill": "$text-secondary", "content": "Chế độ hiển thị", "fontFamily": "Roboto", "fontSize": 13, "fontWeight": "600"},
              {"type": "frame", "id": "ThemeModeOptions", "width": "fill_container", "gap": 10, "children": [
                {"type": "frame", "id": "ThemeModeDark", "width": "fill_container", "fill": "$bg-page", "cornerRadius": 14, "padding": 14, "layout": "vertical", "gap": 10, "alignItems": "center", "stroke": {"thickness": 2, "fill": "$orange-primary"}, "children": [
                  {"type": "frame", "id": "ThemeModeDarkPreview", "width": "fill_container", "height": 56, "fill": "#0A0A0B", "cornerRadius": 10, "padding": 8, "layout": "vertical", "gap": 4, "children": [
                    {"type": "frame", "id": "ThemeModeDarkHeader", "width": "fill_container", "height": 8, "fill": "#2A2A2E", "cornerRadius": 4},
                    {"type": "frame", "id": "ThemeModeDarkBody", "width": 48, "height": 6, "fill": "#1A1A1D", "cornerRadius": 3}
                  ]},
                  {"type": "frame", "id": "ThemeModeDarkLabelRow", "gap": 6, "alignItems": "center", "children": [
                    {"type": "icon_font", "id": "ThemeModeDarkCheck", "width": 16, "height": 16, "iconFontName": "check-circle", "iconFontFamily": "lucide", "fill": "$orange-primary"},
                    {"type": "text", "id": "ThemeModeDarkText", "fill": "$text-primary", "content": "Tối", "fontFamily": "Roboto", "fontSize": 13, "fontWeight": "600"}
                  ]}
                ]},
                {"type": "frame", "id": "ThemeModeLight", "width": "fill_container", "fill": "$bg-page", "cornerRadius": 14, "padding": 14, "layout": "vertical", "gap": 10, "alignItems": "center", "children": [
                  {"type": "frame", "id": "ThemeModeLightPreview", "width": "fill_container", "height": 56, "fill": "#F5F5F5", "cornerRadius": 10, "padding": 8, "layout": "vertical", "gap": 4, "children": [
                    {"type": "frame", "id": "ThemeModeLightHeader", "width": "fill_container", "height": 8, "fill": "#E0E0E0", "cornerRadius": 4},
                    {"type": "frame", "id": "ThemeModeLightBody", "width": 48, "height": 6, "fill": "#FFFFFF", "cornerRadius": 3}
                  ]},
                  {"type": "text", "id": "ThemeModeLightText", "fill": "$text-secondary", "content": "Sáng", "fontFamily": "Roboto", "fontSize": 13, "fontWeight": "500"}
                ]},
                {"type": "frame", "id": "ThemeModeAuto", "width": "fill_container", "fill": "$bg-page", "cornerRadius": 14, "padding": 14, "layout": "vertical", "gap": 10, "alignItems": "center", "children": [
                  {"type": "frame", "id": "ThemeModeAutoPreview", "width": "fill_container", "height": 56, "cornerRadius": 10, "children": [
                    {"type": "frame", "id": "ThemeModeAutoLeft", "width": "50%", "height": 56, "fill": "#0A0A0B", "cornerRadius": [10, 0, 0, 10]},
                    {"type": "frame", "id": "ThemeModeAutoRight", "width": "50%", "height": 56, "fill": "#F5F5F5", "cornerRadius": [0, 10, 10, 0], "x": 50}
                  ]},
                  {"type": "text", "id": "ThemeModeAutoText", "fill": "$text-secondary", "content": "Tự động", "fontFamily": "Roboto", "fontSize": 13, "fontWeight": "500"}
                ]}
              ]}
            ]},
            {"type": "frame", "id": "ThemeColorSection", "width": "fill_container", "layout": "vertical", "gap": 12, "children": [
              {"type": "text", "id": "ThemeColorLabel", "fill": "$text-secondary", "content": "Màu chủ đạo", "fontFamily": "Roboto", "fontSize": 13, "fontWeight": "600"},
              {"type": "frame", "id": "ThemeColorOptions", "width": "fill_container", "gap": 12, "justifyContent": "space_between", "children": [
                {"type": "frame", "id": "ThemeColor1", "width": 44, "height": 44, "fill": "#FF5C00", "cornerRadius": 22, "stroke": {"thickness": 3, "fill": "$text-primary"}, "justifyContent": "center", "alignItems": "center", "children": [
                  {"type": "icon_font", "id": "ThemeColor1Check", "width": 20, "height": 20, "iconFontName": "check", "iconFontFamily": "lucide", "fill": "$text-primary"}
                ]},
                {"type": "frame", "id": "ThemeColor2", "width": 44, "height": 44, "fill": "#3B82F6", "cornerRadius": 22},
                {"type": "frame", "id": "ThemeColor3", "width": 44, "height": 44, "fill": "#22C55E", "cornerRadius": 22},
                {"type": "frame", "id": "ThemeColor4", "width": 44, "height": 44, "fill": "#8B5CF6", "cornerRadius": 22},
                {"type": "frame", "id": "ThemeColor5", "width": 44, "height": 44, "fill": "#EC4899", "cornerRadius": 22},
                {"type": "frame", "id": "ThemeColor6", "width": 44, "height": 44, "fill": "#F59E0B", "cornerRadius": 22}
              ]}
            ]},
            {"type": "frame", "id": "ThemeLayoutSection", "width": "fill_container", "layout": "vertical", "gap": 10, "children": [
              {"type": "text", "id": "ThemeLayoutLabel", "fill": "$text-secondary", "content": "Bố cục", "fontFamily": "Roboto", "fontSize": 13, "fontWeight": "600"},
              {"type": "frame", "id": "ThemeLayoutItem", "width": "fill_container", "fill": "$bg-page", "cornerRadius": 14, "padding": 14, "justifyContent": "space_between", "alignItems": "center", "children": [
                {"type": "frame", "id": "ThemeLayoutItemLeft", "gap": 12, "alignItems": "center", "children": [
                  {"type": "icon_font", "id": "ThemeLayoutIcon", "width": 20, "height": 20, "iconFontName": "layout-grid", "iconFontFamily": "lucide", "fill": "$text-secondary"},
                  {"type": "text", "id": "ThemeLayoutText", "fill": "$text-primary", "content": "Chế độ compact", "fontFamily": "Roboto", "fontSize": 14, "fontWeight": "500"}
                ]},
                {"type": "frame", "id": "ThemeLayoutToggle", "width": 48, "height": 28, "fill": "$bg-interactive", "cornerRadius": 14, "padding": [2, 2], "justifyContent": "start", "children": [
                  {"type": "frame", "id": "ThemeLayoutToggleKnob", "width": 24, "height": 24, "fill": "$text-tertiary", "cornerRadius": 12}
                ]}
              ]}
            ]}
          ]
        },
        {
          "type": "frame",
          "id": "ThemeFooter",
          "width": "fill_container",
          "stroke": {"thickness": 1, "fill": "$border-subtle", "sides": ["top"]},
          "padding": [16, 20],
          "children": [
            {"type": "frame", "id": "ThemeSaveBtn", "width": "fill_container", "height": 52, "fill": {"type": "gradient", "gradientType": "linear", "enabled": true, "rotation": 135, "colors": [{"color": "#FF5C00", "position": 0}, {"color": "#FF8533", "position": 1}]}, "cornerRadius": 12, "gap": 10, "justifyContent": "center", "alignItems": "center", "children": [
              {"type": "icon_font", "id": "ThemeSaveIcon", "width": 20, "height": 20, "iconFontName": "check", "iconFontFamily": "lucide", "fill": "$text-primary"},
              {"type": "text", "id": "ThemeSaveText", "fill": "$text-primary", "content": "Lưu thay đổi", "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"},
    "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"}
  }
}
