File size: 7,675 Bytes
0548377
 
 
 
 
 
 
32d7e18
0548377
 
 
 
 
 
 
 
 
 
 
5ed971b
 
 
 
 
 
 
 
 
 
 
 
 
0548377
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
fe3241a
 
 
 
 
 
 
 
 
0548377
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
d87cc9d
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
/* Custom styles for the survey builder */
#question-types,
#survey-area {
    border: 1px solid #dee2e6;
    border-radius: 0.25rem;
    padding: 1rem;
    margin-bottom: 1rem;
    
}

#question-types {
    background-color: #f8f9fa;
    position: sticky;
    top: 10px;
    /* Adjust this value to control the sticky position from the top */
    z-index: 100;
    /* Ensure it stays above other content if needed */
}

#upload-btn-hf {
    background-color: orange; /* Set background color to orange */
    color: white; /* Optionally, change text color for better contrast */
    border-color: orange; /* Set the border color to orange */
    outline: none; /* Remove default outline */
}

#upload-btn-hf:focus {
    outline: 2px solid orange; /* Add custom outline on focus */
    box-shadow: 0 0 5px orange; /* Optional: Add a glowing effect on focus */
}


.Choice-question {
    background-color: #ffffff;
    border: 1px solid #ced4da;
    border-radius: 0.25rem;
    padding: 0.75rem;
    margin-bottom: 0.5rem;
    cursor: move;
    display: flex;
    align-items: center; /* Aligns items vertically within the container */
    text-align: left; /* Ensures the text inside is left-aligned */
    position: relative; /* For proper tooltip positioning */
}

.Choice-question span {
    flex-grow: 1; /* Ensures the text takes available space */
    text-align: left; /* Explicitly aligns the text to the left */
}

.info-icon {
    display: inline-block;
    width: 18px;
    height: 18px;
    border: 1px solid #000;
    border-radius: 50%;
    text-align: center;
    font-size: 14px;
    font-weight: bold;
    line-height: 18px;
    cursor: pointer;
    position: relative;
    margin-left: auto; /* Pushes the icon to the right */
}

.info-icon:hover::after {
    content: attr(data-tooltip);
    position: absolute;
    top: -30px;
    left: 100%; /* Position tooltip to the right of the icon */
    margin-left: 10px; /* Small gap from the icon */
    background: #333;
    color: #fff;
    padding: 5px 10px;
    border-radius: 5px;
    white-space: nowrap;
    font-size: 12px;
    z-index: 10;
}

.modal-backdrop {
    display: none;
}

.question {
    background-color: #ffffff;
    border: 1px solid #ced4da;
    border-radius: 0.25rem;
    padding: 0.75rem;
    margin-bottom: 0.5rem;
}

.Choice-question.dragging {
    opacity: 0.5;
}

.question.dragging {
    opacity: 0.5;
}


.question input {
    margin-bottom: 10px;
    width: 100%;
}

.Choice-question::before {
    content: '⋮';
    margin-right: 0.5rem;
    color: #6c757d;
}

.Choice-question input {
    margin-bottom: 10px;
    width: 100%;
}

.input-group {
    display: flex;
    align-items: center;
}

.input-group .form-control {
    margin-right: 10px;
}

.input-group2 {
    display: inline-flex;
    align-items: center;
    width: 200px;
    /* Set a specific width for the label input */
    margin-right: 10px;
    /* Space between input and checkbox */
    float: left;
    border: none;

}

.input-group2 .form-control-sm {
    margin-right: 0.5rem;
    /* Adjusts spacing between input and delete button */
    margin-top: 10px;
}

.input-group2 .btn {
    height: auto;
    padding: 0.25rem 0.5rem;
    /* Small button size, similar to Bootstrap's btn-sm */
}

/* Styles for delete buttons */
.btn-danger.btn-sm {
    float: right;
    /* Positioning for question delete button */
}

.btn-danger.btn-sm {
    padding: 0.2rem 0.5rem;
    /* Padding for option delete button */
}

