neerajkalyank commited on
Commit
f26591a
1 Parent(s): b39da01

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +60 -85
app.py CHANGED
@@ -76,113 +76,95 @@ 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;500;600;700&display=swap');
80
 
81
  /* General Page Style */
82
  body {
83
  font-family: 'Poppins', Arial, sans-serif;
84
- background: linear-gradient(135deg, #f0faff, #e8f5fe);
85
- color: #333333;
86
  margin: 0;
87
  padding: 0;
88
  display: flex;
89
  justify-content: center;
90
  align-items: center;
91
  min-height: 100vh;
92
- transition: background-color 0.5s ease;
93
  }
94
 
95
  /* Main Container */
96
  .gradio-container {
97
  max-width: 900px;
98
  width: 100%;
99
- margin: 30px auto;
100
- padding: 40px;
101
  background-color: #ffffff;
102
- border-radius: 16px;
103
  border: 1px solid #d0e7f1;
104
- box-shadow: 0 12px 36px rgba(0, 0, 0, 0.12);
105
- transition: box-shadow 0.3s ease, transform 0.3s ease;
106
  }
107
  .gradio-container:hover {
108
- transform: scale(1.02);
109
- box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
110
  }
111
 
112
  /* Header Styling */
113
  #header {
114
  color: #005b8c;
115
  text-align: center;
116
- font-weight: 700;
117
- font-size: 2.6em;
118
- margin-bottom: 20px;
119
- text-shadow: 1px 1px 6px rgba(0, 0, 0, 0.1);
120
  letter-spacing: 0.5px;
121
- transition: color 0.3s ease, transform 0.3s ease;
122
- }
123
- #header:hover {
124
- color: #004d80;
125
- transform: scale(1.03);
126
  }
127
 
128
  /* Headings */
129
- h1, h2, h3, h4, h5, h6 {
130
  color: #005b8c;
131
- font-weight: 600;
132
- text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.08);
133
  }
134
 
135
  /* Form Field Styles */
136
  input, select, textarea {
137
  width: 100%;
138
  border: 1px solid #aac9d4;
139
- border-radius: 12px;
140
- padding: 12px 14px;
141
- font-size: 15px;
142
- color: #333333;
143
  background: #f7fcff;
144
- margin-bottom: 20px;
145
- transition: all 0.3s ease;
146
- box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.05);
147
  }
148
  input:focus, select:focus, textarea:focus {
149
  border-color: #41a0c4;
150
  background: #eaf6f9;
151
- box-shadow: 0 4px 12px rgba(65, 160, 196, 0.2);
152
  outline: none;
153
- transform: scale(1.01);
154
  }
155
 
156
  /* Button Styles */
157
  button {
158
- width: auto;
159
- padding: 12px 24px;
160
- font-size: 1em;
161
- font-weight: 600;
162
  border: none;
163
- border-radius: 10px;
164
  color: #ffffff;
165
  background-color: #007ba7;
166
  cursor: pointer;
167
- transition: background-color 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
168
- box-shadow: 0 4px 12px rgba(0, 123, 167, 0.2);
169
  }
170
  button:hover {
171
  background-color: #005f80;
172
- transform: translateY(-2px);
173
- box-shadow: 0 6px 18px rgba(0, 123, 167, 0.3);
174
- }
175
- button:active {
176
- transform: translateY(1px);
177
  }
178
 
179
  /* Toggle Switch (Checkbox Alternative) */
180
  .toggle-switch {
181
  position: relative;
182
  display: inline-block;
183
- width: 50px;
184
- height: 28px;
185
- margin: 10px;
186
  }
