File size: 6,996 Bytes
ee00155
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
/* ==================================================================================
   RESPONSIVE STYLES FOR NON-LANDING PAGES
   ================================================================================== 
   This file contains responsive CSS for: analysis.html, history.html, video_result.html
   DO NOT link this file in index.html - landing page should keep its original design
   ================================================================================== */

/* ==================== FLUID TYPOGRAPHY VARIABLES ==================== */
:root {
    /* Fluid font sizes for inner pages */
    --font-size-page-title: clamp(1.75rem, 4vw + 0.5rem, 3rem);
    --font-size-section-header: clamp(1.25rem, 2.5vw + 0.5rem, 2rem);
    --font-size-card-title: clamp(1rem, 1.5vw + 0.5rem, 1.375rem);
    --font-size-body: clamp(0.875rem, 1vw + 0.5rem, 1.125rem);
    --font-size-small: clamp(0.75rem, 0.5vw + 0.5rem, 0.875rem);

    /* Fluid spacing */
    --container-padding: clamp(16px, 4vw, 40px);
    --card-padding: clamp(16px, 3vw, 32px);
    --gap-sm: clamp(12px, 2vw, 20px);
    --gap-md: clamp(20px, 3vw, 40px);
    --gap-lg: clamp(30px, 5vw, 60px);
}

/* ==================== ANALYSIS PAGE RESPONSIVE ==================== */

/* Analysis grid - stack on tablet and below */
.analysis-grid {
    gap: var(--gap-md);
}

@media (max-width: 1024px) {
    .analysis-grid {
        grid-template-columns: 1fr !important;
        gap: var(--gap-md);
    }
}

/* Upload section responsive */
.upload-section {
    gap: var(--gap-sm);
}

.section-header-small h2 {
    font-size: var(--font-size-section-header);
}

/* Upload area fluid sizing */
.upload-area {
    min-height: clamp(250px, 35vh, 400px);
    padding: var(--card-padding);
}

@media (max-width: 768px) {
    .upload-area {
        min-height: 220px;
        border-radius: 16px;
    }

    .upload-icon {
        font-size: 48px;
    }

    .upload-text {
        font-size: 14px;
    }
}

/* Results section responsive */
.results-section {
    padding: var(--card-padding);
}

@media (max-width: 768px) {
    .results-section {
        border-radius: 16px;
    }
}

/* Statistics grid responsive */
.statistics-grid {
    gap: var(--gap-sm);
}

@media (max-width: 768px) {
    .statistics-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

@media (max-width: 480px) {
    .statistics-grid {
        grid-template-columns: 1fr !important;
    }

    .stat-card {
        padding: 16px;
    }

    .stat-value {
        font-size: 24px;
    }
}

/* Recent analyses grid responsive */
.recent-grid {
    gap: var(--gap-sm);
}

@media (max-width: 768px) {
    .recent-grid {
        grid-template-columns: 1fr !important;
    }
}

/* ==================== HISTORY PAGE RESPONSIVE ==================== */

/* History controls fluid spacing */
.history-controls {
    gap: var(--gap-sm);
    padding: var(--card-padding);
}

@media (max-width: 768px) {
    .history-controls {
        flex-direction: column;
        align-items: stretch;
    }

    .search-container {
        min-width: 100%;
    }

    .filter-controls {
        flex-direction: column;
        width: 100%;
    }

    .filter-select {
        width: 100%;
    }

    .export-controls {
        flex-direction: column;
        width: 100%;
    }

    .btn-export,
    .btn-clear-all {
        width: 100%;
        min-height: 48px;
    }
}

/* History table horizontal scroll on mobile */
.history-table-container {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

@media (max-width: 768px) {
    .history-table {
        min-width: 600px;
    }
}

/* Grid view card sizing */
@media (max-width: 768px) {
    .history-grid {
        grid-template-columns: 1fr !important;
        gap: var(--gap-sm);
    }
}

/* Batch actions bar mobile */
@media (max-width: 768px) {
    .batch-actions {
        flex-wrap: wrap;
        gap: 10px;
        padding: 12px;
    }

    .batch-actions button {
        flex: 1;
        min-width: calc(50% - 10px);
        min-height: 44px;
    }
}

/* ==================== VIDEO RESULT PAGE RESPONSIVE ==================== */

/* Video player container responsive */
.video-preview-container {
    max-width: 100%;
}

@media (max-width: 768px) {
    .video-window-container {
        border-radius: 16px;
    }

    .window-header {
        padding: 10px 12px;
    }

    .play-button {
        width: 60px;
        height: 60px;
        font-size: 28px;
    }
}

@media (max-width: 480px) {
    .play-button {
        width: 50px;
        height: 50px;
        font-size: 24px;
    }
}

/* Dashboard grid stack on mobile */
.dashboard-grid {
    gap: var(--gap-md);
}

@media (max-width: 1024px) {
    .dashboard-grid {
        grid-template-columns: 1fr !important;
    }
}

/* Stats grid compact on mobile */
@media (max-width: 768px) {
    .video-stats-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: var(--gap-sm);
    }
}

@media (max-width: 480px) {
    .video-stats-grid {
        grid-template-columns: 1fr !important;
    }
}

/* Timeline chart container responsive */
.timeline-container,
.chart-container {
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

/* Frame grid responsive */
@media (max-width: 768px) {
    .frame-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: var(--gap-sm);
    }
}

@media (max-width: 480px) {
    .frame-grid {
        grid-template-columns: 1fr !important;
    }
}

/* Report section mobile */
@media (max-width: 768px) {
    .report-section {
        padding: var(--card-padding);
    }

    .report-header {
        flex-direction: column;
        gap: 12px;
        align-items: flex-start;
    }

    .btn-download-report {
        width: 100%;
        min-height: 48px;
    }
}

/* ==================== SHARED RESPONSIVE PATTERNS ==================== */

/* Container padding */
.analysis-container,
.history-container,
.video-result-container {
    padding-left: var(--container-padding);
    padding-right: var(--container-padding);
}

/* Card styling consistency */
.result-card,
.analysis-card,
.history-card,
.video-card {
    padding: var(--card-padding);
}

@media (max-width: 768px) {

    .result-card,
    .analysis-card,
    .history-card,
    .video-card {
        border-radius: 16px;
    }
}

/* Touch targets for interactive elements */
@media (max-width: 768px) {

    button,
    .btn,
    .btn-primary,
    .btn-secondary,
    [role="button"] {
        min-height: 44px;
        min-width: 44px;
    }
}

/* Prevent iOS input zoom */
@media (max-width: 768px) {

    input,
    select,
    textarea {
        font-size: 16px !important;
    }
}

/* Modal responsive */
@media (max-width: 768px) {
    .modal-content {
        max-width: calc(100vw - 32px);
        max-height: calc(100vh - 32px);
        margin: 16px;
        border-radius: 16px;
    }

    .modal-close {
        width: 44px;
        height: 44px;
    }
}