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

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +27 -15
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, #f3faff, #e0f4f9);
85
  color: #333333;
86
  margin: 0;
87
  padding: 0;
@@ -89,6 +89,7 @@ body {
89
  justify-content: center;
90
  align-items: center;
91
  min-height: 100vh;
 
92
  }
93
 
94
  /* Main Container */
@@ -98,14 +99,14 @@ body {
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 */
@@ -113,23 +114,29 @@ body {
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;
@@ -141,8 +148,9 @@ input, select, textarea {
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 */
@@ -152,7 +160,7 @@ button {
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;
@@ -162,7 +170,7 @@ button {
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);
@@ -214,7 +222,7 @@ input:checked + .toggle-slider:before {
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;
@@ -251,6 +259,7 @@ input:checked + .toggle-slider:before {
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;
@@ -266,23 +275,26 @@ input:checked + .toggle-slider:before {
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;
285
  border-color: #41a0c4;
 
286
  }
287
 
288
  """
 
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;
 
89
  justify-content: center;
90
  align-items: center;
91
  min-height: 100vh;
92
+ transition: background-color 0.5s ease;
93
  }
94
 
95
  /* Main Container */
 
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 */
 
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;
 
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 */
 
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;
 
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);
 
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;
 
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;
 
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
  """