Spaces:
Running
Running
Update frontend/styles.css
Browse files- frontend/styles.css +118 -94
frontend/styles.css
CHANGED
@@ -7,6 +7,8 @@
|
|
7 |
html {
|
8 |
scroll-behavior: smooth;
|
9 |
font-size: 16px;
|
|
|
|
|
10 |
}
|
11 |
|
12 |
body {
|
@@ -17,6 +19,8 @@ body {
|
|
17 |
margin: 0;
|
18 |
padding: 0;
|
19 |
min-height: 100vh;
|
|
|
|
|
20 |
}
|
21 |
|
22 |
/* Desktop Styles */
|
@@ -24,18 +28,20 @@ body {
|
|
24 |
display: flex;
|
25 |
justify-content: center;
|
26 |
align-items: center;
|
27 |
-
height: 100vh;
|
28 |
text-align: center;
|
|
|
|
|
29 |
}
|
30 |
|
31 |
.landing h1 {
|
32 |
-
font-size: 3.5rem;
|
33 |
font-weight: 700;
|
34 |
margin-bottom: 2rem;
|
35 |
}
|
36 |
|
37 |
.landing p {
|
38 |
-
font-size: 1.5rem;
|
39 |
font-weight: 400;
|
40 |
max-width: 1000px;
|
41 |
padding: 0 25px;
|
@@ -48,8 +54,10 @@ body {
|
|
48 |
border-radius: 12px;
|
49 |
box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
|
50 |
transition: all .3s ease-in-out;
|
51 |
-
margin:
|
52 |
max-width: 1200px;
|
|
|
|
|
53 |
}
|
54 |
|
55 |
.container:hover {
|
@@ -57,111 +65,133 @@ body {
|
|
57 |
box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
|
58 |
}
|
59 |
|
|
|
60 |
input, select, #output, #reportContainer {
|
61 |
background-color: rgba(255, 255, 255, 0.1);
|
62 |
-
border:
|
63 |
color: #fff;
|
64 |
transition: all .3s ease-in-out;
|
65 |
-
padding:
|
66 |
border-radius: 6px;
|
67 |
width: 100%;
|
68 |
box-sizing: border-box;
|
|
|
69 |
}
|
70 |
|
71 |
input:hover, input:focus, select:hover, select:focus {
|
72 |
-
background-color:
|
73 |
border: 1px solid rgba(255, 255, 255, 0.5);
|
74 |
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
75 |
}
|
76 |
|
77 |
-
.btn-primary {
|
78 |
background: linear-gradient(to right, #0062cc, #007bff);
|
79 |
border: none;
|
|
|
80 |
transition: all .3s ease-in-out;
|
81 |
-
padding:
|
82 |
border-radius: 6px;
|
|
|
|
|
|
|
|
|
|
|
83 |
}
|
84 |
|
85 |
.btn-secondary {
|
86 |
background: linear-gradient(to right, #6c757d, #6c757d);
|
87 |
-
border: none;
|
88 |
-
transition: all .3s ease-in-out;
|
89 |
-
padding: 10px 20px;
|
90 |
-
border-radius: 6px;
|
91 |
}
|
92 |
|
93 |
.btn:hover {
|
94 |
-
opacity: 0.
|
95 |
-
transform:
|
96 |
-
box-shadow: 0
|
97 |
}
|
98 |
|
|
|
99 |
.agent_question {
|
100 |
-
font-size: 1.4rem;
|
101 |
font-weight: 500;
|
102 |
-
margin-bottom: 0.
|
103 |
}
|
104 |
|
105 |
.agent_response {
|
106 |
background-color: #747d8c;
|
107 |
-
margin:
|
108 |
-
padding:
|
109 |
border-radius: 12px;
|
110 |
}
|
111 |
|
112 |
#output {
|
113 |
-
height:
|
114 |
-
overflow: auto;
|
115 |
-
padding:
|
116 |
-
margin:
|
117 |
border-radius: 12px;
|
118 |
-webkit-overflow-scrolling: touch;
|
|
|
119 |
}
|
120 |
|
121 |
#reportContainer {
|
122 |
font-family: 'Georgia', 'Times New Roman', Times, serif;
|
123 |
-
font-size: 18px !important;
|
124 |
padding: 25px;
|
125 |
border-radius: 12px;
|
|
|
126 |
}
|
127 |
|
|
|
128 |
.tags-input {
|
129 |
display: flex;
|
130 |
flex-wrap: wrap;
|
131 |
-
gap:
|
132 |
-
border: 1px solid
|
133 |
-
padding:
|
134 |
-
border-radius:
|
|
|
135 |
}
|
136 |
|
137 |
.tag {
|
138 |
background-color: #007bff;
|
139 |
color: white;
|
140 |
-
padding:
|
141 |
-
border-radius:
|
142 |
display: flex;
|
143 |
align-items: center;
|
|
|
144 |
}
|
145 |
|
146 |
.tag .remove-tag {
|
147 |
-
margin-left: 10px;
|
148 |
cursor: pointer;
|
149 |
font-weight: bold;
|
|
|
|
|
150 |
}
|
151 |
|
|
|
152 |
#selectedImagesContainer {
|
153 |
background-color: rgba(255, 255, 255, 0.1);
|
154 |
border-radius: 12px;
|
155 |
padding: 15px;
|
156 |
-
margin
|
157 |
-
display:
|
158 |
-
|
159 |
-
gap:
|
160 |
-
|
|
|
161 |
}
|
162 |
|
163 |
#selectedImagesContainer img {
|
164 |
-
width:
|
165 |
height: 150px;
|
166 |
object-fit: cover;
|
167 |
cursor: pointer;
|
@@ -169,18 +199,13 @@ input:hover, input:focus, select:hover, select:focus {
|
|
169 |
border-radius: 8px;
|
170 |
}
|
171 |
|
172 |
-
#selectedImagesContainer img:hover {
|
173 |
-
transform: scale(1.05);
|
174 |
-
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
|
175 |
-
}
|
176 |
-
|
177 |
.image-dialog {
|
178 |
position: fixed;
|
179 |
top: 0;
|
180 |
left: 0;
|
181 |
width: 100%;
|
182 |
height: 100%;
|
183 |
-
background-color: rgba(0, 0, 0, 0.
|
184 |
display: flex;
|
185 |
flex-direction: column;
|
186 |
justify-content: center;
|
@@ -190,21 +215,21 @@ input:hover, input:focus, select:hover, select:focus {
|
|
190 |
|
191 |
.image-dialog img {
|
192 |
max-width: 90%;
|
193 |
-
max-height:
|
194 |
object-fit: contain;
|
195 |
border-radius: 8px;
|
196 |
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
|
197 |
}
|
198 |
|
|
|
199 |
footer {
|
200 |
-
|
201 |
-
left: 0;
|
202 |
-
bottom: 0;
|
203 |
-
width: 100%;
|
204 |
color: white;
|
205 |
text-align: center;
|
206 |
-
padding:
|
207 |
-
|
|
|
|
|
208 |
}
|
209 |
|
210 |
/* Mobile Responsive Styles */
|
@@ -213,51 +238,27 @@ footer {
|
|
213 |
font-size: 14px;
|
214 |
}
|
215 |
|
216 |
-
.landing h1 {
|
217 |
-
font-size: 2rem;
|
218 |
-
margin-bottom: 1rem;
|
219 |
-
}
|
220 |
-
|
221 |
-
.landing p {
|
222 |
-
font-size: 1.1rem;
|
223 |
-
padding: 0 15px;
|
224 |
-
}
|
225 |
-
|
226 |
.container {
|
|
|
227 |
padding: 15px;
|
228 |
margin: 1rem;
|
229 |
-
margin-bottom: 100px;
|
230 |
}
|
231 |
|
232 |
-
.container
|
233 |
-
|
234 |
}
|
235 |
|
236 |
.btn-primary, .btn-secondary {
|
237 |
width: 100%;
|
238 |
-
margin:
|
239 |
-
padding:
|
240 |
-
}
|
241 |
-
|
242 |
-
.btn:hover {
|
243 |
-
transform: none;
|
244 |
-
}
|
245 |
-
|
246 |
-
.agent_question {
|
247 |
-
font-size: 1.2rem;
|
248 |
-
}
|
249 |
-
|
250 |
-
#output {
|
251 |
-
height: 250px;
|
252 |
}
|
253 |
|
254 |
-
#
|
255 |
-
|
256 |
-
font-size: 16px !important;
|
257 |
}
|
258 |
|
259 |
#selectedImagesContainer img {
|
260 |
-
width: 100px;
|
261 |
height: 100px;
|
262 |
}
|
263 |
|
@@ -266,25 +267,20 @@ footer {
|
|
266 |
max-height: 70vh;
|
267 |
}
|
268 |
|
269 |
-
|
270 |
-
|
271 |
-
padding: 15px 0;
|
272 |
}
|
273 |
}
|
274 |
|
275 |
-
/*
|
276 |
@media screen and (min-width: 769px) and (max-width: 1024px) {
|
277 |
.container {
|
|
|
278 |
margin: 2rem;
|
279 |
-
margin-bottom: 120px;
|
280 |
}
|
281 |
|
282 |
-
.
|
283 |
-
|
284 |
-
}
|
285 |
-
|
286 |
-
.landing p {
|
287 |
-
font-size: 1.3rem;
|
288 |
}
|
289 |
}
|
290 |
|
@@ -300,6 +296,34 @@ footer {
|
|
300 |
}
|
301 |
|
302 |
input:focus, select:focus {
|
303 |
-
background-color: rgba(255, 255, 255, 0.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
304 |
}
|
305 |
}
|
|
|
7 |
html {
|
8 |
scroll-behavior: smooth;
|
9 |
font-size: 16px;
|
10 |
+
height: 100%;
|
11 |
+
overflow-x: hidden; /* Prevent horizontal scroll */
|
12 |
}
|
13 |
|
14 |
body {
|
|
|
19 |
margin: 0;
|
20 |
padding: 0;
|
21 |
min-height: 100vh;
|
22 |
+
position: relative;
|
23 |
+
overflow-x: hidden; /* Prevent horizontal scroll */
|
24 |
}
|
25 |
|
26 |
/* Desktop Styles */
|
|
|
28 |
display: flex;
|
29 |
justify-content: center;
|
30 |
align-items: center;
|
31 |
+
min-height: 100vh;
|
32 |
text-align: center;
|
33 |
+
padding: 2rem 1rem;
|
34 |
+
box-sizing: border-box;
|
35 |
}
|
36 |
|
37 |
.landing h1 {
|
38 |
+
font-size: clamp(2rem, 5vw, 3.5rem);
|
39 |
font-weight: 700;
|
40 |
margin-bottom: 2rem;
|
41 |
}
|
42 |
|
43 |
.landing p {
|
44 |
+
font-size: clamp(1.1rem, 3vw, 1.5rem);
|
45 |
font-weight: 400;
|
46 |
max-width: 1000px;
|
47 |
padding: 0 25px;
|
|
|
54 |
border-radius: 12px;
|
55 |
box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
|
56 |
transition: all .3s ease-in-out;
|
57 |
+
margin: 2rem auto;
|
58 |
max-width: 1200px;
|
59 |
+
width: calc(100% - 4rem);
|
60 |
+
box-sizing: border-box;
|
61 |
}
|
62 |
|
63 |
.container:hover {
|
|
|
65 |
box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
|
66 |
}
|
67 |
|
68 |
+
/* Form Elements */
|
69 |
input, select, #output, #reportContainer {
|
70 |
background-color: rgba(255, 255, 255, 0.1);
|
71 |
+
border: 1px solid rgba(255, 255, 255, 0.2);
|
72 |
color: #fff;
|
73 |
transition: all .3s ease-in-out;
|
74 |
+
padding: 12px;
|
75 |
border-radius: 6px;
|
76 |
width: 100%;
|
77 |
box-sizing: border-box;
|
78 |
+
margin-bottom: 1rem;
|
79 |
}
|
80 |
|
81 |
input:hover, input:focus, select:hover, select:focus {
|
82 |
+
background-color: rgba(223, 228, 234, 0.1);
|
83 |
border: 1px solid rgba(255, 255, 255, 0.5);
|
84 |
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
|
85 |
+
outline: none;
|
86 |
+
}
|
87 |
+
|
88 |
+
/* Buttons */
|
89 |
+
.btn-container {
|
90 |
+
display: flex;
|
91 |
+
gap: 10px;
|
92 |
+
flex-wrap: wrap;
|
93 |
+
margin: 1rem 0;
|
94 |
}
|
95 |
|
96 |
+
.btn-primary, .btn-secondary {
|
97 |
background: linear-gradient(to right, #0062cc, #007bff);
|
98 |
border: none;
|
99 |
+
color: white;
|
100 |
transition: all .3s ease-in-out;
|
101 |
+
padding: 12px 24px;
|
102 |
border-radius: 6px;
|
103 |
+
cursor: pointer;
|
104 |
+
font-size: 1rem;
|
105 |
+
min-width: 120px;
|
106 |
+
text-align: center;
|
107 |
+
display: inline-block;
|
108 |
}
|
109 |
|
110 |
.btn-secondary {
|
111 |
background: linear-gradient(to right, #6c757d, #6c757d);
|
|
|
|
|
|
|
|
|
112 |
}
|
113 |
|
114 |
.btn:hover {
|
115 |
+
opacity: 0.9;
|
116 |
+
transform: translateY(-2px);
|
117 |
+
box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
|
118 |
}
|
119 |
|
120 |
+
/* Agent Interaction */
|
121 |
.agent_question {
|
122 |
+
font-size: clamp(1.2rem, 3vw, 1.4rem);
|
123 |
font-weight: 500;
|
124 |
+
margin-bottom: 0.5rem;
|
125 |
}
|
126 |
|
127 |
.agent_response {
|
128 |
background-color: #747d8c;
|
129 |
+
margin: 1rem 0;
|
130 |
+
padding: 15px;
|
131 |
border-radius: 12px;
|
132 |
}
|
133 |
|
134 |
#output {
|
135 |
+
height: clamp(250px, 50vh, 400px);
|
136 |
+
overflow-y: auto;
|
137 |
+
padding: 15px;
|
138 |
+
margin: 1rem 0;
|
139 |
border-radius: 12px;
|
140 |
-webkit-overflow-scrolling: touch;
|
141 |
+
scroll-behavior: smooth;
|
142 |
}
|
143 |
|
144 |
#reportContainer {
|
145 |
font-family: 'Georgia', 'Times New Roman', Times, serif;
|
146 |
+
font-size: clamp(16px, 2vw, 18px) !important;
|
147 |
padding: 25px;
|
148 |
border-radius: 12px;
|
149 |
+
margin: 1rem 0;
|
150 |
}
|
151 |
|
152 |
+
/* Tags Input */
|
153 |
.tags-input {
|
154 |
display: flex;
|
155 |
flex-wrap: wrap;
|
156 |
+
gap: 8px;
|
157 |
+
border: 1px solid rgba(255, 255, 255, 0.2);
|
158 |
+
padding: 10px;
|
159 |
+
border-radius: 8px;
|
160 |
+
margin-bottom: 1rem;
|
161 |
}
|
162 |
|
163 |
.tag {
|
164 |
background-color: #007bff;
|
165 |
color: white;
|
166 |
+
padding: 8px 12px;
|
167 |
+
border-radius: 4px;
|
168 |
display: flex;
|
169 |
align-items: center;
|
170 |
+
gap: 8px;
|
171 |
}
|
172 |
|
173 |
.tag .remove-tag {
|
|
|
174 |
cursor: pointer;
|
175 |
font-weight: bold;
|
176 |
+
opacity: 0.8;
|
177 |
+
padding: 0 4px;
|
178 |
}
|
179 |
|
180 |
+
/* Images */
|
181 |
#selectedImagesContainer {
|
182 |
background-color: rgba(255, 255, 255, 0.1);
|
183 |
border-radius: 12px;
|
184 |
padding: 15px;
|
185 |
+
margin: 1rem 0;
|
186 |
+
display: grid;
|
187 |
+
grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
|
188 |
+
gap: 15px;
|
189 |
+
width: 100%;
|
190 |
+
box-sizing: border-box;
|
191 |
}
|
192 |
|
193 |
#selectedImagesContainer img {
|
194 |
+
width: 100%;
|
195 |
height: 150px;
|
196 |
object-fit: cover;
|
197 |
cursor: pointer;
|
|
|
199 |
border-radius: 8px;
|
200 |
}
|
201 |
|
|
|
|
|
|
|
|
|
|
|
202 |
.image-dialog {
|
203 |
position: fixed;
|
204 |
top: 0;
|
205 |
left: 0;
|
206 |
width: 100%;
|
207 |
height: 100%;
|
208 |
+
background-color: rgba(0, 0, 0, 0.9);
|
209 |
display: flex;
|
210 |
flex-direction: column;
|
211 |
justify-content: center;
|
|
|
215 |
|
216 |
.image-dialog img {
|
217 |
max-width: 90%;
|
218 |
+
max-height: 80vh;
|
219 |
object-fit: contain;
|
220 |
border-radius: 8px;
|
221 |
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
|
222 |
}
|
223 |
|
224 |
+
/* Footer */
|
225 |
footer {
|
226 |
+
background-color: rgba(30, 39, 46, 0.95);
|
|
|
|
|
|
|
227 |
color: white;
|
228 |
text-align: center;
|
229 |
+
padding: 15px;
|
230 |
+
width: 100%;
|
231 |
+
box-sizing: border-box;
|
232 |
+
margin-top: 2rem;
|
233 |
}
|
234 |
|
235 |
/* Mobile Responsive Styles */
|
|
|
238 |
font-size: 14px;
|
239 |
}
|
240 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
241 |
.container {
|
242 |
+
width: calc(100% - 2rem);
|
243 |
padding: 15px;
|
244 |
margin: 1rem;
|
|
|
245 |
}
|
246 |
|
247 |
+
.btn-container {
|
248 |
+
flex-direction: column;
|
249 |
}
|
250 |
|
251 |
.btn-primary, .btn-secondary {
|
252 |
width: 100%;
|
253 |
+
margin: 0;
|
254 |
+
padding: 14px 20px;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
255 |
}
|
256 |
|
257 |
+
#selectedImagesContainer {
|
258 |
+
grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
|
|
|
259 |
}
|
260 |
|
261 |
#selectedImagesContainer img {
|
|
|
262 |
height: 100px;
|
263 |
}
|
264 |
|
|
|
267 |
max-height: 70vh;
|
268 |
}
|
269 |
|
270 |
+
#output, #reportContainer {
|
271 |
+
padding: 12px;
|
|
|
272 |
}
|
273 |
}
|
274 |
|
275 |
+
/* Tablet Responsive Styles */
|
276 |
@media screen and (min-width: 769px) and (max-width: 1024px) {
|
277 |
.container {
|
278 |
+
width: calc(100% - 4rem);
|
279 |
margin: 2rem;
|
|
|
280 |
}
|
281 |
|
282 |
+
.btn-container {
|
283 |
+
justify-content: center;
|
|
|
|
|
|
|
|
|
284 |
}
|
285 |
}
|
286 |
|
|
|
296 |
}
|
297 |
|
298 |
input:focus, select:focus {
|
299 |
+
background-color: rgba(255, 255, 255, 0.15);
|
300 |
+
}
|
301 |
+
|
302 |
+
.btn:active {
|
303 |
+
transform: translateY(1px);
|
304 |
+
opacity: 0.8;
|
305 |
+
}
|
306 |
+
}
|
307 |
+
|
308 |
+
/* Print styles */
|
309 |
+
@media print {
|
310 |
+
body {
|
311 |
+
background: white;
|
312 |
+
color: black;
|
313 |
+
}
|
314 |
+
|
315 |
+
.container {
|
316 |
+
box-shadow: none;
|
317 |
+
margin: 0;
|
318 |
+
padding: 0;
|
319 |
+
}
|
320 |
+
|
321 |
+
#output, #reportContainer {
|
322 |
+
border: 1px solid #ddd;
|
323 |
+
}
|
324 |
+
|
325 |
+
footer {
|
326 |
+
position: fixed;
|
327 |
+
bottom: 0;
|
328 |
}
|
329 |
}
|