System Architecture

flowchart TB
        PRD["System Architecture"]
    
    subgraph Frontend
        frontend_streamlit_Python["frontend_streamlit_Python (10)"]
    end
    
    subgraph Backend
        backend_api_Python["backend_api_Python (9)"]
    end
    
    subgraph Shared
        models_Python["models_Python (1)"]
        helpers_Python["helpers_Python (2)"]
        rules_Python["rules_Python (3)"]
        llm_Python["llm_Python (4)"]
        fix_Python["fix_Python (5)"]
        report_Python["report_Python (6)"]
        pipeline_Python["pipeline_Python (7)"]
        cli_Python["cli_Python (8)"]
    end
    
    PRD --> Frontend
    PRD --> Backend

    rules_Python -->|uses| models_Python
    rules_Python -->|uses| helpers_Python
    llm_Python -->|uses| models_Python
    fix_Python -->|uses| models_Python
    report_Python -->|uses| models_Python
    pipeline_Python -->|uses| models_Python
    pipeline_Python -->|uses| rules_Python
    pipeline_Python -->|uses| llm_Python
    pipeline_Python -->|uses| fix_Python
    pipeline_Python -->|uses| report_Python
    cli_Python -->|uses| pipeline_Python
    backend_api_Python -->|uses| pipeline_Python
    frontend_streamlit_Python -->|uses| pipeline_Python
    
    classDef frontend fill:#FFF3E0,stroke:#F57C00,stroke-width:2px
    classDef backend fill:#E3F2FD,stroke:#1976D2,stroke-width:2px
    classDef shared fill:#E8F5E9,stroke:#388E3C,stroke-width:2px
    classDef system fill:#E0E0E0,stroke:#616161,stroke-width:3px
    
    class frontend_streamlit_Python frontend
    class backend_api_Python backend
    class models_Python,helpers_Python,rules_Python,llm_Python,fix_Python,report_Python,pipeline_Python,cli_Python shared
    class PRD system