/* Ensure the main content area takes up remaining vertical space */
main {
    display: flex;
    flex-direction: column;
}

#survey-area {
    flex-grow: 1;
    min-height: 500px;
    /* Increased for better visibility */
    background-color: #ffffff;
    padding-bottom: 100px;
    /* Adjust this value for the height of the space you want */
}

/* Responsive adjustments */
@media (max-width: 768px) {
    #question-types {
        margin-bottom: 1rem;
    }
}

.form-check {
    display: flex;
    /* Use flexbox for better alignment */
    align-items: center;
    /* Center items vertically */
    margin: 0.5rem 0;
    /* Adjust margin around checkbox */
}

.form-check-input {
    -webkit-appearance: checkbox;
    /* Force default checkbox styling for WebKit browsers */
    -moz-appearance: checkbox;
    /* Force default checkbox styling for Firefox */
    appearance: checkbox;
    /* Ensure default appearance */
    width: 20px;
    /* Set a smaller width for the checkbox */
    height: 20px;
    /* Set a smaller height for the checkbox */
    margin-right: 0.5rem;
    /* Space between checkbox and label */
}

.form-check-label {
    margin: 0;
    /* Remove default margins */
    margin-left: 10px;
    /* Add left margin for more room */
    white-space: nowrap;
    /* Prevent text wrapping */
    display: inline;
    /* Ensure label is inline */
}

.form-control-sm {
    width: 100px;
    /* Set a specific width for the label input */
    margin-right: 10px;
    /* Space between input and checkbox */
    float: left;

    border: 1px solid #ced4da;
    /* Match the default border color of .form-control */

}

.form-check .form-control-sm {
    vertical-align: middle;
    /* Ensure all elements are vertically aligned */
    margin-bottom: 0;
    /* Remove any extra margin if applied */
}


/* Align the add button properly and add left margin */
.btn-secondary.btn-sm.mb-2 {
    vertical-align: middle;
    /* Align with other elements */
    margin-left: 10px;
    /* Space to the left */
    margin-top: 11px;
    margin-bottom: 0;
    /* Remove extra bottom margin */
    align-self: center;
    /* Ensure the button is centered within the flex container */
}

.drag-handle {
    font-size: 1.25em;
    margin-right: 10px;
    cursor: move;
}

.link-like {
    all: unset; /* Remove all default button styles */
    color: #0d6efd; /* Bootstrap blue */
    text-decoration: underline;
    cursor: pointer;
    font: inherit; /* Match surrounding text */
    vertical-align: baseline; /* Align with text */
  }

/* Apply the move cursor only to the handle */
.handle {
    cursor: move;
}

/* Default cursor for the rest of the component */
.component {
    cursor: default;
}


.drag-handle:hover {
    cursor: move;
}

.drag-text {
    font-size: 0.875rem;
    /* Smaller text size */
    color: #6c757d;
    margin-bottom: 0.4rem;
}

h4 {
    font-size: 1.4em; /* Slightly smaller than the default size */
}

.logo-crop-wrapper {
    height: 300px; /* 200px original - 50 top - 50 bottom */
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
  }
  
  .cropped-logo {
    height: 400px;
    object-fit: cover;
    object-position: center;
  }

/* Clean and small dropdown arrow styling */
.card-header button.dropdown-toggle::after {
    content: "▸"; /* Right-pointing arrow */
    font-size: 0.8rem; /* Smaller arrow */
    margin-left: 8px;
    transition: transform 0.2s ease;
    vertical-align: middle;
}

.card-header button.dropdown-toggle:not(.collapsed)::after {
    transform: rotate(90deg); /* Rotate when open */
}


  .rotate-icon {
    transition: transform 0.3s ease;
  }
  .collapsed .rotate-icon {
    transform: rotate(0deg);
  }
  .rotate-icon.collapsed {
    transform: rotate(0deg);
  }
  .rotate-icon:not(.collapsed) {
    transform: rotate(0deg);
  }