neerajkalyank commited on
Commit
ee777f4
1 Parent(s): f26591a

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +31 -37
app.py CHANGED
@@ -158,46 +158,40 @@ button:hover {
158
  background-color: #005f80;
159
  }
160
 
161
- /* Toggle Switch (Checkbox Alternative) */
162
- .toggle-switch {
163
- position: relative;
164
- display: inline-block;
165
- width: 40px;
166
- height: 20px;
167
- margin: 5px;
168
- }
169
- .toggle-switch input {
170
- opacity: 0;
171
- width: 0;
172
- height: 0;
173
- }
174
- .toggle-slider {
175
- position: absolute;
176
- cursor: pointer;
177
- top: 0;
178
- left: 0;
179
- right: 0;
180
- bottom: 0;
181
- background-color: #c2d6dc;
182
- transition: 0.3s;
183
- border-radius: 20px;
184
  }
185
- .toggle-slider:before {
186
- position: absolute;
187
- content: "";
188
- height: 16px;
189
- width: 16px;
190
- left: 2px;
191
- bottom: 2px;
192
- background-color: #ffffff;
193
- transition: 0.3s;
194
- border-radius: 50%;
 
 
195
  }
196
- input:checked + .toggle-slider {
197
- background-color: #007ba7;
 
 
 
 
198
  }
199
- input:checked + .toggle-slider:before {
200
- transform: translateX(18px);
 
 
 
 
 
201
  }
202
 
203
  /* Radio Button Group */
 
158
  background-color: #005f80;
159
  }
160
 
161
+ /* Container for All Checkbox Groups */
162
+ .checkbox-container {
163
+ display: flex;
164
+ flex-wrap: wrap;
165
+ gap: 12px; /* Space between each checkbox group */
166
+ margin-bottom: 20px;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
167
  }
168
+
169
+ /* Individual Checkbox Group */
170
+ .checkbox-group {
171
+ display: flex;
172
+ align-items: center;
173
+ padding: 8px 12px;
174
+ border: 1px solid #d0e7f1;
175
+ border-radius: 8px;
176
+ background-color: #f7fcff;
177
+ box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
178
+ min-width: 140px; /* Minimum width to ensure label fits */
179
+ justify-content: center;
180
  }
181
+
182
+ /* Styling for Checkbox */
183
+ .checkbox-group input[type="checkbox"] {
184
+ margin-right: 8px; /* Space between checkbox and label */
185
+ transform: scale(1.2); /* Slightly larger checkbox */
186
+ accent-color: #007ba7; /* Color for checkbox when checked */
187
  }
188
+
189
+ /* Styling for Checkbox Label */
190
+ .checkbox-group label {
191
+ font-size: 0.95em;
192
+ color: #333333;
193
+ white-space: nowrap; /* Prevents label text from wrapping */
194
+ display: inline-block;
195
  }
196
 
197
  /* Radio Button Group */