187
  .toggle-switch input {
188
  opacity: 0;
@@ -197,53 +179,52 @@ button:active {
197
  right: 0;
198
  bottom: 0;
199
  background-color: #c2d6dc;
200
- transition: 0.4s;
201
- border-radius: 34px;
202
  }
203
  .toggle-slider:before {
204
  position: absolute;
205
  content: "";
206
- height: 22px;
207
- width: 22px;
208
- left: 3px;
209
- bottom: 3px;
210
  background-color: #ffffff;
211
- transition: 0.4s;
212
  border-radius: 50%;
213
  }
214
  input:checked + .toggle-slider {
215
  background-color: #007ba7;
216
  }
217
  input:checked + .toggle-slider:before {
218
- transform: translateX(22px);
219
  }
220
 
221
  /* Radio Button Group */
222
  .gr-radio-group label {
223
  display: inline-flex;
224
  align-items: center;
225
- padding: 8px 18px;
226
  border: 1px solid #b0d3dc;
227
- border-radius: 8px;
228
- color: #333333;
229
  background: #f7fcff;
230
- margin-right: 10px;
231
- transition: background-color 0.3s, color 0.3s, border-color 0.3s;
232
  cursor: pointer;
233
  }
234
  .gr-radio-group label:hover {
235
  background-color: #eaf6f9;
236
  border-color: #41a0c4;
237
- color: #005b8c;
238
  }
239
  .gr-radio-group input[type="radio"] {
240
  appearance: none;
241
- width: 18px;
242
- height: 18px;
243
- margin-right: 8px;
244
  border: 2px solid #007ba7;
245
  border-radius: 50%;
246
- transition: background-color 0.3s, border-color 0.3s;
247
  }
248
  .gr-radio-group input[type="radio"]:checked {
249
  background-color: #007ba7;
@@ -255,46 +236,40 @@ input:checked + .toggle-slider:before {
255
  display: flex;
256
  justify-content: space-around;
257
  background-color: #ffffff;
258
- padding: 12px;
259
- border-bottom: 2px solid #e0f2f4;
260
- border-radius: 8px;
261
- margin-bottom: 20px;
262
- box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
263
  }
264
  .nav-tabs .nav-item {
265
- font-size: 1.1em;
266
  font-weight: 500;
267
- color: #333333;
268
- padding: 10px 20px;
269
- border: 2px solid transparent;
270
  border-radius: 6px;
271
  cursor: pointer;
272
- transition: color 0.3s, background-color 0.3s, border-color 0.3s;
273
  }
274
  .nav-tabs .nav-item:hover, .nav-tabs .nav-item.active {
275
  color: #007ba7;
276
  background-color: #eaf6f9;
277
- border-color: #007ba7;
278
- font-weight: 600;
279
- transform: scale(1.02);
280
  }
281
 
282
  /* Output Text Styling */
283
  #registration_output, #test_output, #billing_output {
284
- color: #333333;
285
  background-color: #f0fbff;
286
- padding: 20px;
287
- border-radius: 10px;
288
- font-weight: 600;
289
  text-align: left;
290
  border: 1px solid #d0e7f1;
291
- box-shadow: 0 5px 12px rgba(0, 0, 0, 0.08);
292
- transition: background-color 0.3s ease, border-color 0.3s ease;
293
  }
294
  #registration_output:hover, #test_output:hover, #billing_output:hover {
295
  background-color: #e8f7fb;
296
  border-color: #41a0c4;
297
- transform: scale(1.01);
298
  }
299
 
300
  """
 
76
 
77
  # Custom CSS styling
78
  custom_css = """
79
+ @import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600&display=swap');
80
 
81
  /* General Page Style */
82
  body {
83
  font-family: 'Poppins', Arial, sans-serif;
84
+ background: #f0f7f9;
85
+ color: #333;
86
  margin: 0;
87
  padding: 0;
88
  display: flex;
89
  justify-content: center;
90
  align-items: center;
91
  min-height: 100vh;
 
92
  }
93
 
94
  /* Main Container */
95
  .gradio-container {
96
  max-width: 900px;
97
  width: 100%;
98
+ margin: 0 auto;
99
+ padding: 30px;
100
  background-color: #ffffff;
101
+ border-radius: 8px;
102
  border: 1px solid #d0e7f1;
103
+ box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
104
+ transition: box-shadow 0.2s ease;
105
  }
106
  .gradio-container:hover {
107
+ box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
 
108
  }
109
 
110
  /* Header Styling */
111
  #header {
112
  color: #005b8c;
113
  text-align: center;
114
+ font-weight: 600;
115
+ font-size: 2em;
116
+ margin-bottom: 15px;
 
117
  letter-spacing: 0.5px;
 
 
 
 
 
118
  }
119
 
120
  /* Headings */
121
+ h1, h2, h3 {
122
  color: #005b8c;
123
+ font-weight: 500;
124
+ margin: 15px 0 10px;
125
  }
126
 
127
  /* Form Field Styles */
