import streamlit as st
# Custom function to create styled metric boxes with compact layout
def custom_metric_box(label, value):
st.markdown(f"""
""", unsafe_allow_html=True)
# Custom function to create pollution metric boxes with side-by-side layout for label and value
# Custom function to create pollution metric boxes with side-by-side layout and fixed width
def pollution_box(label, value, delta, threshold):
# Determine if the pollution level is "Good" or "Bad"
status = "Good" if float(value.split()[0]) < threshold else "Bad"
status_color = "#77C124" if status == "Good" else "#E68B0A"
# Render the pollution box
st.markdown(f"""
""", unsafe_allow_html=True)