File size: 9,197 Bytes
b190b45
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
/**

 * Enhanced Resolution & Content Density System

 * Optimizes layout for maximum content visibility without sacrificing aesthetics

 * Supports 1080p, 1440p, 4K displays with adaptive scaling

 */

/* =============================================================================

   VIEWPORT OPTIMIZATION

   ============================================================================= */

:root {
  /* Enhanced spacing for higher density */
  --content-max-width: 1920px;
  --content-padding: clamp(1rem, 2vw, 2rem);
  --panel-gap: clamp(0.75rem, 1.5vw, 1.5rem);
  
  /* Compact spacing variants */
  --space-compact-1: 0.25rem;
  --space-compact-2: 0.5rem;
  --space-compact-3: 0.75rem;
  --space-compact-4: 1rem;
  
  /* Table density */
  --table-row-height: 2.5rem;
  --table-cell-padding: 0.5rem 0.75rem;
  --table-font-size: 0.875rem;
  
  /* Card density */
  --card-padding-compact: 1rem;
  --card-gap-compact: 0.75rem;
}

/* Adaptive container widths based on viewport */
@media (min-width: 1920px) {
  :root {
    --content-max-width: 2400px;
    --table-row-height: 2.75rem;
  }
}

@media (min-width: 2560px) {
  :root {
    --content-max-width: 3200px;
    --table-row-height: 3rem;
  }
}

/* =============================================================================

   ENHANCED LAYOUT SYSTEM

   ============================================================================= */

.page-content {
  max-width: var(--content-max-width);
  margin: 0 auto;
  padding: var(--content-padding);
}

/* Compact mode for data-heavy pages */
.page-content.compact-mode {
  --space-4: var(--space-compact-4);
  --space-3: var(--space-compact-3);
  --space-2: var(--space-compact-2);
}

/* =============================================================================

   HIGH-DENSITY GRID SYSTEM

   ============================================================================= */

.grid-dense {
  display: grid;
  gap: var(--panel-gap);
}

/* Responsive grid templates */
.grid-dense.cols-2 {
  grid-template-columns: repeat(2, 1fr);
}

.grid-dense.cols-3 {
  grid-template-columns: repeat(3, 1fr);
}

.grid-dense.cols-4 {
  grid-template-columns: repeat(4, 1fr);
}

.grid-dense.cols-auto {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

/* Adaptive columns based on viewport */
@media (min-width: 1920px) {
  .grid-dense.cols-auto {
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  }
}

@media (min-width: 2560px) {
  .grid-dense.cols-auto {
    grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
  }
}

/* =============================================================================

   ENHANCED TABLE STYLES

   ============================================================================= */

.table-enhanced {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: var(--table-font-size);
}

.table-enhanced thead th {
  position: sticky;
  top: 0;
  z-index: 10;
  padding: var(--table-cell-padding);
  background: rgba(15, 23, 42, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 2px solid rgba(59, 130, 246, 0.3);
  font-weight: 600;
  text-align: left;
  white-space: nowrap;
}

.table-enhanced tbody tr {
  height: var(--table-row-height);
  transition: background 0.15s ease;
}

.table-enhanced tbody tr:hover {
  background: rgba(255, 255, 255, 0.05);
}

.table-enhanced tbody td {
  padding: var(--table-cell-padding);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  vertical-align: middle;
}

/* Compact table variant */
.table-enhanced.table-compact tbody tr {
  height: 2rem;
}

.table-enhanced.table-compact tbody td,
.table-enhanced.table-compact thead th {
  padding: 0.375rem 0.5rem;
  font-size: 0.8125rem;
}

/* =============================================================================

   COMPACT CARD SYSTEM

   ============================================================================= */

.card-compact {
  padding: var(--card-padding-compact);
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.8), rgba(30, 41, 59, 0.6));
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.card-compact .card-header {
  margin-bottom: var(--card-gap-compact);
}

.card-compact .card-title {
  font-size: 1rem;
  font-weight: 600;
  margin: 0;
}

.card-compact .card-body {
  display: flex;
  flex-direction: column;
  gap: var(--card-gap-compact);
}

/* =============================================================================

   MULTI-COLUMN LAYOUTS

   ============================================================================= */

.layout-2col {
  display: grid;
  grid-template-columns: 1fr 400px;
  gap: var(--panel-gap);
}

.layout-3col {
  display: grid;
  grid-template-columns: 300px 1fr 350px;
  gap: var(--panel-gap);
}

.layout-sidebar-main {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: var(--panel-gap);
}

/* Responsive breakpoints */
@media (max-width: 1400px) {
  .layout-2col,
  .layout-3col,
  .layout-sidebar-main {
    grid-template-columns: 1fr;
  }
}

@media (min-width: 1920px) {
  .layout-2col {
    grid-template-columns: 1fr 480px;
  }
  
  .layout-3col {
    grid-template-columns: 350px 1fr 400px;
  }
  
  .layout-sidebar-main {
    grid-template-columns: 320px 1fr;
  }
}

/* =============================================================================

   SCROLLABLE CONTAINERS

   ============================================================================= */

.scrollable-panel {
  overflow-y: auto;
  max-height: calc(100vh - 200px);
  scrollbar-width: thin;
  scrollbar-color: rgba(59, 130, 246, 0.5) rgba(255, 255, 255, 0.05);
}

.scrollable-panel::-webkit-scrollbar {
  width: 8px;
}

.scrollable-panel::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 4px;
}

