-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.css
More file actions
693 lines (590 loc) · 17.8 KB
/
Copy pathindex.css
File metadata and controls
693 lines (590 loc) · 17.8 KB
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
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
/* --- OPENSYLAB SYSTEM CORE v0.6 --- */
/* Theme: Neo-Clinical Industrial */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=JetBrains+Mono:wght@400;500&display=swap');
@import "tailwindcss";
/* --- Design tokens (Tailwind v4 @theme) ---------------------------------
* Tailwind v4 ignores tailwind.config.js unless pulled in explicitly, so the
* DESIGN.md "Sterile & Slate" palette is registered here as the single source
* of truth. This is what makes utilities like bg-clinical-surface,
* text-clinical-secondary and font-mono (JetBrains Mono) actually generate CSS. */
@theme {
--color-clinical-bg: #F4F5F7;
--color-clinical-surface: #FFFFFF;
--color-clinical-text: #1A1C20;
--color-clinical-secondary: #5E6C84;
--color-clinical-border: #E2E8F0;
--color-clinical-hover: #FAFBFC;
--color-clinical-blue: #0055FF; /* System Blue — the one primary action colour */
--color-clinical-green: #10B981;
--color-clinical-biohazard: #CCFF00;
--color-clinical-critical: #FF3B30;
--color-dark-bg: #0D0E12;
--color-dark-surface: #16181D;
--color-dark-text: #E0E0E0;
--font-sans: "Inter", system-ui, -apple-system, sans-serif;
--font-mono: "JetBrains Mono", "Roboto Mono", ui-monospace, monospace;
}
/* Data font aligns digits in columns (DESIGN.md §3 "Data is King"). */
.font-mono {
font-variant-numeric: tabular-nums;
}
:root {
/* Palette: Sterile & Slate */
--bg-body: #F4F5F7; /* Clinical Grey */
--bg-surface: #FFFFFF; /* Pure White */
--bg-sidebar: #1A1C20; /* Anthrazit */
--text-primary: #111827; /* High Contrast Black */
--text-secondary: #6B7280;/* Technical Grey */
--text-on-dark: #E5E7EB;
--border-subtle: #E5E7EB;
--border-focus: #0055FF; /* System Blue */
/* Semantic Colors */
--status-blue-bg: #EFF6FF;
--status-blue-text: #1D4ED8;
--status-green-bg: #ECFDF5;
--status-green-text: #047857;
--status-alert-bg: #FEF2F2;
--status-alert-text: #B91C1C;
}
/* --- 1. GLOBAL RESET & TYPOGRAPHY --- */
body {
background-color: var(--bg-body);
color: var(--text-primary);
font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif; /* KILL SERIFS */
margin: 0;
padding: 0;
-webkit-font-smoothing: antialiased;
line-height: 1.5;
}
h1, h2, h3, h4, h5 {
font-weight: 700;
letter-spacing: -0.02em; /* Tight tracking for headers */
color: #111827;
margin-bottom: 1rem;
}
/* --- 2. LAYOUT ARCHITECTURE --- */
/* Erzeugt den "Bento Box" Look für Container */
.container, main, section {
padding: 2rem;
max-width: 1600px; /* Kein Full-Width Stretch mehr */
margin: 0 auto;
}
/* --- 3. DATA TABLES (THE HEART) --- */
table {
width: 100%;
border-collapse: collapse;
background: var(--bg-surface);
border-radius: 4px; /* Minimal Radius */
overflow: hidden;
border: 1px solid var(--border-subtle); /* Flat: borders, not shadows */
margin-bottom: 2rem;
}
thead {
background-color: #F9FAFB;
border-bottom: 2px solid var(--border-subtle);
}
th {
text-align: left;
padding: 0.75rem 1.5rem;
font-size: 0.75rem;
text-transform: uppercase;
letter-spacing: 0.05em;
font-weight: 600;
color: var(--text-secondary);
}
td {
padding: 1rem 1.5rem;
border-bottom: 1px solid var(--border-subtle);
font-size: 0.875rem;
color: var(--text-primary);
vertical-align: middle;
}
/* DATA IS CODE: IDs und Werte in Monospace */
td:first-child,
td[data-type="id"],
td[data-type="value"] {
font-family: 'JetBrains Mono', monospace;
font-weight: 500;
}
tr:last-child td {
border-bottom: none;
}
tr:hover {
background-color: #F8FAFC; /* Subtiler Hover-Effekt */
}
/* Table Row Micro-Interaction: Instant Response */
tbody tr {
transition: background-color 75ms ease-out;
}
/* --- 4. BADGES & STATUS (FIXING THE WIREFRAME LOOK) --- */
/* Wendet dies auf deine Status-Spans an */
.badge, span[class*="status"] {
display: inline-flex;
align-items: center;
padding: 0.25rem 0.75rem;
border-radius: 4px; /* Rechteckig > Rund */
font-size: 0.75rem;
font-weight: 600;
font-family: 'Inter', sans-serif;
text-transform: uppercase;
border: none !important; /* Killt die alten Outlines */
}
/* Specific Badge Colors - Du musst die Klassen im HTML evtl. anpassen */
.status-registered, .badge-blue {
background-color: var(--status-blue-bg);
color: var(--status-blue-text);
}
.status-normal, .status-validated, .badge-green {
background-color: var(--status-green-bg);
color: var(--status-green-text);
}
.status-pending, .badge-yellow {
background-color: #FFFBEB;
color: #B45309;
}
/* --- 5. FORMS & INPUTS (MEDICAL EQUIPMENT FEEL) --- */
input[type="text"],
input[type="number"],
select,
textarea {
display: block;
width: 100%;
background-color: #fff;
border: 1px solid var(--border-subtle);
border-radius: 0px; /* Industrial Sharpness */
padding: 0.6rem;
font-family: 'JetBrains Mono', monospace; /* Eingaben sind Daten */
font-size: 0.9rem;
transition: all 0.2s ease;
}
input:focus, select:focus, textarea:focus {
outline: none;
border-color: var(--border-focus);
box-shadow: 0 0 0 1px var(--border-focus); /* Hard Focus Ring */
}
label {
display: block;
font-size: 0.8rem;
font-weight: 600;
color: var(--text-secondary);
margin-bottom: 0.4rem;
margin-top: 1rem;
}
/* --- 6. SIDEBAR FIX --- */
/* Annahme: Deine Sidebar hat eine ID oder Klasse wie .sidebar oder nav */
.sidebar, nav {
background-color: var(--bg-sidebar);
color: var(--text-on-dark);
}
/* Buttons (Actions) - COMMENTED OUT: Using Button component with Tailwind instead */
/*
button, .btn {
background-color: #fff;
border: 1px solid var(--border-subtle);
color: var(--text-primary);
padding: 0.5rem 1rem;
font-size: 0.85rem;
font-weight: 500;
cursor: pointer;
border-radius: 4px;
transition: all 0.1s;
}
button:hover, .btn:hover {
background-color: #F3F4F6;
border-color: #D1D5DB;
}
*/
/* Primäre Buttons (Create New...) - COMMENTED OUT: Using Button component with Tailwind instead */
/*
button.primary, .btn-primary {
background-color: #111827;
color: #fff;
border: 1px solid #111827;
}
button.primary:hover {
background-color: #000;
}
*/
/* =====================================================================
GOD MODE: TERMINAL INDUSTRIAL - DARK THEME
System Status: [OVERDRIVE]
"Dangerous Competence" Aesthetic
===================================================================== */
.dark {
/* 90% The Abyss: Techwear Navy & Anthrazit */
--bg-body: #030407; /* Fast perfektes Schwarz */
--bg-surface: #0B0E14; /* Tiefstes Industrial Navy */
--bg-sidebar: #05060A; /* Der Abgrund */
/* Typography: High Contrast */
--text-primary: #F8FAFC; /* Eisweiß */
--text-secondary: #64748B;/* Klinisches Grau */
--text-on-dark: #E5E7EB;
/* 10% The Raver: Aggressive Accents */
--accent-acid: #CCFF00; /* Biohazard Neon Grün */
--accent-cyber: #00F0FF; /* Kaltes Cyan */
--accent-alert: #FF0055; /* Synthetisches Magenta/Rot */
--border-subtle: #1E293B; /* Harte, kalte Linien */
--border-focus: var(--accent-acid);
/* Status Colors Dark Mode */
--status-blue-bg: rgba(0, 240, 255, 0.1);
--status-blue-text: var(--accent-cyber);
--status-green-bg: rgba(204, 255, 0, 0.1);
--status-green-text: var(--accent-acid);
--status-alert-bg: rgba(255, 0, 85, 0.1);
--status-alert-text: var(--accent-alert);
}
/* 1. Global Overrides */
.dark body {
background-color: var(--bg-body);
color: var(--text-primary);
}
.dark h1, .dark h2, .dark h3, .dark h4, .dark h5 {
color: var(--text-primary);
font-family: 'JetBrains Mono', monospace;
text-transform: uppercase;
letter-spacing: 0.05em;
}
/* 2. Brutalistische Tabellen */
.dark table {
background: var(--bg-surface);
border: 1px solid var(--border-subtle);
box-shadow: none; /* Wir brauchen keinen weichen Schatten im Terminal */
}
.dark thead {
background-color: #05060A;
border-bottom: 2px solid var(--border-subtle);
}
.dark th {
color: var(--text-secondary);
font-family: 'JetBrains Mono', monospace;
letter-spacing: 0.1em;
}
.dark tr:hover {
background-color: #11151E;
}
.dark td {
border-color: var(--border-subtle);
color: var(--text-primary);
}
/* 3. Primary Buttons: "Dangerous Competence" */
.dark button[class*="bg-[#0055FF]"],
.dark .btn-primary {
background-color: var(--accent-acid) !important;
color: #000000 !important;
border: none;
border-radius: 0px !important;
font-family: 'JetBrains Mono', monospace;
font-weight: 700;
text-transform: uppercase;
box-shadow: 0 0 0 rgba(204, 255, 0, 0);
transition: all 0.1s ease-in;
}
.dark button[class*="bg-[#0055FF]"]:hover,
.dark .btn-primary:hover {
background-color: #D4FF33 !important;
box-shadow: 0 0 12px rgba(204, 255, 0, 0.4);
transform: translateY(-1px);
}
/* 4. Status Badges: HUD Style (Hollow Outlines) */
.dark .badge,
.dark span[class*="status"],
.dark span[class*="bg-blue"],
.dark span[class*="bg-green"],
.dark span[class*="bg-yellow"],
.dark span[class*="bg-red"],
.dark span[class*="bg-orange"] {
background: transparent !important;
border-width: 1px !important;
border-style: solid !important;
border-radius: 0px !important;
font-family: 'JetBrains Mono', monospace;
font-size: 0.65rem;
letter-spacing: 0.08em;
}
.dark span[class*="bg-green"],
.dark .badge-success,
.dark .status-validated,
.dark .status-normal {
border-color: var(--accent-acid) !important;
color: var(--accent-acid) !important;
}
.dark span[class*="bg-blue"],
.dark .badge-info,
.dark .status-registered,
.dark .status-entered,
.dark .status-reviewed {
border-color: var(--accent-cyber) !important;
color: var(--accent-cyber) !important;
box-shadow: inset 0 0 5px rgba(0, 240, 255, 0.1);
}
.dark span[class*="bg-red"],
.dark span[class*="bg-orange"],
.dark .badge-danger,
.dark .status-cancelled,
.dark .status-critical,
.dark .status-high,
.dark .status-rejected {
border-color: var(--accent-alert) !important;
color: var(--accent-alert) !important;
}
.dark span[class*="bg-yellow"],
.dark .status-pending {
border-color: #FFC107 !important;
color: #FFC107 !important;
}
/* 5. Eingabefelder: Terminal Prompt */
.dark input,
.dark select,
.dark textarea {
background-color: var(--bg-sidebar);
border: 1px solid var(--border-subtle);
color: var(--accent-cyber);
border-radius: 0px;
}
.dark input:focus,
.dark select:focus,
.dark textarea:focus {
border-color: var(--accent-acid);
box-shadow: 0 0 8px rgba(204, 255, 0, 0.2);
outline: none;
}
.dark label {
color: var(--text-secondary);
}
/* 6. Cards */
.dark .bg-white {
background-color: var(--bg-surface) !important;
}
.dark [class*="bg-gray-"] {
background-color: var(--bg-surface) !important;
}
.dark [class*="text-gray-900"] {
color: var(--text-primary) !important;
}
.dark [class*="text-gray-600"],
.dark [class*="text-gray-700"] {
color: var(--text-secondary) !important;
}
.dark [class*="border-gray"] {
border-color: var(--border-subtle) !important;
}
/* 7. Sidebar Dark Override */
.dark aside {
background-color: var(--bg-sidebar) !important;
border-color: #000 !important;
}
/* 8. Secondary Buttons */
.dark button[class*="bg-white"] {
background-color: var(--bg-surface) !important;
color: var(--text-primary) !important;
border: 1px solid var(--border-subtle) !important;
}
.dark button[class*="bg-white"]:hover {
background-color: #11151E !important;
border-color: var(--accent-cyber) !important;
}
/* 9. Danger Buttons */
.dark button[class*="bg-red"] {
background-color: var(--accent-alert) !important;
color: #000 !important;
border: none !important;
}
/* 10. Modals */
.dark [class*="bg-black/50"],
.dark [class*="bg-black/75"] {
background-color: rgba(3, 4, 7, 0.85) !important;
}
/* 11. Alert Boxes */
.dark [class*="bg-red-50"] {
background-color: rgba(255, 0, 85, 0.1) !important;
border-color: var(--accent-alert) !important;
}
.dark [class*="text-red-"] {
color: var(--accent-alert) !important;
}
/* 12. Blue Text Override */
.dark [class*="text-blue"] {
color: var(--accent-cyber) !important;
}
/* 13. Scrollbars */
.dark ::-webkit-scrollbar {
width: 8px;
height: 8px;
}
.dark ::-webkit-scrollbar-track {
background: var(--bg-body);
}
.dark ::-webkit-scrollbar-thumb {
background: var(--border-subtle);
border-radius: 0px;
}
.dark ::-webkit-scrollbar-thumb:hover {
background: var(--accent-acid);
}
/* 14. Specific bg-[] color overrides */
.dark [class*="bg-[#FAFBFC]"],
.dark [class*="bg-[#F4F5F7]"],
.dark [class*="bg-[#F8FAFC]"],
.dark [class*="bg-[#E2E8F0]"] {
background-color: var(--bg-surface) !important;
}
.dark [class*="bg-[#1A1C20]"],
.dark [class*="text-[#1A1C20]"] {
color: var(--text-primary) !important;
}
.dark [class*="text-[#5E6C84]"] {
color: var(--text-secondary) !important;
}
.dark [class*="border-[#E2E8F0]"] {
border-color: var(--border-subtle) !important;
}
/* 15. Dashboard specific - alternating rows */
.dark tbody tr:nth-child(odd) {
background-color: var(--bg-surface) !important;
}
.dark tbody tr:nth-child(even) {
background-color: #0A0D12 !important;
}
.dark tbody tr:hover {
background-color: #11151E !important;
}
/* 16. Dashboard metric cards */
.dark [class*="hover:border-[#0055FF]"]:hover {
border-color: var(--accent-acid) !important;
}
/* 17. Fix any remaining bg colors with arbitrary values */
.dark [style*="background-color"] {
background-color: var(--bg-surface) !important;
}
/* =====================================================================
GOD MODE: HIGH FIDELITY DETAILS
Easter Egg Enhancements
===================================================================== */
/* 1. Toxische Textauswahl (Highlighting) */
.dark ::selection {
background-color: var(--accent-acid); /* Neon Grün */
color: #000000;
text-shadow: none;
}
/* 2. Industrial Scrollbars Enhanced (Webkit) */
.dark ::-webkit-scrollbar {
width: 8px;
height: 8px;
background-color: #05060A; /* Der Abgrund */
}
.dark ::-webkit-scrollbar-thumb {
background-color: #1E293B; /* Kaltes Grau */
border-radius: 0px; /* Brutalismus: Keine runden Ecken */
}
.dark ::-webkit-scrollbar-thumb:hover {
background-color: var(--accent-cyber); /* Cyan Hover */
}
/* 3. Der CRT Glitch Trigger (wird vom JS aufgerufen) */
@keyframes glitch {
0% { transform: translate(0) }
20% { transform: translate(-2px, 1px) }
40% { transform: translate(-1px, -1px) }
60% { transform: translate(2px, 1px) }
80% { transform: translate(1px, -1px) }
100% { transform: translate(0) }
}
/* 4. Neon Focus Glow für Inputs (Das 10% Raver Element) */
.dark input:focus,
.dark select:focus,
.dark textarea:focus {
border-color: var(--accent-cyber);
background-color: #05060A;
color: var(--accent-acid); /* Getippter Text wird Neon-Grün */
/* Subtiler Glow-Effekt, wie ein alter Röhrenmonitor */
box-shadow: 0 0 10px rgba(0, 240, 255, 0.15), inset 0 0 5px rgba(0, 240, 255, 0.1);
}
/* 5. Daten-Tabellen Hover: Scanner Line */
.dark tbody tr {
transition: background-color 0s; /* Instant Reaktion */
}
.dark tbody tr:hover {
background-color: #0B111A !important;
border-left: 2px solid var(--accent-acid); /* Härtester visueller Anker */
}
/* =====================================================================
OPENSYLAB ENGINE ANIMATIONS
Reactor Core Heartbeat
===================================================================== */
@keyframes reactor-ping {
0% {
/* Base State: Fast unsichtbares Glühen */
filter: drop-shadow(0 0 2px rgba(37, 99, 235, 0.1)) brightness(1);
}
5% {
/* Peak State (nach 0.5 Sekunden): Kurzes, hartes Aufleuchten (System Blue) */
filter: drop-shadow(0 0 12px rgba(37, 99, 235, 0.9)) brightness(1.2);
}
10% {
/* Return State (nach 1.0 Sekunden): Zurück zum Base State */
filter: drop-shadow(0 0 2px rgba(37, 99, 235, 0.1)) brightness(1);
}
100% {
/* Sleep State (Sekunde 1 bis 10): Nichts tun */
filter: drop-shadow(0 0 2px rgba(37, 99, 235, 0.1)) brightness(1);
}
}
.animate-reactor {
animation: reactor-ping 10s infinite cubic-bezier(0.4, 0, 0.2, 1);
}
/* =====================================================================
CLINICAL TRANSITIONS
Medical-Grade UI Responsiveness
===================================================================== */
/* 1a. Modal HUD Snap-In (Create Overlays) */
@keyframes hud-snap {
0% {
opacity: 0;
transform: scale(0.97) translateY(10px);
}
100% {
opacity: 1;
transform: scale(1) translateY(0);
}
}
.animate-snap-in {
/* 150ms - schneller als das Auge bewusst wahrnimmt, aber weich genug für das Gehirn */
animation: hud-snap 0.15s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}
/* 1b. Modal Slide from Top (Edit Overlays) */
@keyframes slide-from-top {
0% {
opacity: 0;
transform: translateY(-30px);
}
100% {
opacity: 1;
transform: translateY(0);
}
}
.animate-slide-top {
/* 220ms - smooth glide from top */
animation: slide-from-top 0.22s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}
/* Modal Backdrop Fade */
@keyframes backdrop-fade {
0% { opacity: 0; }
100% { opacity: 1; }
}
.animate-backdrop {
animation: backdrop-fade 0.2s ease-out forwards;
}
/* 2. Data Reveal (Page/Tab Transitions) */
@keyframes data-reveal {
0% {
opacity: 0;
transform: translateY(4px);
}
100% {
opacity: 1;
transform: translateY(0);
}
}
.page-transition {
/* Leicht verzögert, damit der Header zuerst da ist */
animation: data-reveal 0.25s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}