{
  "version": "2.6",
  "children": [
    {
      "type": "frame",
      "id": "InventoryAlert",
      "name": "Screen/Inventory Alert",
      "reusable": true,
      "width": 480,
      "height": 600,
      "fill": "$bg-page",
      "layout": "vertical",
      "clip": true,
      "children": [
        {
          "type": "frame",
          "id": "InventoryHeader",
          "width": "fill_container",
          "padding": [20, 24],
          "fill": "$bg-elevated",
          "stroke": {"thickness": 1, "fill": "$border-subtle", "sides": ["bottom"]},
          "justifyContent": "space_between",
          "alignItems": "center",
          "children": [
            {"type": "frame", "id": "InventoryHeaderLeft", "gap": 12, "alignItems": "center", "children": [
              {"type": "frame", "id": "InventoryBackBtn", "width": 40, "height": 40, "fill": "$bg-interactive", "cornerRadius": 10, "justifyContent": "center", "alignItems": "center", "children": [
                {"type": "icon_font", "id": "InventoryBackIcon", "width": 20, "height": 20, "iconFontName": "arrow-left", "iconFontFamily": "lucide", "fill": "$text-secondary"}
              ]},
              {"type": "text", "id": "InventoryTitle", "fill": "$text-primary", "content": "Cảnh báo tồn kho", "fontFamily": "Roboto", "fontSize": 18, "fontWeight": "700"}
            ]},
            {"type": "frame", "id": "InventorySettingsBtn", "width": 40, "height": 40, "fill": "$bg-interactive", "cornerRadius": 10, "justifyContent": "center", "alignItems": "center", "children": [
              {"type": "icon_font", "id": "InventorySettingsIcon", "width": 20, "height": 20, "iconFontName": "settings", "iconFontFamily": "lucide", "fill": "$text-secondary"}
            ]}
          ]
        },
        {
          "type": "frame",
          "id": "AlertSummary",
          "width": "fill_container",
          "padding": [16, 24],
          "fill": "$bg-elevated",
          "gap": 12,
          "children": [
            {"type": "frame", "id": "AlertOutOfStock", "width": "fill_container", "fill": "#EF444420", "cornerRadius": 12, "padding": [14, 16], "gap": 10, "alignItems": "center", "children": [
              {"type": "icon_font", "id": "AlertOutOfStockIcon", "width": 20, "height": 20, "iconFontName": "alert-triangle", "iconFontFamily": "lucide", "fill": "#EF4444"},
              {"type": "text", "id": "AlertOutOfStockText", "fill": "#EF4444", "content": "3 sản phẩm hết hàng", "fontFamily": "Roboto", "fontSize": 14, "fontWeight": "600"}
            ]},
            {"type": "frame", "id": "AlertLowStock", "width": "fill_container", "fill": "#F59E0B20", "cornerRadius": 12, "padding": [14, 16], "gap": 10, "alignItems": "center", "children": [
              {"type": "icon_font", "id": "AlertLowStockIcon", "width": 20, "height": 20, "iconFontName": "clock", "iconFontFamily": "lucide", "fill": "#F59E0B"},
              {"type": "text", "id": "AlertLowStockText", "fill": "#F59E0B", "content": "5 sản phẩm sắp hết", "fontFamily": "Roboto", "fontSize": 14, "fontWeight": "600"}
            ]}
          ]
        },
        {
          "type": "frame",
          "id": "InventoryContent",
          "width": "fill_container",
          "height": "fill_container",
          "padding": 24,
          "layout": "vertical",
          "gap": 20,
          "clip": true,
          "children": [
            {"type": "frame", "id": "OutOfStockSection", "width": "fill_container", "layout": "vertical", "gap": 12, "children": [
              {"type": "frame", "id": "OutOfStockHeader", "gap": 8, "alignItems": "center", "children": [
                {"type": "frame", "id": "OutOfStockDot", "width": 10, "height": 10, "fill": "#EF4444", "cornerRadius": 100},
                {"type": "text", "id": "OutOfStockTitle", "fill": "$text-primary", "content": "Hết hàng", "fontFamily": "Roboto", "fontSize": 14, "fontWeight": "600"}
              ]},
              {"type": "frame", "id": "OutOfStockItem1", "width": "fill_container", "fill": "$bg-elevated", "cornerRadius": 14, "padding": 16, "justifyContent": "space_between", "alignItems": "center", "children": [
                {"type": "frame", "id": "OutOfStockItem1Left", "gap": 14, "alignItems": "center", "children": [
                  {"type": "frame", "id": "OutOfStockItem1Icon", "width": 44, "height": 44, "fill": "#EF444420", "cornerRadius": 10, "justifyContent": "center", "alignItems": "center", "children": [
                    {"type": "icon_font", "id": "OutOfStockItem1IconI", "width": 22, "height": 22, "iconFontName": "coffee", "iconFontFamily": "lucide", "fill": "#EF4444"}
                  ]},
                  {"type": "frame", "id": "OutOfStockItem1Info", "layout": "vertical", "gap": 4, "children": [
                    {"type": "text", "id": "OutOfStockItem1Name", "fill": "$text-primary", "content": "Cà phê Arabica", "fontFamily": "Roboto", "fontSize": 15, "fontWeight": "600"},
                    {"type": "text", "id": "OutOfStockItem1Stock", "fill": "#EF4444", "content": "Stock: 0", "fontFamily": "Roboto", "fontSize": 12}
                  ]}
                ]},
                {"type": "frame", "id": "OutOfStockItem1Btn", "fill": "$orange-primary", "cornerRadius": 8, "padding": [8, 14], "children": [
                  {"type": "text", "id": "OutOfStockItem1BtnText", "fill": "#FFFFFF", "content": "Đặt hàng", "fontFamily": "Roboto", "fontSize": 13, "fontWeight": "600"}
                ]}
              ]},
              {"type": "frame", "id": "OutOfStockItem2", "width": "fill_container", "fill": "$bg-elevated", "cornerRadius": 14, "padding": 16, "justifyContent": "space_between", "alignItems": "center", "children": [
                {"type": "frame", "id": "OutOfStockItem2Left", "gap": 14, "alignItems": "center", "children": [
                  {"type": "frame", "id": "OutOfStockItem2Icon", "width": 44, "height": 44, "fill": "#EF444420", "cornerRadius": 10, "justifyContent": "center", "alignItems": "center", "children": [
                    {"type": "icon_font", "id": "OutOfStockItem2IconI", "width": 22, "height": 22, "iconFontName": "milk", "iconFontFamily": "lucide", "fill": "#EF4444"}
                  ]},
                  {"type": "frame", "id": "OutOfStockItem2Info", "layout": "vertical", "gap": 4, "children": [
                    {"type": "text", "id": "OutOfStockItem2Name", "fill": "$text-primary", "content": "Sữa tươi", "fontFamily": "Roboto", "fontSize": 15, "fontWeight": "600"},
                    {"type": "text", "id": "OutOfStockItem2Stock", "fill": "#EF4444", "content": "Stock: 0", "fontFamily": "Roboto", "fontSize": 12}
                  ]}
                ]},
                {"type": "frame", "id": "OutOfStockItem2Btn", "fill": "$orange-primary", "cornerRadius": 8, "padding": [8, 14], "children": [
                  {"type": "text", "id": "OutOfStockItem2BtnText", "fill": "#FFFFFF", "content": "Đặt hàng", "fontFamily": "Roboto", "fontSize": 13, "fontWeight": "600"}
                ]}
              ]}
            ]},
            {"type": "frame", "id": "LowStockSection", "width": "fill_container", "layout": "vertical", "gap": 12, "children": [
              {"type": "frame", "id": "LowStockHeader", "gap": 8, "alignItems": "center", "children": [
                {"type": "frame", "id": "LowStockDot", "width": 10, "height": 10, "fill": "#F59E0B", "cornerRadius": 100},
                {"type": "text", "id": "LowStockTitle", "fill": "$text-primary", "content": "Sắp hết (< 20%)", "fontFamily": "Roboto", "fontSize": 14, "fontWeight": "600"}
              ]},
              {"type": "frame", "id": "LowStockItem1", "width": "fill_container", "fill": "$bg-elevated", "cornerRadius": 14, "padding": 16, "layout": "vertical", "gap": 12, "children": [
                {"type": "frame", "id": "LowStockItem1Top", "width": "fill_container", "justifyContent": "space_between", "alignItems": "center", "children": [
                  {"type": "text", "id": "LowStockItem1Name", "fill": "$text-primary", "content": "Bơ", "fontFamily": "Roboto", "fontSize": 15, "fontWeight": "500"},
                  {"type": "text", "id": "LowStockItem1Qty", "fill": "#F59E0B", "content": "5/50", "fontFamily": "Roboto", "fontSize": 14, "fontWeight": "600"}
                ]},
                {"type": "frame", "id": "LowStockItem1Bar", "width": "fill_container", "height": 6, "fill": "$bg-interactive", "cornerRadius": 3, "children": [
                  {"type": "frame", "id": "LowStockItem1BarFill", "width": "10%", "height": 6, "fill": "#F59E0B", "cornerRadius": 3}
                ]}
              ]},
              {"type": "frame", "id": "LowStockItem2", "width": "fill_container", "fill": "$bg-elevated", "cornerRadius": 14, "padding": 16, "layout": "vertical", "gap": 12, "children": [
                {"type": "frame", "id": "LowStockItem2Top", "width": "fill_container", "justifyContent": "space_between", "alignItems": "center", "children": [
                  {"type": "text", "id": "LowStockItem2Name", "fill": "$text-primary", "content": "Syrup Caramel", "fontFamily": "Roboto", "fontSize": 15, "fontWeight": "500"},
                  {"type": "text", "id": "LowStockItem2Qty", "fill": "#F59E0B", "content": "2/20", "fontFamily": "Roboto", "fontSize": 14, "fontWeight": "600"}
                ]},
                {"type": "frame", "id": "LowStockItem2Bar", "width": "fill_container", "height": 6, "fill": "$bg-interactive", "cornerRadius": 3, "children": [
                  {"type": "frame", "id": "LowStockItem2BarFill", "width": "10%", "height": 6, "fill": "#F59E0B", "cornerRadius": 3}
                ]}
              ]}
            ]}
          ]
        },
        {
          "type": "frame",
          "id": "InventoryFooter",
          "width": "fill_container",
          "fill": "$bg-elevated",
          "padding": [16, 24],
          "stroke": {"thickness": 1, "fill": "$border-subtle", "sides": ["top"]},
          "children": [
            {"type": "frame", "id": "OrderAllBtn", "width": "fill_container", "height": 52, "fill": "$orange-primary", "cornerRadius": 14, "justifyContent": "center", "alignItems": "center", "gap": 10, "children": [
              {"type": "icon_font", "id": "OrderAllIcon", "width": 20, "height": 20, "iconFontName": "shopping-cart", "iconFontFamily": "lucide", "fill": "#FFFFFF"},
              {"type": "text", "id": "OrderAllText", "fill": "#FFFFFF", "content": "Đặt hàng tất cả", "fontFamily": "Roboto", "fontSize": 16, "fontWeight": "600"}
            ]}
          ]
        }
      ]
    }
  ],
  "variables": {
    "bg-elevated": {"type": "color", "value": "#1A1A1D"},
    "bg-interactive": {"type": "color", "value": "#2A2A2E"},
    "bg-page": {"type": "color", "value": "#0A0A0B"},
    "border-subtle": {"type": "color", "value": "#1F1F23"},
    "orange-primary": {"type": "color", "value": "#FF5C00"},
    "text-primary": {"type": "color", "value": "#FFFFFF"},
    "text-secondary": {"type": "color", "value": "#ADADB0"}
  }
}
