Spaces:
Sleeping
Sleeping
neerajkalyank
commited on
Commit
•
507ce13
1
Parent(s):
15e7bff
Update app.py
Browse files
app.py
CHANGED
@@ -81,7 +81,7 @@ custom_css = """
|
|
81 |
/* General Page Style */
|
82 |
body {
|
83 |
font-family: 'Poppins', Arial, sans-serif;
|
84 |
-
background: linear-gradient(135deg, #
|
85 |
color: #333333;
|
86 |
margin: 0;
|
87 |
padding: 0;
|
@@ -89,74 +89,61 @@ body {
|
|
89 |
justify-content: center;
|
90 |
align-items: center;
|
91 |
min-height: 100vh;
|
92 |
-
overflow: hidden;
|
93 |
}
|
94 |
|
95 |
/* Heading Colors */
|
96 |
h1 {
|
97 |
-
color: #
|
98 |
-
text-shadow:
|
99 |
-
background: linear-gradient(90deg, #ff7eb9, #ff65a3);
|
100 |
-
-webkit-background-clip: text;
|
101 |
-
color: transparent;
|
102 |
}
|
103 |
h2, h3, h4, h5, h6 {
|
104 |
-
color: #
|
105 |
-
text-shadow:
|
106 |
}
|
107 |
|
108 |
/* Header Styling */
|
109 |
#header {
|
110 |
-
color: #
|
111 |
text-align: center;
|
112 |
font-weight: 700;
|
113 |
-
font-size:
|
114 |
-
margin-bottom:
|
115 |
-
text-shadow:
|
116 |
-
letter-spacing:
|
117 |
-
transition: color 0.3s ease
|
118 |
-
background: linear-gradient(90deg, #ff9a9e, #fad0c4, #fcb69f);
|
119 |
-
-webkit-background-clip: text;
|
120 |
-
color: transparent;
|
121 |
}
|
122 |
#header:hover {
|
123 |
-
color: #
|
124 |
-
transform: scale(1.
|
125 |
}
|
126 |
|
127 |
/* Container Style */
|
128 |
.gradio-container {
|
129 |
-
max-width:
|
130 |
margin: 30px auto;
|
131 |
padding: 40px;
|
132 |
-
background: linear-gradient(135deg, #ffffff, #
|
133 |
-
border-radius:
|
134 |
-
box-shadow: 0
|
135 |
color: #333333;
|
136 |
-
transform: scale(1);
|
137 |
-
transition: transform 0.3s ease;
|
138 |
-
}
|
139 |
-
.gradio-container:hover {
|
140 |
-
transform: scale(1.02);
|
141 |
}
|
142 |
|
143 |
/* Form Field Styles */
|
144 |
input, select, textarea {
|
145 |
max-width: 700px;
|
146 |
-
border:
|
147 |
-
border-radius:
|
148 |
-
padding: 12px
|
149 |
-
background: #
|
150 |
color: #333333;
|
151 |
-
font-size:
|
152 |
-
margin-bottom:
|
153 |
transition: all 0.3s ease;
|
154 |
-
box-shadow: 0px
|
155 |
}
|
156 |
input:focus, select:focus, textarea:focus {
|
157 |
-
border-color: #
|
158 |
-
box-shadow: 0px
|
159 |
-
background: #fff4f4;
|
160 |
}
|
161 |
|
162 |
/* Radio Button Group Styling */
|
@@ -164,52 +151,50 @@ input:focus, select:focus, textarea:focus {
|
|
164 |
display: flex;
|
165 |
align-items: center;
|
166 |
justify-content: center;
|
167 |
-
padding:
|
168 |
-
border:
|
169 |
-
border-radius:
|
170 |
transition: all 0.3s ease;
|
171 |
cursor: pointer;
|
172 |
-
color: #
|
173 |
-
background: #
|
174 |
-
box-shadow: 0px
|
175 |
-
margin-right:
|
176 |
-
transform: scale(1);
|
177 |
}
|
178 |
.gr-radio-group label:hover {
|
179 |
-
background: #
|
180 |
-
color: #
|
181 |
-
transform: scale(1.05);
|
182 |
}
|
183 |
|
184 |
/* Radio Button Styling */
|
185 |
.gr-radio-group input[type="radio"] {
|
186 |
appearance: none;
|
187 |
-
width:
|
188 |
-
height:
|
189 |
-
border: 2px solid #
|
190 |
border-radius: 50%;
|
191 |
-
margin-right:
|
192 |
transition: all 0.3s ease;
|
193 |
position: relative;
|
194 |
}
|
195 |
.gr-radio-group input[type="radio"]:checked {
|
196 |
-
background-color: #
|
197 |
-
border-color: #
|
198 |
}
|
199 |
.gr-radio-group input[type="radio"]:checked::after {
|
200 |
content: "✓";
|
201 |
color: #ffffff;
|
202 |
-
font-size:
|
203 |
position: absolute;
|
204 |
top: 1px;
|
205 |
left: 1px;
|
206 |
-
width:
|
207 |
-
height:
|
208 |
border-radius: 50%;
|
209 |
display: flex;
|
210 |
align-items: center;
|
211 |
justify-content: center;
|
212 |
-
background-color: #
|
213 |
}
|
214 |
|
215 |
/* Adjust label for responsive alignment */
|
@@ -224,46 +209,46 @@ input:focus, select:focus, textarea:focus {
|
|
224 |
display: flex;
|
225 |
justify-content: space-around;
|
226 |
background-color: #ffffff !important;
|
227 |
-
border-bottom: 1px solid #
|
228 |
-
padding:
|
229 |
-
gap:
|
230 |
-
border-radius:
|
231 |
}
|
232 |
.nav-tabs .nav-item {
|
233 |
font-size: 1.2em !important;
|
234 |
-
color: #
|
235 |
-
padding:
|
236 |
cursor: pointer !important;
|
237 |
-
font-weight:
|
238 |
border: 2px solid transparent !important;
|
239 |
-
border-radius:
|
240 |
transition: color 0.3s, border-color 0.3s !important;
|
241 |
}
|
242 |
.nav-tabs .nav-item:hover {
|
243 |
-
color: #
|
244 |
-
background-color: rgba(
|
245 |
}
|
246 |
.nav-tabs .nav-item.active {
|
247 |
-
color: #
|
248 |
-
border-bottom:
|
249 |
font-weight: 700 !important;
|
250 |
-
background-color: rgba(
|
251 |
-
padding:
|
252 |
}
|
253 |
|
254 |
/* Output Text Styling */
|
255 |
#registration_output, #test_output, #billing_output {
|
256 |
color: #333333 !important;
|
257 |
-
background-color: rgba(
|
258 |
-
padding:
|
259 |
-
border-radius:
|
260 |
font-weight: bold;
|
261 |
text-align: left;
|
262 |
-
box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.
|
263 |
transition: background-color 0.3s ease;
|
264 |
}
|
265 |
#registration_output:hover, #test_output:hover, #billing_output:hover {
|
266 |
-
background-color: rgba(
|
267 |
}
|
268 |
|
269 |
"""
|
|
|
81 |
/* General Page Style */
|
82 |
body {
|
83 |
font-family: 'Poppins', Arial, sans-serif;
|
84 |
+
background: linear-gradient(135deg, #e0f7fa, #f1f8e9);
|
85 |
color: #333333;
|
86 |
margin: 0;
|
87 |
padding: 0;
|
|
|
89 |
justify-content: center;
|
90 |
align-items: center;
|
91 |
min-height: 100vh;
|
|
|
92 |
}
|
93 |
|
94 |
/* Heading Colors */
|
95 |
h1 {
|
96 |
+
color: #00796b; /* Deep teal for main headings */
|
97 |
+
text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.15);
|
|
|
|
|
|
|
98 |
}
|
99 |
h2, h3, h4, h5, h6 {
|
100 |
+
color: #00838f; /* Soft blue-green for subheadings */
|
101 |
+
text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.15);
|
102 |
}
|
103 |
|
104 |
/* Header Styling */
|
105 |
#header {
|
106 |
+
color: #004d40;
|
107 |
text-align: center;
|
108 |
font-weight: 700;
|
109 |
+
font-size: 2.5em;
|
110 |
+
margin-bottom: 20px;
|
111 |
+
text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.2);
|
112 |
+
letter-spacing: 1px;
|
113 |
+
transition: color 0.3s ease;
|
|
|
|
|
|
|
114 |
}
|
115 |
#header:hover {
|
116 |
+
color: #00695c;
|
117 |
+
transform: scale(1.05);
|
118 |
}
|
119 |
|
120 |
/* Container Style */
|
121 |
.gradio-container {
|
122 |
+
max-width: 850px;
|
123 |
margin: 30px auto;
|
124 |
padding: 40px;
|
125 |
+
background: linear-gradient(135deg, #ffffff, #e0f2f1);
|
126 |
+
border-radius: 12px;
|
127 |
+
box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
|
128 |
color: #333333;
|
|
|
|
|
|
|
|
|
|
|
129 |
}
|
130 |
|
131 |
/* Form Field Styles */
|
132 |
input, select, textarea {
|
133 |
max-width: 700px;
|
134 |
+
border: 1px solid #004d40;
|
135 |
+
border-radius: 8px;
|
136 |
+
padding: 10px 12px;
|
137 |
+
background: #fafafa;
|
138 |
color: #333333;
|
139 |
+
font-size: 15px;
|
140 |
+
margin-bottom: 15px;
|
141 |
transition: all 0.3s ease;
|
142 |
+
box-shadow: 0px 3px 5px rgba(0, 0, 0, 0.1);
|
143 |
}
|
144 |
input:focus, select:focus, textarea:focus {
|
145 |
+
border-color: #26a69a;
|
146 |
+
box-shadow: 0px 3px 8px rgba(0, 0, 0, 0.2);
|
|
|
147 |
}
|
148 |
|
149 |
/* Radio Button Group Styling */
|
|
|
151 |
display: flex;
|
152 |
align-items: center;
|
153 |
justify-content: center;
|
154 |
+
padding: 10px 20px;
|
155 |
+
border: 1px solid #00838f;
|
156 |
+
border-radius: 8px;
|
157 |
transition: all 0.3s ease;
|
158 |
cursor: pointer;
|
159 |
+
color: #004d40;
|
160 |
+
background: #e0f7fa;
|
161 |
+
box-shadow: 0px 3px 5px rgba(0, 0, 0, 0.1);
|
162 |
+
margin-right: 10px;
|
|
|
163 |
}
|
164 |
.gr-radio-group label:hover {
|
165 |
+
background: #b2ebf2;
|
166 |
+
color: #004d40;
|
|
|
167 |
}
|
168 |
|
169 |
/* Radio Button Styling */
|
170 |
.gr-radio-group input[type="radio"] {
|
171 |
appearance: none;
|
172 |
+
width: 18px;
|
173 |
+
height: 18px;
|
174 |
+
border: 2px solid #004d40;
|
175 |
border-radius: 50%;
|
176 |
+
margin-right: 8px;
|
177 |
transition: all 0.3s ease;
|
178 |
position: relative;
|
179 |
}
|
180 |
.gr-radio-group input[type="radio"]:checked {
|
181 |
+
background-color: #26a69a;
|
182 |
+
border-color: #26a69a;
|
183 |
}
|
184 |
.gr-radio-group input[type="radio"]:checked::after {
|
185 |
content: "✓";
|
186 |
color: #ffffff;
|
187 |
+
font-size: 12px;
|
188 |
position: absolute;
|
189 |
top: 1px;
|
190 |
left: 1px;
|
191 |
+
width: 16px;
|
192 |
+
height: 16px;
|
193 |
border-radius: 50%;
|
194 |
display: flex;
|
195 |
align-items: center;
|
196 |
justify-content: center;
|
197 |
+
background-color: #26a69a;
|
198 |
}
|
199 |
|
200 |
/* Adjust label for responsive alignment */
|
|
|
209 |
display: flex;
|
210 |
justify-content: space-around;
|
211 |
background-color: #ffffff !important;
|
212 |
+
border-bottom: 1px solid #e0e0e0 !important;
|
213 |
+
padding: 12px !important;
|
214 |
+
gap: 20px !important;
|
215 |
+
border-radius: 8px;
|
216 |
}
|
217 |
.nav-tabs .nav-item {
|
218 |
font-size: 1.2em !important;
|
219 |
+
color: #333333 !important; /* Soft gray for inactive tabs */
|
220 |
+
padding: 10px 18px !important;
|
221 |
cursor: pointer !important;
|
222 |
+
font-weight: 500 !important;
|
223 |
border: 2px solid transparent !important;
|
224 |
+
border-radius: 8px !important;
|
225 |
transition: color 0.3s, border-color 0.3s !important;
|
226 |
}
|
227 |
.nav-tabs .nav-item:hover {
|
228 |
+
color: #26a69a !important;
|
229 |
+
background-color: rgba(38, 166, 154, 0.1) !important;
|
230 |
}
|
231 |
.nav-tabs .nav-item.active {
|
232 |
+
color: #00796b !important;
|
233 |
+
border-bottom: 3px solid #00796b !important;
|
234 |
font-weight: 700 !important;
|
235 |
+
background-color: rgba(38, 166, 154, 0.1) !important;
|
236 |
+
padding: 8px 16px !important;
|
237 |
}
|
238 |
|
239 |
/* Output Text Styling */
|
240 |
#registration_output, #test_output, #billing_output {
|
241 |
color: #333333 !important;
|
242 |
+
background-color: rgba(240, 255, 255, 0.9) !important;
|
243 |
+
padding: 15px;
|
244 |
+
border-radius: 7px;
|
245 |
font-weight: bold;
|
246 |
text-align: left;
|
247 |
+
box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.05);
|
248 |
transition: background-color 0.3s ease;
|
249 |
}
|
250 |
#registration_output:hover, #test_output:hover, #billing_output:hover {
|
251 |
+
background-color: rgba(230, 245, 245, 0.95) !important;
|
252 |
}
|
253 |
|
254 |
"""
|