Shreyas094 commited on
Commit
4fc4f6c
·
verified ·
1 Parent(s): c5f68ca

Update frontend/styles.css

Browse files
Files changed (1) hide show
  1. frontend/styles.css +196 -80
frontend/styles.css CHANGED
@@ -19,171 +19,287 @@ body {
19
  min-height: 100vh;
20
  }
21
 
22
- /* Mobile-first approach */
23
  .landing {
24
  display: flex;
25
  justify-content: center;
26
  align-items: center;
27
- min-height: 100vh;
28
  text-align: center;
29
- padding: 1rem;
30
  }
31
 
32
  .landing h1 {
33
- font-size: 2rem;
34
  font-weight: 700;
35
- margin-bottom: 1.5rem;
36
  }
37
 
38
  .landing p {
39
- font-size: 1.1rem;
40
  font-weight: 400;
41
- max-width: 100%;
42
- padding: 0 1rem;
43
- margin: 0 auto 1.5rem auto;
44
  }
45
 
46
  .container {
47
- padding: 1rem;
48
  background-color: rgba(255, 255, 255, 0.1);
49
- border-radius: 8px;
50
- box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
51
  transition: all .3s ease-in-out;
52
- margin: 1rem auto;
53
- width: calc(100% - 2rem);
54
- max-width: 600px;
 
 
 
 
55
  }
56
 
57
  input, select, #output, #reportContainer {
58
- width: 100%;
59
- max-width: 100%;
60
- padding: 0.75rem;
61
  background-color: rgba(255, 255, 255, 0.1);
62
  border: none;
63
- border-radius: 6px;
64
  color: #fff;
65
- font-size: 1rem;
66
- margin: 0.5rem 0;
 
 
67
  box-sizing: border-box;
68
  }
69
 
70
- .btn-primary, .btn-secondary {
71
- width: 100%;
72
- padding: 0.75rem;
73
- margin: 0.5rem 0;
74
- border-radius: 6px;
75
- font-size: 1rem;
76
- font-weight: 500;
77
- text-align: center;
78
  }
79
 
80
  .btn-primary {
81
  background: linear-gradient(to right, #0062cc, #007bff);
 
 
 
 
82
  }
83
 
84
  .btn-secondary {
85
  background: linear-gradient(to right, #6c757d, #6c757d);
 
 
 
 
 
 
 
 
 
 
86
  }
87
 
88
  .agent_question {
89
- font-size: 1.1rem;
90
  font-weight: 500;
91
- margin: 0.5rem 0;
92
  }
93
 
94
  .agent_response {
95
  background-color: #747d8c;
96
- margin: 0.5rem 0;
97
- padding: 0.75rem;
98
- border-radius: 8px;
99
- font-size: 1rem;
100
  }
101
 
102
  #output {
103
- height: 250px;
104
- overflow-y: auto;
 
 
 
105
  -webkit-overflow-scrolling: touch;
106
  }
107
 
108
  #reportContainer {
109
- font-family: 'Georgia', serif;
110
- font-size: 1rem !important;
111
- padding: 1rem;
 
112
  }
113
 
114
  .tags-input {
115
- padding: 0.5rem;
116
- gap: 0.5rem;
 
 
 
 
117
  }
118
 
119
  .tag {
120
- padding: 0.4rem 0.6rem;
121
- font-size: 0.9rem;
 
 
 
 
122
  }
123
 
124
- footer {
125
- position: relative;
126
- padding: 1rem;
127
- margin-top: 2rem;
128
  }
129
 
130
  #selectedImagesContainer {
131
- padding: 1rem;
132
- gap: 0.5rem;
 
 
 
 
 
 
133
  }
134
 
135
  #selectedImagesContainer img {
136
- width: 100px;
137
- height: 100px;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
138
  }
139
 
140
  .image-dialog img {
141
- max-width: 95%;
142
- max-height: 70vh;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
143
  }
144
 
145
- /* Tablet and larger screens */
146
- @media screen and (min-width: 768px) {
 
 
 
 
147
  .landing h1 {
148
- font-size: 3.5rem;
 
149
  }
150
-
151
  .landing p {
152
- font-size: 1.5rem;
153
- max-width: 1000px;
154
  }
155
-
156
  .container {
157
- padding: 20px;
158
- margin: auto auto 180px auto;
 
159
  }
160
-
 
 
 
 
161
  .btn-primary, .btn-secondary {
162
- width: auto;
163
- padding: 0.75rem 1.5rem;
 
164
  }
165
-
166
- #selectedImagesContainer img {
167
- width: 150px;
168
- height: 150px;
169
  }
