Spaces:
Running
Running
neerajkalyank
commited on
Commit
•
543efc3
1
Parent(s):
b385b87
Update app.py
Browse files
app.py
CHANGED
@@ -78,13 +78,17 @@ def billing_interface(patient_id):
|
|
78 |
custom_css = """
|
79 |
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700&display=swap');
|
80 |
|
81 |
-
/*
|
|
|
|
|
|
|
|
|
|
|
|
|
82 |
body {
|
83 |
font-family: 'Poppins', Arial, sans-serif;
|
84 |
background: linear-gradient(135deg, #f3faff, #e0f4f9);
|
85 |
-
color: #
|
86 |
-
margin: 0;
|
87 |
-
padding: 0;
|
88 |
display: flex;
|
89 |
justify-content: center;
|
90 |
align-items: center;
|
@@ -97,29 +101,30 @@ body {
|
|
97 |
width: 100%;
|
98 |
margin: 30px auto;
|
99 |
padding: 40px;
|
100 |
-
background-color: #
|
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
|
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;
|
@@ -132,12 +137,13 @@ input, select, textarea {
|
|
132 |
border-radius: 8px;
|
133 |
padding: 12px 14px;
|
134 |
font-size: 15px;
|
135 |
-
color: #
|
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;
|
@@ -147,40 +153,42 @@ input:focus, select:focus, textarea:focus {
|
|
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: #
|
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 |
-
/* Toggle Switch
|
172 |
.toggle-switch {
|
173 |
position: relative;
|
174 |
display: inline-block;
|
175 |
width: 50px;
|
176 |
height: 28px;
|
177 |
-
margin: 10px;
|
178 |
}
|
|
|
179 |
.toggle-switch input {
|
180 |
opacity: 0;
|
181 |
width: 0;
|
182 |
height: 0;
|
183 |
}
|
|
|
184 |
.toggle-slider {
|
185 |
position: absolute;
|
186 |
cursor: pointer;
|
@@ -192,6 +200,7 @@ button:active {
|
|
192 |
transition: 0.4s;
|
193 |
border-radius: 34px;
|
194 |
}
|
|
|
195 |
.toggle-slider:before {
|
196 |
position: absolute;
|
197 |
content: "";
|
@@ -199,13 +208,15 @@ button:active {
|
|
199 |
width: 22px;
|
200 |
left: 3px;
|
201 |
bottom: 3px;
|
202 |
-
background-color: #
|
203 |
transition: 0.4s;
|
204 |
border-radius: 50%;
|
205 |
}
|
|
|
206 |
input:checked + .toggle-slider {
|
207 |
background-color: #007ba7;
|
208 |
}
|
|
|
209 |
input:checked + .toggle-slider:before {
|
210 |
transform: translateX(22px);
|
211 |
}
|
@@ -217,17 +228,18 @@ input:checked + .toggle-slider:before {
|
|
217 |
padding: 8px 16px;
|
218 |
border: 1px solid #b0d3dc;
|
219 |
border-radius: 8px;
|
220 |
-
color: #333333;
|
221 |
background: #f7fcff;
|
222 |
margin-right: 10px;
|
223 |
-
transition: background-color 0.3s, color 0.3s, border-color 0.3s;
|
224 |
cursor: pointer;
|
|
|
225 |
}
|
|
|
226 |
.gr-radio-group label:hover {
|
227 |
background-color: #eaf6f9;
|
228 |
border-color: #41a0c4;
|
229 |
color: #005b8c;
|
230 |
}
|
|
|
231 |
.gr-radio-group input[type="radio"] {
|
232 |
appearance: none;
|
233 |
width: 18px;
|
@@ -237,6 +249,7 @@ input:checked + .toggle-slider:before {
|
|
237 |
border-radius: 50%;
|
238 |
transition: background-color 0.3s, border-color 0.3s;
|
239 |
}
|
|
|
240 |
.gr-radio-group input[type="radio"]:checked {
|
241 |
background-color: #007ba7;
|
242 |
border-color: #007ba7;
|
@@ -246,22 +259,24 @@ input:checked + .toggle-slider:before {
|
|
246 |
.nav-tabs {
|
247 |
display: flex;
|
248 |
justify-content: space-around;
|
249 |
-
background-color: #
|
250 |
padding: 12px;
|
251 |
border-bottom: 2px solid #e0f2f4;
|
252 |
border-radius: 8px;
|
253 |
margin-bottom: 20px;
|
254 |
}
|
|
|
255 |
.nav-tabs .nav-item {
|
256 |
font-size: 1.1em;
|
257 |
font-weight: 500;
|
258 |
-
color: #
|
259 |
padding: 10px 20px;
|
260 |
border: 2px solid transparent;
|
261 |
border-radius: 6px;
|
262 |
cursor: pointer;
|
263 |
transition: color 0.3s, background-color 0.3s, border-color 0.3s;
|
264 |
}
|
|
|
265 |
.nav-tabs .nav-item:hover, .nav-tabs .nav-item.active {
|
266 |
color: #007ba7;
|
267 |
background-color: #eaf6f9;
|
@@ -270,7 +285,7 @@ input:checked + .toggle-slider:before {
|
|
270 |
|
271 |
/* Output Text Styling */
|
272 |
#registration_output, #test_output, #billing_output {
|
273 |
-
color: #
|
274 |
background-color: #f0fbff;
|
275 |
padding: 15px;
|
276 |
border-radius: 8px;
|
@@ -280,11 +295,34 @@ input:checked + .toggle-slider:before {
|
|
280 |
box-shadow: 0 3px 8px rgba(0, 0, 0, 0.05);
|
281 |
transition: background-color 0.3s ease, border-color 0.3s ease;
|
282 |
}
|
|
|
283 |
#registration_output:hover, #test_output:hover, #billing_output:hover {
|
284 |
background-color: #e8f7fb;
|
285 |
border-color: #41a0c4;
|
286 |
}
|
287 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
288 |
"""
|
289 |
|
290 |
# Gradio Interface
|
|
|
78 |
custom_css = """
|
79 |
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700&display=swap');
|
80 |
|
81 |
+
/* Reset and Base Styles */
|
82 |
+
* {
|
83 |
+
margin: 0;
|
84 |
+
padding: 0;
|
85 |
+
box-sizing: border-box;
|
86 |
+
}
|
87 |
+
|
88 |
body {
|
89 |
font-family: 'Poppins', Arial, sans-serif;
|
90 |
background: linear-gradient(135deg, #f3faff, #e0f4f9);
|
91 |
+
color: #333;
|
|
|
|
|
92 |
display: flex;
|
93 |
justify-content: center;
|
94 |
align-items: center;
|
|
|
101 |
width: 100%;
|
102 |
margin: 30px auto;
|
103 |
padding: 40px;
|
104 |
+
background-color: #fff;
|
105 |
border-radius: 12px;
|
106 |
border: 1px solid #d0e7f1;
|
107 |
box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
|
108 |
transition: box-shadow 0.3s ease, transform 0.3s ease;
|
109 |
}
|
110 |
+
|
111 |
.gradio-container:hover {
|
112 |
transform: scale(1.01);
|
113 |
box-shadow: 0 12px 36px rgba(0, 0, 0, 0.12);
|
114 |
}
|
115 |
|
116 |
+
/* Header */
|
117 |
#header {
|
118 |
color: #005b8c;
|
119 |
text-align: center;
|
120 |
font-weight: 700;
|
121 |
font-size: 2.4em;
|
122 |
margin-bottom: 20px;
|
|
|
123 |
letter-spacing: 0.5px;
|
124 |
+
text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.1);
|
125 |
}
|
126 |
|
127 |
+
/* Typography for Headings */
|
128 |
h1, h2, h3, h4, h5, h6 {
|
129 |
color: #005b8c;
|
130 |
font-weight: 600;
|
|
|
137 |
border-radius: 8px;
|
138 |
padding: 12px 14px;
|
139 |
font-size: 15px;
|
140 |
+
color: #333;
|
141 |
background: #f7fcff;
|
142 |
margin-bottom: 20px;
|
143 |
transition: all 0.3s ease;
|
144 |
box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.05);
|
145 |
}
|
146 |
+
|
147 |
input:focus, select:focus, textarea:focus {
|
148 |
border-color: #41a0c4;
|
149 |
background: #eaf6f9;
|
|
|
153 |
|
154 |
/* Button Styles */
|
155 |
button {
|
|
|
156 |
padding: 12px 24px;
|
157 |
font-size: 1em;
|
158 |
font-weight: 600;
|
159 |
border: none;
|
160 |
border-radius: 8px;
|
161 |
+
color: #fff;
|
162 |
background-color: #007ba7;
|
163 |
cursor: pointer;
|
164 |
transition: background-color 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
|
165 |
box-shadow: 0 4px 12px rgba(0, 123, 167, 0.2);
|
166 |
}
|
167 |
+
|
168 |
button:hover {
|
169 |
background-color: #005f80;
|
170 |
transform: translateY(-2px);
|
171 |
box-shadow: 0 6px 16px rgba(0, 123, 167, 0.3);
|
172 |
}
|
173 |
+
|
174 |
button:active {
|
175 |
transform: translateY(1px);
|
176 |
}
|
177 |
|
178 |
+
/* Toggle Switch */
|
179 |
.toggle-switch {
|
180 |
position: relative;
|
181 |
display: inline-block;
|
182 |
width: 50px;
|
183 |
height: 28px;
|
|
|
184 |
}
|
185 |
+
|
186 |
.toggle-switch input {
|
187 |
opacity: 0;
|
188 |
width: 0;
|
189 |
height: 0;
|
190 |
}
|
191 |
+
|
192 |
.toggle-slider {
|
193 |
position: absolute;
|
194 |
cursor: pointer;
|
|
|
200 |
transition: 0.4s;
|
201 |
border-radius: 34px;
|
202 |
}
|
203 |
+
|
204 |
.toggle-slider:before {
|
205 |
position: absolute;
|
206 |
content: "";
|
|
|
208 |
width: 22px;
|
209 |
left: 3px;
|
210 |
bottom: 3px;
|
211 |
+
background-color: #fff;
|
212 |
transition: 0.4s;
|
213 |
border-radius: 50%;
|
214 |
}
|
215 |
+
|
216 |
input:checked + .toggle-slider {
|
217 |
background-color: #007ba7;
|
218 |
}
|
219 |
+
|
220 |
input:checked + .toggle-slider:before {
|
221 |
transform: translateX(22px);
|
222 |
}
|
|
|
228 |
padding: 8px 16px;
|
229 |
border: 1px solid #b0d3dc;
|
230 |
border-radius: 8px;
|
|
|
231 |
background: #f7fcff;
|
232 |
margin-right: 10px;
|
|
|
233 |
cursor: pointer;
|
234 |
+
transition: background-color 0.3s, color 0.3s, border-color 0.3s;
|
235 |
}
|
236 |
+
|
237 |
.gr-radio-group label:hover {
|
238 |
background-color: #eaf6f9;
|
239 |
border-color: #41a0c4;
|
240 |
color: #005b8c;
|
241 |
}
|
242 |
+
|
243 |
.gr-radio-group input[type="radio"] {
|
244 |
appearance: none;
|
245 |
width: 18px;
|
|
|
249 |
border-radius: 50%;
|
250 |
transition: background-color 0.3s, border-color 0.3s;
|
251 |
}
|
252 |
+
|
253 |
.gr-radio-group input[type="radio"]:checked {
|
254 |
background-color: #007ba7;
|
255 |
border-color: #007ba7;
|
|
|
259 |
.nav-tabs {
|
260 |
display: flex;
|
261 |
justify-content: space-around;
|
262 |
+
background-color: #fff;
|
263 |
padding: 12px;
|
264 |
border-bottom: 2px solid #e0f2f4;
|
265 |
border-radius: 8px;
|
266 |
margin-bottom: 20px;
|
267 |
}
|
268 |
+
|
269 |
.nav-tabs .nav-item {
|
270 |
font-size: 1.1em;
|
271 |
font-weight: 500;
|
272 |
+
color: #333;
|
273 |
padding: 10px 20px;
|
274 |
border: 2px solid transparent;
|
275 |
border-radius: 6px;
|
276 |
cursor: pointer;
|
277 |
transition: color 0.3s, background-color 0.3s, border-color 0.3s;
|
278 |
}
|
279 |
+
|
280 |
.nav-tabs .nav-item:hover, .nav-tabs .nav-item.active {
|
281 |
color: #007ba7;
|
282 |
background-color: #eaf6f9;
|
|
|
285 |
|
286 |
/* Output Text Styling */
|
287 |
#registration_output, #test_output, #billing_output {
|
288 |
+
color: #333;
|
289 |
background-color: #f0fbff;
|
290 |
padding: 15px;
|
291 |
border-radius: 8px;
|
|
|
295 |
box-shadow: 0 3px 8px rgba(0, 0, 0, 0.05);
|
296 |
transition: background-color 0.3s ease, border-color 0.3s ease;
|
297 |
}
|
298 |
+
|
299 |
#registration_output:hover, #test_output:hover, #billing_output:hover {
|
300 |
background-color: #e8f7fb;
|
301 |
border-color: #41a0c4;
|
302 |
}
|
303 |
|
304 |
+
/* Media Query for Mobile Responsiveness */
|
305 |
+
@media (max-width: 768px) {
|
306 |
+
.gradio-container {
|
307 |
+
padding: 20px;
|
308 |
+
margin: 20px;
|
309 |
+
}
|
310 |
+
|
311 |
+
#header {
|
312 |
+
font-size: 2em;
|
313 |
+
}
|
314 |
+
|
315 |
+
.nav-tabs .nav-item {
|
316 |
+
font-size: 1em;
|
317 |
+
padding: 8px 12px;
|
318 |
+
}
|
319 |
+
|
320 |
+
button {
|
321 |
+
padding: 10px 20px;
|
322 |
+
font-size: 0.9em;
|
323 |
+
}
|
324 |
+
}
|
325 |
+
|
326 |
"""
|
327 |
|
328 |
# Gradio Interface
|