.scrollable-panel::-webkit-scrollbar-thumb {
  background: rgba(59, 130, 246, 0.5);
  border-radius: 4px;
}

.scrollable-panel::-webkit-scrollbar-thumb:hover {
  background: rgba(59, 130, 246, 0.7);
}

/* =============================================================================

   FLEXIBLE CHART CONTAINERS

   ============================================================================= */

.chart-container-enhanced {
  position: relative;
  width: 100%;
  min-height: 400px;
  height: clamp(400px, 50vh, 700px);
}

@media (min-width: 1920px) {
  .chart-container-enhanced {
    min-height: 500px;
    height: clamp(500px, 55vh, 800px);
  }
}

@media (min-width: 2560px) {
  .chart-container-enhanced {
    min-height: 600px;
    height: clamp(600px, 60vh, 1000px);
  }
}

/* =============================================================================

   DATA VISUALIZATION ENHANCEMENTS

   ============================================================================= */

.metric-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: var(--space-compact-3);
}

.metric-card {
  padding: var(--space-compact-3);
  background: rgba(255, 255, 255, 0.05);
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.metric-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-bottom: 0.25rem;
}

.metric-value {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-strong);
}

.metric-change {
  font-size: 0.75rem;
  margin-top: 0.25rem;
}

/* =============================================================================

   RESPONSIVE UTILITIES

   ============================================================================= */

/* Hide on smaller screens */
@media (max-width: 1400px) {
  .hide-below-xl {
    display: none !important;
  }
}

/* Show only on large screens */
.show-xl-up {
  display: none;
}

@media (min-width: 1920px) {
  .show-xl-up {
    display: block;
  }
}

/* Compact spacing on smaller viewports */
@media (max-width: 1600px) {
  :root {
    --panel-gap: 1rem;
    --content-padding: 1rem;
  }
}

/* =============================================================================

   PERFORMANCE OPTIMIZATIONS

   ============================================================================= */

/* GPU acceleration for smooth scrolling */
.gpu-accelerated {
  transform: translateZ(0);
  will-change: transform;
}

/* Reduce motion for accessibility */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* =============================================================================

   PRINT STYLES

   ============================================================================= */

@media print {
  .page-content {
    max-width: 100%;
    padding: 0;
  }
  
  .table-enhanced {
    font-size: 10pt;
  }
  
  .card-compact {
    break-inside: avoid;
  }
}