LucidMinds3ye commited on
Commit
1d5fa9b
·
verified ·
1 Parent(s): c4900cf

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +0 -184
app.py CHANGED
@@ -67,190 +67,6 @@ SAMPLE_VERSES = {
67
  # Initialize database
68
  init_db()
69
 
70
- # Custom CSS for styling
71
- st.markdown("""
72
- <style>
73
- /* Main text color for entire app */
74
- .main .block-container {
75
- color: #333333;
76
- }
77
-
78
- .main-header {
79
- font-size: 3.5rem;
80
- color: #2c5c2c;
81
- text-align: center;
82
- margin-bottom: 1rem;
83
- font-weight: bold;
84
- }
85
- .sub-header {
86
- font-size: 1.8rem;
87
- color: #3a6349;
88
- border-bottom: 3px solid #4a7c59;
89
- padding-bottom: 0.5rem;
90
- margin-bottom: 1.5rem;
91
- font-weight: 600;
92
- }
93
- .scripture-box {
94
- background-color: #f0f7f0;
95
- border-radius: 10px;
96
- padding: 20px;
97
- margin: 15px 0;
98
- border-left: 5px solid #4a7c59;
99
- color: #2c5c2c !important;
100
- font-size: 1.1rem;
101
- line-height: 1.6;
102
- }
103
- .simplified-box {
104
- background-color: #e8f4f8;
105
- border-radius: 10px;
106
- padding: 20px;
107
- margin: 15px 0;
108
- border-left: 5px solid #5c8da5;
109
- color: #2c3e50 !important;
110
- font-size: 1.1rem;
111
- line-height: 1.6;
112
- }
113
- .stButton>button {
114
- background-color: #4a7c59;
115
- color: white;
116
- border: none;
117
- padding: 12px 24px;
118
- border-radius: 8px;
119
- font-weight: bold;
120
- font-size: 1.1rem;
121
- margin-top: 15px;
122
- }
123
- .stButton>button:hover {
124
- background-color: #3a6349;
125
- color: white;
126
- transform: translateY(-2px);
127
- box-shadow: 0 4px 8px rgba(0,0,0,0.1);
128
- }
129
- .success-box {
130
- background-color: #d4edda;
131
- color: #155724;
132
- padding: 15px;
133
- border-radius: 8px;
134
- margin: 15px 0;
135
- border: 1px solid #c3e6cb;
136
- font-weight: 500;
137
- }
138
- /* Text area styling */
139
- .stTextArea textarea {
140
- color: #000000 !important;
141
- font-size: 1.1rem;
142
- line-height: 1.5;
143
- background-color: #f8f9fa;
144
- border: 2px solid #4a7c59;
145
- border-radius: 8px;
146
- padding: 12px;
147
- }
148
- /* Select box label styling */
149
- .stSelectbox label {
150
- color: #2c3e50 !important;
151
- font-size: 1.1rem;
152
- font-weight: 500;
153
- }
154
- /* DROPDOWN INPUT BOX - FIXED */
155
- div[data-baseweb="select"] > div {
156
- background-color: #f8f9fa !important;
157
- border: 2px solid #4a7c59 !important;
158
- border-radius: 8px !important;
159
- padding: 8px 12px !important;
160
- font-size: 1.1rem !important;
161
- }
162
- /* TARGET THE TEXT INSIDE THE CLOSED BOX - CRITICAL FIX */
163
- div[data-baseweb="select"] div[style] {
164
- color: #000000 !important;
165
- font-weight: 500 !important;
166
- }
167
- /* DROPDOWN OPTIONS PANEL - FIXED */
168
- div[data-baseweb="popover"] {
169
- background-color: #ffffff !important;
170
- border: 2px solid #4a7c59 !important;
171
- border-radius: 8px !important;
172
- }
173
- /* DROPDOWN OPTIONS - FIXED */
174
- div[data-baseweb="popover"] li {
175
- background-color: #ffffff !important;
176
- color: #000000 !important;
177
- padding: 10px 15px !important;
178
- font-size: 1.1rem !important;
179
- }
180
- /* DROPDOWN OPTIONS HOVER - FIXED */
181
- div[data-baseweb="popover"] li:hover {
182
- background-color: #f0f7f0 !important;
183
- color: #000000 !important;
184
- }
185
- /* Placeholder text for dropdown */
186
- div[data-baseweb="select"] input::placeholder {
187
- color: #6c757d !important;
188
- }
189
- /* Number input styling */
190
- .stNumberInput input {
191
- color: #000000 !important;
192
- font-size: 1.1rem !important;
193
- background-color: #f8f9fa !important;
194
- border: 2px solid #4a7c59 !important;
195
- border-radius: 8px !important;
196
- padding: 8px 12px !important;
197
- }
198
- /* Number input label */
199
- .stNumberInput label {
200
- color: #2c3e50 !important;
201
- font-size: 1.1rem !important;
202
- font-weight: 500 !important;
203
- }
204
- /* Make all text consistent */
205
- body, p, div, span, h1, h2, h3, h4, h5, h6 {
206
- color: #2c3e50 !important;
207
- }
208
- /* Tab styling */
209
- .stTabs [data-baseweb="tab-list"] {
210
- gap: 8px;
211
- }
212
- .stTabs [data-baseweb="tab"] {
213
- height: 50px;
214
- white-space: pre-wrap;
215
- background-color: #e8f4f0;
216
- border-radius: 8px 8px 0px 0px;
217
- gap: 8px;
218
- padding: 12px 24px;
219
- font-weight: bold;
220
- }
221
- .stTabs [aria-selected="true"] {
222
- background-color: #4a7c59;
223
- color: white !important;
224
- }
225
- /* Expander styling */
226
- .streamlit-expanderHeader {
227
- font-size: 1.2rem;
228
- font-weight: 600;
229
- color: #2c5c2c !important;
230
- background-color: #f0f7f0;
231
- padding: 12px;
232
- border-radius: 8px;
233
- margin: 8px 0;
234
- }
235
- /* Metric cards styling */
236
- [data-testid="metric-container"] {
237
- background-color: #f0f7f0;
238
- border: 1px solid #4a7c59;
239
- border-radius: 10px;
240
- padding: 15px;
241
- text-align: center;
242
- }
243
- /* Footer styling */
244
- .footer {
245
- text-align: center;
246
- color: #6c757d;
247
- padding: 20px;
248
- margin-top: 30px;
249
- font-style: italic;
250
- }
251
- </style>
252
- """, unsafe_allow_html=True)
253
-
254
  # App title and description
255
  st.markdown('<h1 class="main-header">📖 Scripture Decipher</h1>', unsafe_allow_html=True)
256
  st.markdown("""
 
67
  # Initialize database
68
  init_db()
69
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
70
  # App title and description
71
  st.markdown('<h1 class="main-header">📖 Scripture Decipher</h1>', unsafe_allow_html=True)
72
  st.markdown("""