Spaces:
Sleeping
Sleeping
| import streamlit as st | |
| def load_css(): | |
| st.markdown(""" | |
| <style> | |
| /* Main theme colors */ | |
| :root { | |
| --primary: #0F9D58; | |
| --secondary: #1E88E5; | |
| --dark: #121212; | |
| --light: #f5f5f7; | |
| } | |
| /* Typography */ | |
| h1, h2, h3 { | |
| color: var(--primary); | |
| } | |
| /* Sidebar styling */ | |
| .css-1d391kg { | |
| background-color: #f5f5f7; | |
| } | |
| /* Button styling */ | |
| .stButton button { | |
| background: linear-gradient(135deg, #0F9D58 0%, #1E88E5 100%); | |
| color: white; | |
| border: none; | |
| padding: 0.5rem 1rem; | |
| border-radius: 50px; | |
| transition: transform 0.3s, box-shadow 0.3s; | |
| } | |
| .stButton button:hover { | |
| transform: translateY(-2px); | |
| box-shadow: 0 4px 8px rgba(0,0,0,0.1); | |
| } | |
| /* Feature card styling */ | |
| .feature-card { | |
| padding: 20px; | |
| border-radius: 10px; | |
| background: white; | |
| box-shadow: 0 4px 12px rgba(0,0,0,0.05); | |
| margin-bottom: 20px; | |
| transition: transform 0.3s, box-shadow 0.3s; | |
| border-left: 4px solid var(--primary); | |
| } | |
| .feature-card:hover { | |
| transform: translateY(-5px); | |
| box-shadow: 0 8px 16px rgba(0,0,0,0.1); | |
| } | |
| /* Process step styling */ | |
| .process-step { | |
| display: flex; | |
| flex-direction: column; | |
| align-items: center; | |
| text-align: center; | |
| padding: 20px; | |
| background: white; | |
| border-radius: 10px; | |
| box-shadow: 0 4px 12px rgba(0,0,0,0.05); | |
| transition: transform 0.3s; | |
| } | |
| .process-step:hover { | |
| transform: translateY(-5px); | |
| } | |
| .step-number { | |
| width: 40px; | |
| height: 40px; | |
| background: linear-gradient(135deg, #0F9D58 0%, #1E88E5 100%); | |
| border-radius: 50%; | |
| display: flex; | |
| align-items: center; | |
| justify-content: center; | |
| color: white; | |
| font-weight: bold; | |
| margin-bottom: 15px; | |
| } | |
| /* Metric styling */ | |
| .css-1xarl3l { | |
| background: white; | |
| padding: 20px; | |
| border-radius: 10px; | |
| box-shadow: 0 4px 12px rgba(0,0,0,0.05); | |
| transition: transform 0.3s; | |
| } | |
| .css-1xarl3l:hover { | |
| transform: translateY(-5px); | |
| } | |
| /* Tab styling */ | |
| .stTabs [data-baseweb="tab-list"] { | |
| gap: 10px; | |
| } | |
| .stTabs [data-baseweb="tab"] { | |
| background-color: white; | |
| border-radius: 4px 4px 0 0; | |
| padding: 10px 20px; | |
| border: none; | |
| } | |
| .stTabs [aria-selected="true"] { | |
| background-color: var(--primary); | |
| color: white; | |
| } | |
| /* Charts styling */ | |
| .stPlotlyChart { | |
| background: white; | |
| padding: 20px; | |
| border-radius: 10px; | |
| box-shadow: 0 4px 12px rgba(0,0,0,0.05); | |
| } | |
| </style> | |
| """, unsafe_allow_html=True) | |