import streamlit as st from theme import apply_dark_theme, show_page_header, show_footer # Page config st.set_page_config( page_title="CiviDoc AI", page_icon="🏛️", layout="centered", initial_sidebar_state="collapsed" ) # Apply dark theme st.markdown(apply_dark_theme(), unsafe_allow_html=True) def main(): # Header st.markdown(show_page_header( "
" "🏛️ CiviDoc AI", "
" "Your AI-powered companion for all government document needs", ), unsafe_allow_html=True) # Quick Access Section - Mobile Friendly Cards st.markdown( "
" # Uses the responsive grid system "
" # Added onclick for better touch feedback "
" "

📝 Document Analysis

" "

Upload and understand government documents instantly

" "
Ready to Use
" "
" "
" "
" "
" "

✍️ Writing Assistant

" "

Create professional government documents effortlessly

" "
Ready to Use
" "
" "
" "
" "
" "

💬 Document Chat

" "

Get instant answers about your documents

" "
Ready to Use
" "
" "
" "
", unsafe_allow_html=True ) # Quick Action Buttons - Touch Friendly st.markdown("
", unsafe_allow_html=True) if st.button("📝 Start Document Analysis", use_container_width=True): st.switch_page("pages/1_📝_Document_Analysis.py") if st.button("✍️ Create New Document", use_container_width=True): st.switch_page("pages/3_✍️_Writing_Assistant.py") if st.button("💬 Open Document Chat", use_container_width=True): st.switch_page("pages/2_💬_Document_Chat.py") st.markdown("
", unsafe_allow_html=True) # Features Section - Responsive Grid st.markdown("

🌟 Key Features

", unsafe_allow_html=True) # Features grid with improved mobile layout st.markdown( "
" # Document Analysis Card "
" "

📑 Document Analysis

" "
" "

✓ Instant document understanding

" "

✓ Complex term explanations

" "

✓ Form filling guidance

" "

✓ Requirement extraction

" "

✓ Deadline tracking

" "
" "
" # Writing Assistant Card "
" "

✍️ Writing Assistant

" "
" "

✓ RTI application generator

" "

✓ Complaint letter creator

" "

✓ Legal notice drafting

" "

✓ Appeal letter formatting

" "

✓ Custom document templates

" "
" "
" # Interactive Help Card "
" "

💬 Interactive Help

" "
" "

✓ Real-time document chat

" "

✓ Context-aware responses

" "

✓ Procedure explanations

" "

✓ Multi-document support

" "

✓ Instant clarifications

" "
" "
" # Document Management Card "
" "

📚 Document Management

" "
" "

✓ Secure document storage

" "

✓ Version tracking

" "

✓ Easy organization

" "

✓ Quick retrieval

" "

✓ Status monitoring

" "
" "
" "
", unsafe_allow_html=True ) # How It Works Section - Mobile Friendly Steps st.markdown("

🔄 How It Works

", unsafe_allow_html=True) st.markdown( "
" # Responsive grid # Step 1 "
" "

1. Upload

" "

Upload your government documents or start creating new ones

" "
" "
" # Step 2 "
" "

2. Process

" "

Our AI analyzes and processes your documents instantly

" "
" "
" # Step 3 "
" "

3. Understand

" "

Get clear explanations and guidance for your documents

" "
" "
" # Step 4 "
" "

4. Act

" "

Take action with confidence using our recommendations

" "
" "
" "
", unsafe_allow_html=True ) # Additional Information - Mobile Friendly Layout st.markdown("
", unsafe_allow_html=True) # Who Is This For Section st.markdown( "
" "

🎯 Who Is This For?

" "
" "

• Citizens dealing with government procedures

" "

• RTI applicants and activists

" "

• Legal professionals

" "

• Government service seekers

" "

• Anyone needing document assistance

" "
" "
", unsafe_allow_html=True ) # Security & Privacy Section st.markdown( "
" "

🛡️ Security & Privacy

" "
" "

• End-to-end encryption

" "

• Secure document processing

" "

• No permanent storage

" "

• Privacy-first approach

" "

• Regular security updates

" "
" "
", unsafe_allow_html=True ) st.markdown("
", unsafe_allow_html=True) # Footer st.markdown(show_footer(), unsafe_allow_html=True) if __name__ == "__main__": main()