neerajkalyank commited on
Commit
2a98323
1 Parent(s): afde41b

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +56 -43
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, #e0f7fa, #f1f8e9);
85
  color: #333333;
86
  margin: 0;
87
  padding: 0;
@@ -89,7 +89,6 @@ body {
89
  justify-content: center;
90
  align-items: center;
91
  min-height: 100vh;
92
- overflow: hidden;
93
  }
94
 
95
  /* Main Container */
@@ -97,58 +96,70 @@ body {
97
  max-width: 900px;
98
  margin: 30px auto;
99
  padding: 40px;
100
- background: linear-gradient(135deg, #ffffff, #e8f5e9);
101
- border-radius: 15px;
102
- box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
 
103
  color: #333333;
104
- transition: transform 0.3s ease;
105
  }
106
  .gradio-container:hover {
107
- transform: scale(1.02);
 
108
  }
109
 
110
  /* Header Styling */
111
  #header {
112
- color: #004d40;
113
  text-align: center;
114
  font-weight: 700;
115
- font-size: 2.5em;
116
  margin-bottom: 25px;
117
- text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.2);
118
  letter-spacing: 1px;
119
- transition: color 0.3s ease;
120
  }
121
  #header:hover {
122
- color: #00796b;
 
123
  }
124
 
125
  /* Heading Colors */
126
  h1 {
127
- color: #00796b; /* Deep teal for main headings */
128
  text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.15);
129
  }
130
  h2, h3, h4, h5, h6 {
131
- color: #00838f; /* Soft blue-green for subheadings */
132
- text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.15);
 
 
 
 
 
 
 
 
 
133
  }
134
 
135
  /* Form Field Styles */
136
  input, select, textarea {
137
  width: 100%;
138
- border: 1px solid #004d40;
139
  border-radius: 8px;
140
  padding: 12px 14px;
141
  background: #fafafa;
142
  color: #333333;
143
  font-size: 16px;
144
- margin-bottom: 15px;
145
  transition: all 0.3s ease;
146
- box-shadow: 0px 3px 6px rgba(0, 0, 0, 0.1);
147
  }
148
  input:focus, select:focus, textarea:focus {
149
  border-color: #26a69a;
150
- box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.2);
151
- background: #f1f8e9;
152
  }
153
 
154
  /* Button Styles */
@@ -162,10 +173,11 @@ button {
162
  color: #ffffff;
163
  cursor: pointer;
164
  box-shadow: 0px 4px 12px rgba(0, 0, 0, 0.1);
165
- transition: background-color 0.3s ease, transform 0.3s ease;
166
  }
167
  button:hover {
168
  background-color: #004d40;
 
169
  transform: translateY(-2px);
170
  }
171
 
@@ -231,47 +243,48 @@ button:hover {
231
  .nav-tabs {
232
  display: flex;
233
  justify-content: space-around;
234
- background-color: #ffffff !important;
235
- border-bottom: 1px solid #e0e0e0 !important;
236
- padding: 12px !important;
237
- gap: 20px !important;
238
  border-radius: 8px;
239
  }
240
  .nav-tabs .nav-item {
241
- font-size: 1.2em !important;
242
- color: #333333 !important;
243
- padding: 10px 18px !important;
244
- cursor: pointer !important;
245
- font-weight: 500 !important;
246
- border: 2px solid transparent !important;
247
- border-radius: 8px !important;
248
- transition: color 0.3s, border-color 0.3s !important;
249
  }
250
  .nav-tabs .nav-item:hover {
251
- color: #26a69a !important;
252
- background-color: rgba(38, 166, 154, 0.1) !important;
253
  }
254
  .nav-tabs .nav-item.active {
255
- color: #00796b !important;
256
- border-bottom: 3px solid #00796b !important;
257
- font-weight: 700 !important;
258
- background-color: rgba(38, 166, 154, 0.1) !important;
259
- padding: 8px 16px !important;
260
  }
261
 
262
  /* Output Text Styling */
263
  #registration_output, #test_output, #billing_output {
264
- color: #333333 !important;
265
- background-color: rgba(240, 255, 255, 0.9) !important;
266
  padding: 15px;
267
  border-radius: 7px;
268
  font-weight: bold;
269
  text-align: left;
 
270
  box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.05);
271
  transition: background-color 0.3s ease;
272
  }
273
  #registration_output:hover, #test_output:hover, #billing_output:hover {
274
- background-color: rgba(230, 245, 245, 0.95) !important;
275
  }
276
 