128
  input, select, textarea {
129
  width: 100%;
130
  border: 1px solid #aac9d4;
131
+ border-radius: 6px;
132
+ padding: 8px 10px;
133
+ font-size: 14px;
134
+ color: #333;
135
  background: #f7fcff;
136
+ margin-bottom: 15px;
137
+ transition: border-color 0.3s ease;
 
138
  }
139
  input:focus, select:focus, textarea:focus {
140
  border-color: #41a0c4;
141
  background: #eaf6f9;
 
142
  outline: none;
 
143
  }
144
 
145
  /* Button Styles */
146
  button {
147
+ padding: 10px 20px;
148
+ font-size: 0.9em;
149
+ font-weight: 500;
 
150
  border: none;
151
+ border-radius: 6px;
152
  color: #ffffff;
153
  background-color: #007ba7;
154
  cursor: pointer;
155
+ transition: background-color 0.2s ease;
 
156
  }
157
  button:hover {
158
  background-color: #005f80;
 
 
 
 
 
159
  }
160
 
161
  /* Toggle Switch (Checkbox Alternative) */
162
  .toggle-switch {
163
  position: relative;
164
  display: inline-block;
165
+ width: 40px;
166
+ height: 20px;
167
+ margin: 5px;
168
  }
169
  .toggle-switch input {
170
  opacity: 0;
 
179
  right: 0;
180
  bottom: 0;
181
  background-color: #c2d6dc;
182
+ transition: 0.3s;
183
+ border-radius: 20px;
184
  }
185
  .toggle-slider:before {
186
  position: absolute;
187
  content: "";
188
+ height: 16px;
189
+ width: 16px;
190
+ left: 2px;
191
+ bottom: 2px;
192
  background-color: #ffffff;
193
+ transition: 0.3s;
194
  border-radius: 50%;
195
  }
196
  input:checked + .toggle-slider {
197
  background-color: #007ba7;
198
  }
199
  input:checked + .toggle-slider:before {
200
+ transform: translateX(18px);
201
  }
202
 
203
  /* Radio Button Group */
204
  .gr-radio-group label {
205
  display: inline-flex;
206
  align-items: center;
207
+ padding: 6px 12px;
208
  border: 1px solid #b0d3dc;
209
+ border-radius: 6px;
210
+ color: #333;
211
  background: #f7fcff;
212
+ margin-right: 8px;
213
+ transition: background-color 0.2s, color 0.2s, border-color 0.2s;
214
  cursor: pointer;
215
  }
216
  .gr-radio-group label:hover {
217
  background-color: #eaf6f9;
218
  border-color: #41a0c4;
 
219
  }
220
  .gr-radio-group input[type="radio"] {
221
  appearance: none;
222
+ width: 14px;
223
+ height: 14px;
224
+ margin-right: 6px;
225
  border: 2px solid #007ba7;
226
  border-radius: 50%;
227
+ transition: background-color 0.2s, border-color 0.2s;
228
  }
229
  .gr-radio-group input[type="radio"]:checked {
230
  background-color: #007ba7;
 
236
  display: flex;
237
  justify-content: space-around;
238
  background-color: #ffffff;
239
+ padding: 10px;
240
+ border-bottom: 1px solid #e0f2f4;
241
+ border-radius: 6px;
242
+ margin-bottom: 15px;
 
243
  }
244
  .nav-tabs .nav-item {
245
+ font-size: 0.9em;
246
  font-weight: 500;
247
+ color: #333;
248
+ padding: 8px 15px;
 
249
  border-radius: 6px;
250
  cursor: pointer;
251
+ transition: color 0.2s, background-color 0.2s;
252
  }
253
  .nav-tabs .nav-item:hover, .nav-tabs .nav-item.active {
254
  color: #007ba7;
255
  background-color: #eaf6f9;
 
 
 
256
  }
257
 
258
  /* Output Text Styling */
259
  #registration_output, #test_output, #billing_output {
260
+ color: #333;
261
  background-color: #f0fbff;
262
+ padding: 12px;
263
+ border-radius: 6px;
264
+ font-weight: 500;
265
  text-align: left;
266
  border: 1px solid #d0e7f1;
267
+ box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
268
+ transition: background-color 0.2s ease, border-color 0.2s ease;
269
  }
270
  #registration_output:hover, #test_output:hover, #billing_output:hover {
271
  background-color: #e8f7fb;
272
  border-color: #41a0c4;
 
273
  }
274
 
275
  """