neerajkalyank commited on
Commit
507ce13
1 Parent(s): 15e7bff

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +64 -79
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, #ff9a9e, #fad0c4, #fad0c4, #fcb69f);
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: #4A90E2;
98
- text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.3);
99
- background: linear-gradient(90deg, #ff7eb9, #ff65a3);
100
- -webkit-background-clip: text;
101
- color: transparent;
102
  }
103
  h2, h3, h4, h5, h6 {
104
- color: #F582AE;
105
- text-shadow: 2px 2px 6px rgba(255, 105, 180, 0.3);
106
  }
107
 
108
  /* Header Styling */
109
  #header {
110
- color: #FF6F61;
111
  text-align: center;
112
  font-weight: 700;
113
- font-size: 3em;
114
- margin-bottom: 25px;
115
- text-shadow: 3px 3px 8px rgba(0, 0, 0, 0.3);
116
- letter-spacing: 1.5px;
117
- transition: color 0.3s ease, transform 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: #FF4081;
124
- transform: scale(1.1) rotate(-2deg);
125
  }
126
 
127
  /* Container Style */
128
  .gradio-container {
129
- max-width: 900px;
130
  margin: 30px auto;
131
  padding: 40px;
132
- background: linear-gradient(135deg, #ffffff, #f9f9f9);
133
- border-radius: 20px;
134
- box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
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: 2px solid #FF6F61;
147
- border-radius: 12px;
148
- padding: 12px 14px;
149
- background: #fefefe;
150
  color: #333333;
151
- font-size: 16px;
152
- margin-bottom: 20px;
153
  transition: all 0.3s ease;
154
- box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.15);
155
  }
156
  input:focus, select:focus, textarea:focus {
157
- border-color: #F582AE;
158
- box-shadow: 0px 4px 10px rgba(245, 130, 174, 0.4);
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: 12px 25px;
168
- border: 2px solid #FF6F61;
169
- border-radius: 12px;
170
  transition: all 0.3s ease;
171
  cursor: pointer;
172
- color: #FF6F61;
173
- background: #ffe7e0;
174
- box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
175
- margin-right: 15px;
176
- transform: scale(1);
177
  }
178
  .gr-radio-group label:hover {
179
- background: #f8cfd0;
180
- color: #D84315;
181
- transform: scale(1.05);
182
  }
183
 
184
  /* Radio Button Styling */
185
  .gr-radio-group input[type="radio"] {
186
  appearance: none;
187
- width: 20px;
188
- height: 20px;
189
- border: 2px solid #FF6F61;
190
  border-radius: 50%;
191
- margin-right: 12px;
192
  transition: all 0.3s ease;
193
  position: relative;
194
  }
195
  .gr-radio-group input[type="radio"]:checked {
196
- background-color: #FF8A65;
197
- border-color: #FF8A65;
198
  }
199
  .gr-radio-group input[type="radio"]:checked::after {
200
  content: "✓";
201
  color: #ffffff;
202
- font-size: 14px;
203
  position: absolute;
204
  top: 1px;
205
  left: 1px;
206
- width: 18px;
207
- height: 18px;
208
  border-radius: 50%;
209
  display: flex;
210
  align-items: center;
211
  justify-content: center;
212
- background-color: #FF8A65;
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 #dddddd !important;
228
- padding: 14px !important;
229
- gap: 25px !important;
230
- border-radius: 10px;
231
  }
232
  .nav-tabs .nav-item {
233
  font-size: 1.2em !important;
234
- color: #555555 !important;
235
- padding: 12px 20px !important;
236
  cursor: pointer !important;
237
- font-weight: 600 !important;
238
  border: 2px solid transparent !important;
239
- border-radius: 12px !important;
240
  transition: color 0.3s, border-color 0.3s !important;
241
  }
242
  .nav-tabs .nav-item:hover {
243
- color: #42A5F5 !important;
244
- background-color: rgba(66, 165, 245, 0.15) !important;
245
  }
246
  .nav-tabs .nav-item.active {
247
- color: #1E88E5 !important;
248
- border-bottom: 4px solid #1E88E5 !important;
249
  font-weight: 700 !important;
250
- background-color: rgba(66, 165, 245, 0.2) !important;
251
- padding: 10px 18px !important;
252
  }
253
 
254
  /* Output Text Styling */
255
  #registration_output, #test_output, #billing_output {
256
  color: #333333 !important;
257
- background-color: rgba(255, 245, 238, 0.95) !important;
258
- padding: 18px;
259
- border-radius: 10px;
260
  font-weight: bold;
261
  text-align: left;
262
- box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
263
  transition: background-color 0.3s ease;
264
  }
265
  #registration_output:hover, #test_output:hover, #billing_output:hover {
266
- background-color: rgba(255, 200, 200, 0.95) !important;
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
  """