neerajkalyank commited on
Commit
35ee627
1 Parent(s): 2a98323

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +72 -116
app.py CHANGED
@@ -76,12 +76,12 @@ def billing_interface(patient_id):
76
 
77
  # Custom CSS styling
78
  custom_css = """
79
- @import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;600;700&display=swap');
80
 
81
  /* General Page Style */
82
  body {
83
  font-family: 'Poppins', Arial, sans-serif;
84
- background: linear-gradient(135deg, #f0f7f4, #e8f0fe); /* Calm medical background */
85
  color: #333333;
86
  margin: 0;
87
  padding: 0;
@@ -94,197 +94,153 @@ body {
94
  /* Main Container */
95
  .gradio-container {
96
  max-width: 900px;
 
97
  margin: 30px auto;
98
  padding: 40px;
99
- background: #ffffff;
100
- border: 1px solid #d1e2e8;
101
  border-radius: 12px;
102
- box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
103
- color: #333333;
104
- transition: transform 0.3s ease, box-shadow 0.3s ease;
105
  }
106
  .gradio-container:hover {
107
  transform: scale(1.01);
108
- box-shadow: 0 10px 28px rgba(0, 0, 0, 0.15);
109
  }
110
 
111
  /* Header Styling */
112
  #header {
113
- color: #00695c; /* Deep teal for medical tone */
114
  text-align: center;
115
  font-weight: 700;
116
- font-size: 2.8em;
117
- margin-bottom: 25px;
118
- text-shadow: 1px 1px 6px rgba(0, 0, 0, 0.2);
119
- letter-spacing: 1px;
120
- transition: color 0.3s ease, transform 0.3s ease;
121
- }
122
- #header:hover {
123
- color: #004d40;
124
- transform: scale(1.05);
125
- }
126
-
127
- /* Heading Colors */
128
- h1 {
129
- color: #00695c; /* Dark teal for main headings */
130
- text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.15);
131
- }
132
- h2, h3, h4, h5, h6 {
133
- color: #00796b; /* Softer blue-green for subheadings */
134
  text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.1);
 
135
  }
136
 
137
- /* Section Title Styling */
138
- .section-title {
139
- font-size: 1.5em;
140
- color: #00796b;
141
- margin-bottom: 20px;
142
- border-bottom: 2px solid #80cbc4;
143
- padding-bottom: 8px;
144
  }
145
 
146
  /* Form Field Styles */
147
  input, select, textarea {
148
  width: 100%;
149
- border: 1px solid #b0bec5;
150
  border-radius: 8px;
151
  padding: 12px 14px;
152
- background: #fafafa;
153
  color: #333333;
154
- font-size: 16px;
155
  margin-bottom: 20px;
156
  transition: all 0.3s ease;
157
- box-shadow: inset 0px 1px 3px rgba(0, 0, 0, 0.05);
158
  }
159
  input:focus, select:focus, textarea:focus {
160
- border-color: #26a69a;
161
- background: #f0f7f4;
162
- box-shadow: 0px 3px 6px rgba(38, 166, 154, 0.15);
 
163
  }
164
 
165
  /* Button Styles */
166
  button {
 
 
167
  font-size: 1em;
168
  font-weight: 600;
169
- padding: 12px 24px;
170
- border-radius: 8px;
171
  border: none;
172
- background-color: #00796b;
173
  color: #ffffff;
 
174
  cursor: pointer;
175
- box-shadow: 0px 4px 12px rgba(0, 0, 0, 0.1);
176
- transition: background-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
177
  }
178
  button:hover {
179
- background-color: #004d40;
180
- box-shadow: 0px 6px 14px rgba(0, 0, 0, 0.15);
181
  transform: translateY(-2px);
 
 
 
 
182
  }
183
 
184
- /* Radio Button Group Styling */
185
  .gr-radio-group label {
186
- display: flex;
187
  align-items: center;
188
- justify-content: center;
189
- padding: 10px 20px;
190
- border: 1px solid #00838f;
191
  border-radius: 8px;
192
- transition: all 0.3s ease;
193
- cursor: pointer;
194
- color: #004d40;
195
- background: #e0f7fa;
196
- box-shadow: 0px 3px 5px rgba(0, 0, 0, 0.1);
197
  margin-right: 10px;
 
 
198
  }
199
  .gr-radio-group label:hover {
200
- background: #b2ebf2;
201
- color: #004d40;
 
202
  }
203
-
204
- /* Radio Button Styling */
205
  .gr-radio-group input[type="radio"] {
206
  appearance: none;
207
  width: 18px;
208
  height: 18px;
209
- border: 2px solid #004d40;
210
- border-radius: 50%;
211
  margin-right: 8px;
212
- transition: all 0.3s ease;
213
- position: relative;
214
- }
215
- .gr-radio-group input[type="radio"]:checked {
216
- background-color: #26a69a;
217
- border-color: #26a69a;
218
- }
219
- .gr-radio-group input[type="radio"]:checked::after {
220
- content: "✓";
221
- color: #ffffff;
222
- font-size: 12px;
223
- position: absolute;
224
- top: 1px;
225
- left: 1px;
226
- width: 16px;
227
- height: 16px;
228
  border-radius: 50%;
229
- display: flex;
230
- align-items: center;
231
- justify-content: center;
232
- background-color: #26a69a;
233
  }
234
-
235
- /* Adjust label for responsive alignment */
236
- .gr-radio-group span {
237
- font-size: 1em;
238
- font-weight: 600;
239
- color: #333333;
240
  }
241
 
242
- /* Tab Styling */
243
  .nav-tabs {
244
  display: flex;
245
  justify-content: space-around;
246
  background-color: #ffffff;
247
- border-bottom: 1px solid #e0e0e0;
248
  padding: 12px;
249
- gap: 20px;
250
  border-radius: 8px;
 
251
  }
252
  .nav-tabs .nav-item {
253
- font-size: 1.2em;
254
- color: #333333;
255
- padding: 10px 18px;
256
- cursor: pointer;
257
  font-weight: 500;
 
 
258
  border: 2px solid transparent;
259
- border-radius: 8px;
260
- transition: color 0.3s, background-color 0.3s;
261
- }
262
- .nav-tabs .nav-item:hover {
263
- color: #26a69a;
264
- background-color: rgba(38, 166, 154, 0.1);
265
  }
266
- .nav-tabs .nav-item.active {
267
- color: #00796b;
268
- border-bottom: 3px solid #00796b;
269
- font-weight: 700;
270
- background-color: rgba(38, 166, 154, 0.1);
271
- padding: 8px 16px;
272
  }
273
 
274
  /* Output Text Styling */
275
  #registration_output, #test_output, #billing_output {
276
  color: #333333;
277
- background-color: rgba(240, 255, 255, 0.9);
278
  padding: 15px;
279
- border-radius: 7px;
280
- font-weight: bold;
281
  text-align: left;
282
- border: 1px solid #d1e2e8;
283
- box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.05);
284
- transition: background-color 0.3s ease;
285
  }
286
  #registration_output:hover, #test_output:hover, #billing_output:hover {
287
- background-color: rgba(230, 245, 245, 0.95);
 
288
  }
289
 
290
  """
 
