Spaces:
Sleeping
Sleeping
neerajkalyank
commited on
Commit
•
b385b87
1
Parent(s):
cc68155
Update app.py
Browse files
app.py
CHANGED
@@ -76,13 +76,13 @@ 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&display=swap');
|
80 |
|
81 |
/* General Page Style */
|
82 |
body {
|
83 |
font-family: 'Poppins', Arial, sans-serif;
|
84 |
-
background: #
|
85 |
-
color: #
|
86 |
margin: 0;
|
87 |
padding: 0;
|
88 |
display: flex;
|
@@ -95,125 +95,147 @@ body {
|
|
95 |
.gradio-container {
|
96 |
max-width: 900px;
|
97 |
width: 100%;
|
98 |
-
margin:
|
99 |
-
padding:
|
100 |
background-color: #ffffff;
|
101 |
-
border-radius:
|
102 |
border: 1px solid #d0e7f1;
|
103 |
-
box-shadow: 0
|
|
|
|
|
|
|
|
|
|
|
104 |
}
|
105 |
|
106 |
/* Header Styling */
|
107 |
#header {
|
108 |
color: #005b8c;
|
109 |
text-align: center;
|
110 |
-
font-weight:
|
111 |
-
font-size:
|
112 |
margin-bottom: 20px;
|
|
|
|
|
113 |
}
|
114 |
|
115 |
/* Headings */
|
116 |
-
h1, h2, h3 {
|
117 |
color: #005b8c;
|
118 |
-
font-weight:
|
119 |
-
margin: 10px 0;
|
120 |
}
|
121 |
|
122 |
/* Form Field Styles */
|
123 |
input, select, textarea {
|
124 |
width: 100%;
|
125 |
border: 1px solid #aac9d4;
|
126 |
-
border-radius:
|
127 |
-
padding:
|
128 |
-
font-size:
|
129 |
-
color: #
|
130 |
background: #f7fcff;
|
131 |
-
margin-bottom:
|
132 |
-
transition:
|
|
|
133 |
}
|
134 |
input:focus, select:focus, textarea:focus {
|
135 |
border-color: #41a0c4;
|
136 |
background: #eaf6f9;
|
|
|
137 |
outline: none;
|
138 |
}
|
139 |
|
140 |
/* Button Styles */
|
141 |
button {
|
142 |
-
|
143 |
-
|
144 |
-
font-
|
|
|
145 |
border: none;
|
146 |
-
border-radius:
|
147 |
color: #ffffff;
|
148 |
background-color: #007ba7;
|
149 |
cursor: pointer;
|
150 |
-
transition: background-color 0.2s ease;
|
|
|
151 |
}
|
152 |
button:hover {
|
153 |
background-color: #005f80;
|
|
|
|
|
154 |
}
|
155 |
-
|
156 |
-
|
157 |
-
.checkbox-container {
|
158 |
-
display: flex;
|
159 |
-
flex-wrap: wrap;
|
160 |
-
gap: 10px;
|
161 |
-
margin-bottom: 20px;
|
162 |
}
|
163 |
|
164 |
-
/*
|
165 |
-
.
|
166 |
-
|
167 |
-
|
168 |
-
|
169 |
-
|
170 |
-
|
171 |
-
background-color: #f7fcff;
|
172 |
-
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
|
173 |
-
min-width: 150px;
|
174 |
-
justify-content: center;
|
175 |
}
|
176 |
-
|
177 |
-
|
178 |
-
|
179 |
-
|
180 |
-
transform: scale(1.2); /* Larger checkbox */
|
181 |
-
accent-color: #007ba7;
|
182 |
}
|
183 |
-
|
184 |
-
|
185 |
-
|
186 |
-
|
187 |
-
|
188 |
-
|
189 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
190 |
}
|
191 |
|
192 |
/* Radio Button Group */
|
193 |
.gr-radio-group label {
|
194 |
display: inline-flex;
|
195 |
align-items: center;
|
196 |
-
padding:
|
197 |
border: 1px solid #b0d3dc;
|
198 |
-
border-radius:
|
199 |
-
color: #
|
200 |
background: #f7fcff;
|
201 |
-
margin-right:
|
202 |
-
transition: background-color 0.
|
203 |
cursor: pointer;
|
204 |
}
|
205 |
.gr-radio-group label:hover {
|
206 |
background-color: #eaf6f9;
|
207 |
border-color: #41a0c4;
|
|
|
208 |
}
|
209 |
.gr-radio-group input[type="radio"] {
|
210 |
appearance: none;
|
211 |
-
width:
|
212 |
-
height:
|
213 |
-
margin-right:
|
214 |
border: 2px solid #007ba7;
|
215 |
border-radius: 50%;
|
216 |
-
transition: background-color 0.
|
217 |
}
|
218 |
.gr-radio-group input[type="radio"]:checked {
|
219 |
background-color: #007ba7;
|
@@ -225,36 +247,38 @@ button:hover {
|
|
225 |
display: flex;
|
226 |
justify-content: space-around;
|
227 |
background-color: #ffffff;
|
228 |
-
padding:
|
229 |
-
border-bottom:
|
230 |
-
border-radius:
|
231 |
-
margin-bottom:
|
232 |
}
|
233 |
.nav-tabs .nav-item {
|
234 |
-
font-size:
|
235 |
font-weight: 500;
|
236 |
-
color: #
|
237 |
-
padding:
|
|
|
238 |
border-radius: 6px;
|
239 |
cursor: pointer;
|
240 |
-
transition: color 0.
|
241 |
}
|
242 |
.nav-tabs .nav-item:hover, .nav-tabs .nav-item.active {
|
243 |
color: #007ba7;
|
244 |
background-color: #eaf6f9;
|
|
|
245 |
}
|
246 |
|
247 |
/* Output Text Styling */
|
248 |
#registration_output, #test_output, #billing_output {
|
249 |
-
color: #
|
250 |
background-color: #f0fbff;
|
251 |
-
padding:
|
252 |
-
border-radius:
|
253 |
-
font-weight:
|
254 |
text-align: left;
|
255 |
border: 1px solid #d0e7f1;
|
256 |
-
box-shadow: 0
|
257 |
-
transition: background-color 0.
|
258 |
}
|
259 |
#registration_output:hover, #test_output:hover, #billing_output:hover {
|
260 |
background-color: #e8f7fb;
|
|
|
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;
|
88 |
display: flex;
|
|
|
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 |
+
/* Toggle Switch (Checkbox Alternative) */
|
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;
|
187 |
+
top: 0;
|
188 |
+
left: 0;
|
189 |
+
right: 0;
|
190 |
+
bottom: 0;
|
191 |
+
background-color: #c2d6dc;
|
192 |
+
transition: 0.4s;
|
193 |
+
border-radius: 34px;
|
194 |
+
}
|
195 |
+
.toggle-slider:before {
|
196 |
+
position: absolute;
|
197 |
+
content: "";
|
198 |
+
height: 22px;
|
199 |
+
width: 22px;
|
200 |
+
left: 3px;
|
201 |
+
bottom: 3px;
|
202 |
+
background-color: #ffffff;
|
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 |
}
|
212 |
|
213 |
/* Radio Button Group */
|
214 |
.gr-radio-group label {
|
215 |
display: inline-flex;
|
216 |
align-items: center;
|
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;
|
234 |
+
height: 18px;
|
235 |
+
margin-right: 8px;
|
236 |
border: 2px solid #007ba7;
|
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;
|
|
|
247 |
display: flex;
|
248 |
justify-content: space-around;
|
249 |
background-color: #ffffff;
|
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: #333333;
|
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;
|
268 |
+
border-color: #007ba7;
|
269 |
}
|
270 |
|
271 |
/* Output Text Styling */
|
272 |
#registration_output, #test_output, #billing_output {
|
273 |
+
color: #333333;
|
274 |
background-color: #f0fbff;
|
275 |
+
padding: 15px;
|
276 |
+
border-radius: 8px;
|
277 |
+
font-weight: 600;
|
278 |
text-align: left;
|
279 |
border: 1px solid #d0e7f1;
|
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;
|