170
-
171
  .agent_question {
172
- font-size: 1.4rem;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
173
  }
174
  }
175
 
176
  /* Touch device optimizations */
177
  @media (hover: none) {
178
- .container:hover {
 
 
 
 
179
  transform: none;
 
180
  }
181
-
182
- .btn:hover {
183
- transform: none;
184
- }
185
-
186
- input:hover, select:hover {
187
- background-color: rgba(255, 255, 255, 0.1);
188
  }
189
  }
 
19
  min-height: 100vh;
20
  }
21
 
22
+ /* Desktop Styles */
23
  .landing {
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;
42
+ margin: auto auto 2rem auto;
43
  }
44
 
45
  .container {
46
+ padding: 20px;
47
  background-color: rgba(255, 255, 255, 0.1);
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: auto auto 180px auto;
52
+ max-width: 1200px;
53
+ }
54
+
55
+ .container:hover {
56
+ transform: scale(1.01);
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: none;
 
63
  color: #fff;
64
+ transition: all .3s ease-in-out;
65
+ padding: 10px;
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: #dfe4ea;
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: 10px 20px;
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.8;
95
+ transform: scale(1.1);
96
+ box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
97
  }
98
 
99
  .agent_question {
100
+ font-size: 1.4rem;
101
  font-weight: 500;
102
+ margin-bottom: 0.2rem;
103
  }
104
 
105
  .agent_response {
106
  background-color: #747d8c;
107
+ margin: 10px;
108
+ padding: 10px;
109
+ border-radius: 12px;
 
110
  }
111
 
112
  #output {
113
+ height: 300px;
114
+ overflow: auto;
115
+ padding: 10px;
116
+ margin: 10px 0;
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: 5px;
132
+ border: 1px solid #ccc;
133
+ padding: 5px;
134
+ border-radius: 5px;
135
  }
136
 
137
  .tag {
138
+ background-color: #007bff;
139
+ color: white;
140
+ padding: 5px 10px;
141
+ border-radius: 3px;
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-bottom: 20px;
157
+ display: flex;
158
+ flex-wrap: wrap;
159
+ gap: 10px;
160
+ justify-content: center;
161
  }
162
 
163
  #selectedImagesContainer img {
164
+ width: 150px;
165
+ height: 150px;
166
+ object-fit: cover;
167
+ cursor: pointer;
168
+ transition: transform 0.3s ease;
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.8);
184
+ display: flex;
185
+ flex-direction: column;
186
+ justify-content: center;
187
+ align-items: center;
188
+ z-index: 1000;
189
  }
190
 
191
  .image-dialog img {
192
+ max-width: 90%;
193
+ max-height: 80%;
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
+ position: fixed;
201
+ left: 0;
202
+ bottom: 0;
203
+ width: 100%;
204
+ color: white;
205
+ text-align: center;
206
+ padding: 10px 0;
207
+ background-color: rgba(30, 39, 46, 0.9);
208
  }
209
 
210
+ /* Mobile Responsive Styles */
211
+ @media screen and (max-width: 768px) {
212
+ html {
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:hover {
233
+ transform: none;
234
+ }
235
+
236
  .btn-primary, .btn-secondary {
237
+ width: 100%;
238
+ margin: 5px 0;
239
+ padding: 12px 20px;
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
+ #reportContainer {
255
+ padding: 15px;
256
+ font-size: 16px !important;
257
+ }
258
+
259
+ #selectedImagesContainer img {
260
+ width: 100px;
261
+ height: 100px;
262
+ }
263
+
264
+ .image-dialog img {
265
+ max-width: 95%;
266
+ max-height: 70vh;
267
+ }
268
+
269
+ footer {
270
+ position: relative;
271
+ padding: 15px 0;
272
+ }
273
+ }
274
+
275
+ /* Additional tablet-specific adjustments */
276
+ @media screen and (min-width: 769px) and (max-width: 1024px) {
277
+ .container {
278
+ margin: 2rem;
279
+ margin-bottom: 120px;
280
+ }
281
+
282
+ .landing h1 {
283
+ font-size: 2.8rem;
284
+ }
285
+
286
+ .landing p {
287
+ font-size: 1.3rem;
288
  }
289
  }
290
 
291
  /* Touch device optimizations */
292
  @media (hover: none) {
293
+ .container:hover,
294
+ .btn:hover,
295
+ input:hover,
296
+ select:hover,
297
+ #selectedImagesContainer img:hover {
298
  transform: none;
299
+ box-shadow: none;
300
  }
301
+
302
+ input:focus, select:focus {
303
+ background-color: rgba(255, 255, 255, 0.2);
 
 
 
 
304
  }
305
  }