277
  """
 
81
  /* General Page Style */
82
  body {
83
  font-family: 'Poppins', Arial, sans-serif;
84
+ background: linear-gradient(135deg, #f0f7f4, #e8f0fe); /* Calm medical background */
85
  color: #333333;
86
  margin: 0;
87
  padding: 0;
 
89
  justify-content: center;
90
  align-items: center;
91
  min-height: 100vh;
 
92
  }
93
 
94
  /* Main Container */
 
96
  max-width: 900px;
97
  margin: 30px auto;
98
  padding: 40px;
99
+ background: #ffffff;
100
+ border: 1px solid #d1e2e8;
101
+ border-radius: 12px;
102
+ box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
103
  color: #333333;
104
+ transition: transform 0.3s ease, box-shadow 0.3s ease;
105
  }
106
  .gradio-container:hover {
107
+ transform: scale(1.01);
108
+ box-shadow: 0 10px 28px rgba(0, 0, 0, 0.15);
109
  }
110
 
111
  /* Header Styling */
112
  #header {
113
+ color: #00695c; /* Deep teal for medical tone */
114
  text-align: center;
115
  font-weight: 700;
116
+ font-size: 2.8em;
117
  margin-bottom: 25px;
118
+ text-shadow: 1px 1px 6px rgba(0, 0, 0, 0.2);
119
  letter-spacing: 1px;
120
+ transition: color 0.3s ease, transform 0.3s ease;
121
  }
122
  #header:hover {
123
+ color: #004d40;
124
+ transform: scale(1.05);
125
  }
126
 
127
  /* Heading Colors */
128
  h1 {
129
+ color: #00695c; /* Dark teal for main headings */
130
  text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.15);
131
  }
132
  h2, h3, h4, h5, h6 {
133
+ color: #00796b; /* Softer blue-green for subheadings */
134
+ text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.1);
135
+ }
136
+
137
+ /* Section Title Styling */
138
+ .section-title {
139
+ font-size: 1.5em;
140
+ color: #00796b;
141
+ margin-bottom: 20px;
142
+ border-bottom: 2px solid #80cbc4;
143
+ padding-bottom: 8px;
144
  }
145
 
146
  /* Form Field Styles */
147
  input, select, textarea {
148
  width: 100%;
149
+ border: 1px solid #b0bec5;
150
  border-radius: 8px;
151
  padding: 12px 14px;
152
  background: #fafafa;
153
  color: #333333;
154
  font-size: 16px;
155
+ margin-bottom: 20px;
156
  transition: all 0.3s ease;
157
+ box-shadow: inset 0px 1px 3px rgba(0, 0, 0, 0.05);
158
  }
159
  input:focus, select:focus, textarea:focus {
160
  border-color: #26a69a;
161
+ background: #f0f7f4;
162
+ box-shadow: 0px 3px 6px rgba(38, 166, 154, 0.15);
163
  }
164
 
165
  /* Button Styles */
 
173
  color: #ffffff;
174
  cursor: pointer;
175
  box-shadow: 0px 4px 12px rgba(0, 0, 0, 0.1);
176
+ transition: background-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
177
  }
178
  button:hover {
179
  background-color: #004d40;
180
+ box-shadow: 0px 6px 14px rgba(0, 0, 0, 0.15);
181
  transform: translateY(-2px);
182
  }
183
 
 
243
  .nav-tabs {
244
  display: flex;
245
  justify-content: space-around;
246
+ background-color: #ffffff;
247
+ border-bottom: 1px solid #e0e0e0;
248
+ padding: 12px;
249
+ gap: 20px;
250
  border-radius: 8px;
251
  }
252
  .nav-tabs .nav-item {
253
+ font-size: 1.2em;
254
+ color: #333333;
255
+ padding: 10px 18px;
256
+ cursor: pointer;
257
+ font-weight: 500;
258
+ border: 2px solid transparent;
259
+ border-radius: 8px;
260
+ transition: color 0.3s, background-color 0.3s;
261
  }
262
  .nav-tabs .nav-item:hover {
263
+ color: #26a69a;
264
+ background-color: rgba(38, 166, 154, 0.1);
265
  }
266
  .nav-tabs .nav-item.active {
267
+ color: #00796b;
268
+ border-bottom: 3px solid #00796b;
269
+ font-weight: 700;
270
+ background-color: rgba(38, 166, 154, 0.1);
271
+ padding: 8px 16px;
272
  }
273
 
274
  /* Output Text Styling */
275
  #registration_output, #test_output, #billing_output {
276
+ color: #333333;
277
+ background-color: rgba(240, 255, 255, 0.9);
278
  padding: 15px;
279
  border-radius: 7px;
280
  font-weight: bold;
281
  text-align: left;
282
+ border: 1px solid #d1e2e8;
283
  box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.05);
284
  transition: background-color 0.3s ease;
285
  }
286
  #registration_output:hover, #test_output:hover, #billing_output:hover {
287
+ background-color: rgba(230, 245, 245, 0.95);
288
  }
289
 
290
  """