Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -29,7 +29,7 @@ st.markdown("""
|
|
| 29 |
font-family: 'Inter', sans-serif;
|
| 30 |
}
|
| 31 |
|
| 32 |
-
p, span, div, label {
|
| 33 |
color: #0f172a;
|
| 34 |
}
|
| 35 |
|
|
@@ -53,51 +53,65 @@ st.markdown("""
|
|
| 53 |
color: #334155 !important;
|
| 54 |
}
|
| 55 |
|
| 56 |
-
/* SIDEBAR VISIBILITY FIXES */
|
| 57 |
[data-testid="stSidebar"] {
|
| 58 |
background: linear-gradient(180deg, #1e293b 0%, #0f172a 100%);
|
| 59 |
border-right: 1px solid #334155;
|
| 60 |
}
|
| 61 |
-
|
| 62 |
-
|
|
|
|
|
|
|
| 63 |
}
|
| 64 |
-
|
| 65 |
-
[data-testid="stSidebar"] label, [data-testid="stSidebar"] .stMarkdown p {
|
| 66 |
color: #e2e8f0 !important;
|
| 67 |
font-weight: 600;
|
| 68 |
}
|
| 69 |
-
|
| 70 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 71 |
color: #0f172a !important;
|
| 72 |
}
|
| 73 |
-
|
| 74 |
-
[data-testid="stSidebar"] div[data-baseweb="select"] span {
|
| 75 |
color: #0f172a !important;
|
| 76 |
}
|
| 77 |
-
|
|
|
|
| 78 |
[data-testid="stSidebar"] a {
|
| 79 |
-
color: #
|
| 80 |
font-weight: 600;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 81 |
}
|
| 82 |
|
| 83 |
-
/*
|
| 84 |
-
|
| 85 |
-
|
| 86 |
-
|
| 87 |
-
|
| 88 |
-
|
| 89 |
-
|
| 90 |
-
|
| 91 |
-
|
| 92 |
-
|
| 93 |
-
|
| 94 |
-
.stTabs [aria-selected="true"] { background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%); color: white !important; }
|
| 95 |
-
.stButton button { border-radius: 8px; font-weight: 600; }
|
| 96 |
-
|
| 97 |
/* HOTSPOTS */
|
| 98 |
.hotspot-card { background: white; padding: 16px; border-radius: 10px; border-left: 5px solid; margin-bottom: 12px; box-shadow: 0 2px 4px rgba(0,0,0,0.05); transition: all 0.2s; }
|
| 99 |
.hotspot-card:hover { transform: translateX(4px); box-shadow: 0 4px 6px rgba(0,0,0,0.1); }
|
| 100 |
.js-plotly-plot .plotly .main-svg { background-color: rgba(0,0,0,0) !important; }
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 101 |
</style>
|
| 102 |
""", unsafe_allow_html=True)
|
| 103 |
|
|
|
|
| 29 |
font-family: 'Inter', sans-serif;
|
| 30 |
}
|
| 31 |
|
| 32 |
+
p, span, div, label, h1, h2, h3, h4, h5, h6 {
|
| 33 |
color: #0f172a;
|
| 34 |
}
|
| 35 |
|
|
|
|
| 53 |
color: #334155 !important;
|
| 54 |
}
|
| 55 |
|
| 56 |
+
/* SIDEBAR VISIBILITY FIXES - AGGRESSIVE OVERRIDES */
|
| 57 |
[data-testid="stSidebar"] {
|
| 58 |
background: linear-gradient(180deg, #1e293b 0%, #0f172a 100%);
|
| 59 |
border-right: 1px solid #334155;
|
| 60 |
}
|
| 61 |
+
|
| 62 |
+
/* Force Sidebar Text Colors */
|
| 63 |
+
[data-testid="stSidebar"] h1, [data-testid="stSidebar"] h2, [data-testid="stSidebar"] h3 {
|
| 64 |
+
color: #f8fafc !important;
|
| 65 |
}
|
| 66 |
+
[data-testid="stSidebar"] p, [data-testid="stSidebar"] label {
|
|
|
|
| 67 |
color: #e2e8f0 !important;
|
| 68 |
font-weight: 600;
|
| 69 |
}
|
| 70 |
+
|
| 71 |
+
/* Input Boxes (Selectbox, DateInput) Text Color Fix */
|
| 72 |
+
/* This targets the text INSIDE the white input box */
|
| 73 |
+
[data-testid="stSidebar"] div[data-baseweb="select"] span {
|
| 74 |
+
color: #0f172a !important;
|
| 75 |
+
}
|
| 76 |
+
[data-testid="stSidebar"] div[data-baseweb="input"] input {
|
| 77 |
color: #0f172a !important;
|
| 78 |
}
|
| 79 |
+
[data-testid="stSidebar"] div[role="listbox"] li {
|
|
|
|
| 80 |
color: #0f172a !important;
|
| 81 |
}
|
| 82 |
+
|
| 83 |
+
/* Link Button Fix */
|
| 84 |
[data-testid="stSidebar"] a {
|
| 85 |
+
color: #60a5fa !important; /* Lighter blue for better visibility on dark bg */
|
| 86 |
font-weight: 600;
|
| 87 |
+
text-decoration: none;
|
| 88 |
+
}
|
| 89 |
+
[data-testid="stSidebar"] a:hover {
|
| 90 |
+
text-decoration: underline;
|
| 91 |
+
color: #93c5fd !important;
|
| 92 |
}
|
| 93 |
|
| 94 |
+
/* Link Button Container Background */
|
| 95 |
+
[data-testid="stSidebar"] button[kind="secondary"] {
|
| 96 |
+
background-color: #334155 !important;
|
| 97 |
+
color: #ffffff !important;
|
| 98 |
+
border: 1px solid #475569 !important;
|
| 99 |
+
}
|
| 100 |
+
[data-testid="stSidebar"] button[kind="secondary"]:hover {
|
| 101 |
+
border-color: #60a5fa !important;
|
| 102 |
+
color: #60a5fa !important;
|
| 103 |
+
}
|
| 104 |
+
|
|
|
|
|
|
|
|
|
|
| 105 |
/* HOTSPOTS */
|
| 106 |
.hotspot-card { background: white; padding: 16px; border-radius: 10px; border-left: 5px solid; margin-bottom: 12px; box-shadow: 0 2px 4px rgba(0,0,0,0.05); transition: all 0.2s; }
|
| 107 |
.hotspot-card:hover { transform: translateX(4px); box-shadow: 0 4px 6px rgba(0,0,0,0.1); }
|
| 108 |
.js-plotly-plot .plotly .main-svg { background-color: rgba(0,0,0,0) !important; }
|
| 109 |
+
|
| 110 |
+
/* STATUS BADGES */
|
| 111 |
+
.status-badge { display: inline-flex; align-items: center; padding: 6px 14px; border-radius: 9999px; font-size: 12px; font-weight: 700; text-transform: uppercase; box-shadow: 0 1px 3px rgba(0,0,0,0.1); }
|
| 112 |
+
.bg-red { background: linear-gradient(135deg, #fee2e2 0%, #fecaca 100%); color: #991b1b !important; }
|
| 113 |
+
.bg-green { background: linear-gradient(135deg, #dcfce7 0%, #bbf7d0 100%); color: #166534 !important; }
|
| 114 |
+
.bg-amber { background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%); color: #92400e !important; }
|
| 115 |
</style>
|
| 116 |
""", unsafe_allow_html=True)
|
| 117 |
|