76
 
77
  # Custom CSS styling
78
  custom_css = """
79
+ @import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700&display=swap');
80
 
81
  /* General Page Style */
82
  body {
83
  font-family: 'Poppins', Arial, sans-serif;
84
+ background: linear-gradient(135deg, #f3faff, #e0f4f9);
85
  color: #333333;
86
  margin: 0;
87
  padding: 0;
 
94
  /* Main Container */
95
  .gradio-container {
96
  max-width: 900px;
97
+ width: 100%;
98
  margin: 30px auto;
99
  padding: 40px;
100
+ background-color: #ffffff;
 
101
  border-radius: 12px;
102
+ border: 1px solid #d0e7f1;
103
+ box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
104
+ transition: box-shadow 0.3s ease, transform 0.3s ease;
105
  }
106
  .gradio-container:hover {
107
  transform: scale(1.01);
108
+ box-shadow: 0 12px 36px rgba(0, 0, 0, 0.12);
109
  }
110
 
111
  /* Header Styling */
112
  #header {
113
+ color: #005b8c;
114
  text-align: center;
115
  font-weight: 700;
116
+ font-size: 2.4em;
117
+ margin-bottom: 20px;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
118
  text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.1);
119
+ letter-spacing: 0.5px;
120
  }
121
 
122
+ /* Headings */
123
+ h1, h2, h3, h4, h5, h6 {
124
+ color: #005b8c;
125
+ font-weight: 600;
 
 
 
126
  }
127
 
128
  /* Form Field Styles */
129
  input, select, textarea {
130
  width: 100%;
131
+ border: 1px solid #aac9d4;
132
  border-radius: 8px;
133
  padding: 12px 14px;
134
+ font-size: 15px;
135
  color: #333333;
136
+ background: #f7fcff;
137
  margin-bottom: 20px;
138
  transition: all 0.3s ease;
139
+ box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.05);
140
  }
141
  input:focus, select:focus, textarea:focus {
142
+ border-color: #41a0c4;
143
+ background: #eaf6f9;
144
+ box-shadow: 0 4px 10px rgba(65, 160, 196, 0.15);
145
+ outline: none;
146
  }
147
 
148
  /* Button Styles */
149
  button {
150
+ width: auto;
151
+ padding: 12px 24px;
152
  font-size: 1em;
153
  font-weight: 600;
 
 
154
  border: none;
155
+ border-radius: 8px;
156
  color: #ffffff;
157
+ background-color: #007ba7;
158
  cursor: pointer;
159
+ transition: background-color 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
160
+ box-shadow: 0 4px 12px rgba(0, 123, 167, 0.2);
161
  }
162
  button:hover {
163
+ background-color: #005f80;
 
164
  transform: translateY(-2px);
165
+ box-shadow: 0 6px 16px rgba(0, 123, 167, 0.3);
166
+ }
167
+ button:active {
168
+ transform: translateY(1px);
169
  }
170
 
171
+ /* Radio Button Group */
172
  .gr-radio-group label {
173
+ display: inline-flex;
174
  align-items: center;
175
+ padding: 8px 16px;
176
+ border: 1px solid #b0d3dc;
 
177
  border-radius: 8px;
178
+ color: #333333;
179
+ background: #f7fcff;
 
 
 
180
  margin-right: 10px;
181
+ transition: background-color 0.3s, color 0.3s, border-color 0.3s;
182
+ cursor: pointer;
183
  }
184
  .gr-radio-group label:hover {
185
+ background-color: #eaf6f9;
186
+ border-color: #41a0c4;
187
+ color: #005b8c;
188
  }
 
 
189
  .gr-radio-group input[type="radio"] {
190
  appearance: none;
191
  width: 18px;
192
  height: 18px;
 
 
193
  margin-right: 8px;
194
+ border: 2px solid #007ba7;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
195
  border-radius: 50%;
196
+ transition: background-color 0.3s, border-color 0.3s;
 
 
 
197
  }
198
+ .gr-radio-group input[type="radio"]:checked {
199
+ background-color: #007ba7;
200
+ border-color: #007ba7;
 
 
 
201
  }
202
 
203
+ /* Tabs */
204
  .nav-tabs {
205
  display: flex;
206
  justify-content: space-around;
207
  background-color: #ffffff;
 
208
  padding: 12px;
209
+ border-bottom: 2px solid #e0f2f4;
210
  border-radius: 8px;
211
+ margin-bottom: 20px;
212
  }
213
  .nav-tabs .nav-item {
214
+ font-size: 1.1em;
 
 
 
215
  font-weight: 500;
216
+ color: #333333;
217
+ padding: 10px 20px;
218
  border: 2px solid transparent;
219
+ border-radius: 6px;
220
+ cursor: pointer;
221
+ transition: color 0.3s, background-color 0.3s, border-color 0.3s;
 
 
 
222
  }
223
+ .nav-tabs .nav-item:hover, .nav-tabs .nav-item.active {
224
+ color: #007ba7;
225
+ background-color: #eaf6f9;
226
+ border-color: #007ba7;
 
 
227
  }
228
 
229
  /* Output Text Styling */
230
  #registration_output, #test_output, #billing_output {
231
  color: #333333;
232
+ background-color: #f0fbff;
233
  padding: 15px;
234
+ border-radius: 8px;
235
+ font-weight: 600;
236
  text-align: left;
237
+ border: 1px solid #d0e7f1;
238
+ box-shadow: 0 3px 8px rgba(0, 0, 0, 0.05);
239
+ transition: background-color 0.3s ease, border-color 0.3s ease;
240
  }
241
  #registration_output:hover, #test_output:hover, #billing_output:hover {
242
+ background-color: #e8f7fb;
243
+ border-color: #41a0c4;
244
  }
245
 
246
  """