@conarium-ai/core 0.1.1 → 0.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,490 @@
1
+ :root {
2
+ --bg-color: #0f172a;
3
+ --text-primary: #f8fafc;
4
+ --text-secondary: #94a3b8;
5
+ --accent: #3b82f6;
6
+ --accent-hover: #2563eb;
7
+ --glass-bg: rgba(30, 41, 59, 0.7);
8
+ --glass-border: rgba(255, 255, 255, 0.1);
9
+ --success: #10b981;
10
+ --danger: #ef4444;
11
+ }
12
+
13
+ * {
14
+ box-sizing: border-box;
15
+ margin: 0;
16
+ padding: 0;
17
+ }
18
+
19
+ body {
20
+ font-family: 'Inter', sans-serif;
21
+ background-color: var(--bg-color);
22
+ background-image:
23
+ radial-gradient(at 0% 0%, rgba(59, 130, 246, 0.15) 0px, transparent 50%),
24
+ radial-gradient(at 100% 100%, rgba(139, 92, 246, 0.15) 0px, transparent 50%);
25
+ color: var(--text-primary);
26
+ min-height: 100vh;
27
+ overflow-x: hidden;
28
+ }
29
+
30
+ .app-container {
31
+ display: flex;
32
+ min-height: 100vh;
33
+ }
34
+
35
+ /* Glassmorphism utility */
36
+ .glass-panel {
37
+ background: var(--glass-bg);
38
+ backdrop-filter: blur(12px);
39
+ -webkit-backdrop-filter: blur(12px);
40
+ border: 1px solid var(--glass-border);
41
+ box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
42
+ }
43
+
44
+ /* Sidebar */
45
+ .sidebar {
46
+ width: 260px;
47
+ padding: 2rem;
48
+ display: flex;
49
+ flex-direction: column;
50
+ gap: 2rem;
51
+ border-right: 1px solid var(--glass-border);
52
+ }
53
+
54
+ .logo {
55
+ display: flex;
56
+ align-items: center;
57
+ gap: 1rem;
58
+ }
59
+
60
+ .logo-icon {
61
+ width: 32px;
62
+ height: 32px;
63
+ background: linear-gradient(135deg, #3b82f6, #8b5cf6);
64
+ border-radius: 8px;
65
+ box-shadow: 0 0 15px rgba(59, 130, 246, 0.5);
66
+ }
67
+
68
+ .sidebar nav {
69
+ display: flex;
70
+ flex-direction: column;
71
+ gap: 0.5rem;
72
+ }
73
+
74
+ .nav-item {
75
+ color: var(--text-secondary);
76
+ text-decoration: none;
77
+ padding: 0.75rem 1rem;
78
+ border-radius: 8px;
79
+ transition: all 0.3s ease;
80
+ font-weight: 500;
81
+ }
82
+
83
+ .nav-item:hover {
84
+ background: rgba(255, 255, 255, 0.05);
85
+ color: var(--text-primary);
86
+ transform: translateX(5px);
87
+ }
88
+
89
+ .nav-item.active {
90
+ background: rgba(59, 130, 246, 0.1);
91
+ color: var(--accent);
92
+ border-left: 3px solid var(--accent);
93
+ }
94
+
95
+ /* Main Content */
96
+ .main-content {
97
+ flex: 1;
98
+ padding: 2rem;
99
+ display: flex;
100
+ flex-direction: column;
101
+ gap: 2rem;
102
+ }
103
+
104
+ .header {
105
+ display: flex;
106
+ justify-content: space-between;
107
+ align-items: center;
108
+ padding: 1.5rem 2rem;
109
+ border-radius: 16px;
110
+ }
111
+
112
+ .status-badge {
113
+ display: flex;
114
+ align-items: center;
115
+ gap: 0.5rem;
116
+ font-size: 0.875rem;
117
+ background: rgba(16, 185, 129, 0.1);
118
+ color: var(--success);
119
+ padding: 0.5rem 1rem;
120
+ border-radius: 20px;
121
+ border: 1px solid rgba(16, 185, 129, 0.2);
122
+ }
123
+
124
+ .dot {
125
+ width: 8px;
126
+ height: 8px;
127
+ background-color: var(--success);
128
+ border-radius: 50%;
129
+ }
130
+
131
+ .pulse .dot {
132
+ animation: pulse 2s infinite;
133
+ }
134
+
135
+ @keyframes pulse {
136
+ 0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
137
+ 70% { transform: scale(1); box-shadow: 0 0 0 6px rgba(16, 185, 129, 0); }
138
+ 100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
139
+ }
140
+
141
+ /* Tabs */
142
+ .tab-content {
143
+ display: none;
144
+ animation: fadeIn 0.4s ease forwards;
145
+ }
146
+
147
+ .tab-content.active {
148
+ display: block;
149
+ }
150
+
151
+ @keyframes fadeIn {
152
+ from { opacity: 0; transform: translateY(10px); }
153
+ to { opacity: 1; transform: translateY(0); }
154
+ }
155
+
156
+ /* Cards */
157
+ .card {
158
+ border-radius: 16px;
159
+ padding: 2rem;
160
+ }
161
+
162
+ .card-header {
163
+ display: flex;
164
+ justify-content: space-between;
165
+ align-items: center;
166
+ margin-bottom: 1.5rem;
167
+ }
168
+
169
+ .card h3 {
170
+ font-size: 1.25rem;
171
+ color: var(--text-primary);
172
+ margin-bottom: 1.5rem;
173
+ }
174
+
175
+ /* Forms */
176
+ .form-group {
177
+ margin-bottom: 1.5rem;
178
+ }
179
+
180
+ .flex-row {
181
+ display: flex;
182
+ justify-content: space-between;
183
+ align-items: center;
184
+ }
185
+
186
+ label {
187
+ display: block;
188
+ color: var(--text-secondary);
189
+ margin-bottom: 0.5rem;
190
+ font-size: 0.875rem;
191
+ }
192
+
193
+ .glass-input {
194
+ width: 100%;
195
+ background: rgba(0, 0, 0, 0.2);
196
+ border: 1px solid var(--glass-border);
197
+ color: var(--text-primary);
198
+ padding: 0.75rem 1rem;
199
+ border-radius: 8px;
200
+ font-family: inherit;
201
+ transition: all 0.3s ease;
202
+ }
203
+
204
+ .glass-input:focus {
205
+ outline: none;
206
+ border-color: var(--accent);
207
+ box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
208
+ }
209
+
210
+ textarea.list-input {
211
+ min-height: 5rem;
212
+ font-family: ui-monospace, Consolas, monospace;
213
+ resize: vertical;
214
+ }
215
+
216
+ .hint {
217
+ display: block;
218
+ font-weight: 400;
219
+ font-size: 0.75rem;
220
+ color: var(--text-secondary);
221
+ opacity: 0.8;
222
+ margin-top: 0.15rem;
223
+ }
224
+
225
+ .policy-warn {
226
+ margin: 0.5rem 0 0;
227
+ font-size: 0.8rem;
228
+ color: #f59e0b;
229
+ }
230
+
231
+ /* Buttons */
232
+ .btn {
233
+ padding: 0.75rem 1.5rem;
234
+ border-radius: 8px;
235
+ border: none;
236
+ font-family: inherit;
237
+ font-weight: 600;
238
+ cursor: pointer;
239
+ transition: all 0.3s ease;
240
+ }
241
+
242
+ .primary-btn {
243
+ background: var(--accent);
244
+ color: white;
245
+ }
246
+
247
+ .primary-btn:hover {
248
+ background: var(--accent-hover);
249
+ transform: translateY(-2px);
250
+ box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
251
+ }
252
+
253
+ .secondary-btn {
254
+ background: rgba(255, 255, 255, 0.1);
255
+ color: var(--text-primary);
256
+ border: 1px solid var(--glass-border);
257
+ }
258
+
259
+ .secondary-btn:hover {
260
+ background: rgba(255, 255, 255, 0.2);
261
+ }
262
+
263
+ /* Switch Toggle */
264
+ .switch {
265
+ position: relative;
266
+ display: inline-block;
267
+ width: 48px;
268
+ height: 24px;
269
+ }
270
+
271
+ .switch input {
272
+ opacity: 0;
273
+ width: 0;
274
+ height: 0;
275
+ }
276
+
277
+ .slider {
278
+ position: absolute;
279
+ cursor: pointer;
280
+ top: 0; left: 0; right: 0; bottom: 0;
281
+ background-color: rgba(255, 255, 255, 0.1);
282
+ transition: .4s;
283
+ border: 1px solid var(--glass-border);
284
+ }
285
+
286
+ .slider:before {
287
+ position: absolute;
288
+ content: "";
289
+ height: 18px;
290
+ width: 18px;
291
+ left: 2px;
292
+ bottom: 2px;
293
+ background-color: white;
294
+ transition: .4s;
295
+ }
296
+
297
+ input:checked + .slider {
298
+ background-color: var(--accent);
299
+ border-color: var(--accent);
300
+ }
301
+
302
+ input:checked + .slider:before {
303
+ transform: translateX(24px);
304
+ }
305
+
306
+ .slider.round {
307
+ border-radius: 24px;
308
+ }
309
+
310
+ .slider.round:before {
311
+ border-radius: 50%;
312
+ }
313
+
314
+ /* Tables */
315
+ .table-container {
316
+ overflow-x: auto;
317
+ }
318
+
319
+ .audit-table {
320
+ width: 100%;
321
+ border-collapse: collapse;
322
+ }
323
+
324
+ .audit-table th {
325
+ text-align: left;
326
+ padding: 1rem;
327
+ color: var(--text-secondary);
328
+ font-weight: 500;
329
+ font-size: 0.875rem;
330
+ border-bottom: 1px solid var(--glass-border);
331
+ }
332
+
333
+ .audit-table td {
334
+ padding: 1rem;
335
+ border-bottom: 1px solid rgba(255, 255, 255, 0.05);
336
+ font-size: 0.875rem;
337
+ }
338
+
339
+ .audit-table tbody tr {
340
+ transition: background 0.2s ease;
341
+ }
342
+
343
+ .audit-table tbody tr:hover {
344
+ background: rgba(255, 255, 255, 0.02);
345
+ }
346
+
347
+ .status-badge-sm {
348
+ padding: 0.25rem 0.5rem;
349
+ border-radius: 4px;
350
+ font-size: 0.75rem;
351
+ font-weight: 600;
352
+ }
353
+ .status-success { background: rgba(16, 185, 129, 0.1); color: var(--success); }
354
+ .status-rejected { background: rgba(239, 68, 68, 0.1); color: var(--danger); }
355
+
356
+ /* Connectors */
357
+ .connector-list {
358
+ display: flex;
359
+ flex-direction: column;
360
+ gap: 1rem;
361
+ }
362
+
363
+ .connector-item {
364
+ display: flex;
365
+ justify-content: space-between;
366
+ align-items: center;
367
+ padding: 1rem;
368
+ background: rgba(0,0,0,0.2);
369
+ border-radius: 8px;
370
+ border: 1px solid var(--glass-border);
371
+ transition: transform 0.2s ease;
372
+ }
373
+
374
+ .connector-item:hover {
375
+ transform: scale(1.01);
376
+ }
377
+
378
+ .connector-info h4 { margin-bottom: 0.25rem; }
379
+ .connector-info span { color: var(--text-secondary); font-size: 0.75rem; }
380
+
381
+ /* Toast */
382
+ .toast {
383
+ position: fixed;
384
+ bottom: 2rem;
385
+ right: 2rem;
386
+ background: var(--success);
387
+ color: white;
388
+ padding: 1rem 2rem;
389
+ border-radius: 8px;
390
+ box-shadow: 0 4px 12px rgba(16, 185, 129, 0.4);
391
+ transform: translateY(100px);
392
+ opacity: 0;
393
+ transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
394
+ }
395
+
396
+ .toast.show {
397
+ transform: translateY(0);
398
+ opacity: 1;
399
+ }
400
+
401
+ /* --- Live Playground --- */
402
+ .pg-sub { color: var(--text-secondary); margin: 0.25rem 0 1.25rem; font-size: 0.95rem; }
403
+ .pg-samples { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 1rem; }
404
+ .chip { background: rgba(59,130,246,0.12); border: 1px solid var(--glass-border); color: var(--text-primary); padding: 0.45rem 0.85rem; border-radius: 999px; font-size: 0.85rem; cursor: pointer; transition: all .15s; font-family: inherit; }
405
+ .chip:hover { background: rgba(59,130,246,0.25); border-color: var(--accent); }
406
+ .chip span { color: var(--text-secondary); font-size: 0.78rem; }
407
+ .chip-danger { background: rgba(239,68,68,0.12); }
408
+ .chip-danger:hover { background: rgba(239,68,68,0.25); border-color: var(--danger); }
409
+ .pg-input-row { display: flex; gap: 0.75rem; margin-bottom: 1.5rem; }
410
+ .pg-input-row .glass-input { flex: 1; font-family: Consolas, monospace; }
411
+ #pg-run { white-space: nowrap; }
412
+ .pg-result { min-height: 50px; }
413
+ .pg-compare { display: flex; align-items: stretch; gap: 1rem; }
414
+ .pg-col { flex: 1; border-radius: 12px; padding: 1rem; border: 1px solid var(--glass-border); overflow: auto; }
415
+ .pg-raw { background: rgba(239,68,68,0.07); border-color: rgba(239,68,68,0.3); }
416
+ .pg-gov { background: rgba(16,185,129,0.07); border-color: rgba(16,185,129,0.3); }
417
+ .pg-col-head { font-weight: 600; font-size: 0.85rem; margin-bottom: 0.75rem; }
418
+ .pg-col pre { font-family: Consolas, monospace; font-size: 0.8rem; line-height: 1.5; white-space: pre; color: var(--text-primary); margin: 0; }
419
+ .pg-arrow { display: flex; align-items: center; color: var(--accent); font-size: 1.5rem; font-weight: 700; }
420
+ .jk { color: #7dd3fc; }
421
+ .jv { color: #f8fafc; }
422
+ .jmask { color: var(--danger); font-weight: 700; background: rgba(239,68,68,0.15); padding: 0 4px; border-radius: 4px; }
423
+ .pg-logged { display: inline-block; margin-top: 1rem; color: var(--success); font-size: 0.85rem; font-weight: 500; }
424
+ .pg-blocked { display: flex; gap: 1rem; align-items: flex-start; padding: 1.5rem; background: rgba(239,68,68,0.08); border: 1px solid rgba(239,68,68,0.35); border-radius: 12px; }
425
+ .pg-blocked-icon { font-size: 2rem; }
426
+ .pg-blocked h4 { color: var(--danger); margin-bottom: 0.4rem; }
427
+ .pg-blocked p { color: var(--text-secondary); margin-bottom: 0.6rem; }
428
+
429
+ /* --- Responsive Design (Mobile & Tablet) --- */
430
+ @media (max-width: 768px) {
431
+ .app-container {
432
+ flex-direction: column;
433
+ }
434
+
435
+ .sidebar {
436
+ width: 100%;
437
+ padding: 1rem;
438
+ border-right: none;
439
+ border-bottom: 1px solid var(--glass-border);
440
+ flex-direction: row;
441
+ justify-content: space-between;
442
+ align-items: center;
443
+ gap: 1rem;
444
+ }
445
+
446
+ .sidebar nav {
447
+ flex-direction: row;
448
+ overflow-x: auto;
449
+ white-space: nowrap;
450
+ padding-bottom: 0.25rem;
451
+ }
452
+
453
+ .nav-item {
454
+ padding: 0.5rem 0.75rem;
455
+ }
456
+
457
+ .nav-item:hover {
458
+ transform: translateY(-2px);
459
+ }
460
+
461
+ .nav-item.active {
462
+ border-left: none;
463
+ border-bottom: 3px solid var(--accent);
464
+ }
465
+
466
+ .main-content {
467
+ padding: 1rem;
468
+ }
469
+
470
+ .header {
471
+ flex-direction: column;
472
+ align-items: flex-start;
473
+ gap: 1rem;
474
+ padding: 1.25rem;
475
+ }
476
+
477
+ .pg-input-row {
478
+ flex-direction: column;
479
+ }
480
+
481
+ .pg-compare {
482
+ flex-direction: column;
483
+ align-items: center;
484
+ }
485
+
486
+ .pg-arrow {
487
+ transform: rotate(90deg);
488
+ margin: 0.5rem 0;
489
+ }
490
+ }