@autorender/sdk-core 0.1.4

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,1010 @@
1
+ :host {
2
+ --ar-font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
3
+ --ar-color-bg: hsl(0 0% 100%);
4
+ --ar-color-bg-muted: hsl(210 40% 96%);
5
+ --ar-color-border: hsl(214 32% 91%);
6
+ --ar-color-text: hsl(222 47% 11%);
7
+ --ar-color-muted-foreground: hsl(215 16% 47%);
8
+ --ar-color-accent: #0c55f9;
9
+ --ar-radius: 8px;
10
+ display: block;
11
+ }
12
+
13
+ /* :host([data-trigger='inline']) {
14
+ width: 100%;
15
+ } */
16
+
17
+ :host([data-trigger='inline']) .ar-uploader-root,
18
+ :host([data-trigger='inline']) .ar-inline-upload,
19
+ :host([data-trigger='inline']) .ar-inline-panel {
20
+ width: 100%;
21
+ min-width: 0;
22
+ }
23
+
24
+ :host([data-theme='dark']) {
25
+ --ar-color-bg: hsl(222 41% 6%);
26
+ --ar-color-bg-muted: hsl(217 33% 17%);
27
+ --ar-color-border: hsl(217 19% 27%);
28
+ --ar-color-text: hsl(213 31% 91%);
29
+ --ar-color-muted-foreground: hsl(215 20% 65%);
30
+ --ar-color-accent: #4c8dff;
31
+ }
32
+
33
+ .ar-uploader-root {
34
+ display: flex;
35
+ flex-direction: column;
36
+ gap: 1.5rem;
37
+ font-family: var(--ar-font-family);
38
+ background-color: var(--ar-color-bg);
39
+ color: var(--ar-color-text);
40
+ border: 1px solid var(--ar-color-border);
41
+ border-radius: var(--ar-radius);
42
+ padding: 0.5rem 1rem 1rem 1rem;
43
+ }
44
+
45
+ :host([data-theme='dark']) .ar-uploader-root {
46
+ background-color: hsl(222 41% 6%);
47
+ }
48
+
49
+ .ar-uploader-root[data-trigger='button'] {
50
+ border: none;
51
+ padding: 0;
52
+ box-shadow: none;
53
+ background: transparent;
54
+ }
55
+
56
+ .ar-header {
57
+ display: none;
58
+ }
59
+
60
+ .ar-uploader-root.has-items .ar-header {
61
+ display: flex;
62
+ }
63
+
64
+ .ar-title {
65
+ margin: 0;
66
+ font-size: 1.25rem;
67
+ font-weight: 600;
68
+ }
69
+
70
+ .ar-description {
71
+ margin: 0;
72
+ color: var(--ar-color-muted-foreground);
73
+ font-size: 0.95rem;
74
+ }
75
+
76
+ .ar-subtext {
77
+ margin: 0;
78
+ font-size: 0.8rem;
79
+ color: var(--ar-color-muted-foreground);
80
+ }
81
+
82
+ .ar-button-trigger {
83
+ display: inline-flex;
84
+ align-items: center;
85
+ justify-content: center;
86
+ gap: 0.45rem;
87
+ padding: 0.55rem 1.25rem;
88
+ font-weight: 600;
89
+ border-radius: var(--ar-radius);
90
+ border: 1px solid rgba(15, 23, 42, 0.08);
91
+ background: rgba(248, 250, 252, 0.9);
92
+ color: var(--ar-color-text);
93
+ cursor: pointer;
94
+ transition: all 0.2s ease;
95
+ box-shadow: 0 6px 16px rgba(15, 23, 42, 0.06);
96
+ }
97
+
98
+ :host([data-theme='dark']) .ar-button-trigger,
99
+ [data-theme='dark'] .ar-button-trigger {
100
+ border: 1px solid rgba(148, 163, 184, 0.25);
101
+ background: rgba(30, 41, 59, 0.75);
102
+ color: var(--ar-color-text);
103
+ }
104
+
105
+ .ar-button-trigger:hover {
106
+ /* color: var(--ar-color-accent); */
107
+ transform: translateY(-1px);
108
+ }
109
+
110
+ .ar-button-trigger:active {
111
+ transform: translateY(0);
112
+ }
113
+
114
+ .ar-button-icon {
115
+ display: inline-flex;
116
+ align-items: center;
117
+ justify-content: center;
118
+ }
119
+
120
+ .ar-button-icon svg {
121
+ width: 1rem;
122
+ height: 1rem;
123
+ fill: currentColor;
124
+ }
125
+
126
+ .ar-inline-upload {
127
+ display: flex;
128
+ flex-direction: column;
129
+ gap: 1.1rem;
130
+ }
131
+
132
+ .ar-inline-panel {
133
+ display: flex;
134
+ flex-direction: column;
135
+ }
136
+
137
+ .ar-modal-header.is-inline {
138
+ justify-content: flex-start;
139
+ align-items: center;
140
+ gap: 0.5rem;
141
+ padding-top:0.5rem;
142
+ }
143
+
144
+ .ar-modal-upload.is-inline {
145
+ gap: 1rem;
146
+ }
147
+
148
+ .ar-modal-footer.is-inline {
149
+ padding: 0;
150
+ border-top: none;
151
+ }
152
+
153
+ .ar-modal-footer.is-inline .ar-modal-footer-actions {
154
+ margin-left: auto;
155
+ }
156
+
157
+ .ar-dropzone {
158
+ position: relative;
159
+ border: 1.5px dashed var(--ar-dropzone-border, var(--ar-color-border));
160
+ border-radius: var(--ar-radius);
161
+ background: var(--ar-dropzone-bg, var(--ar-color-bg));
162
+ padding: 3rem 2rem;
163
+ display: flex;
164
+ flex-direction: column;
165
+ align-items: center;
166
+ text-align: center;
167
+ gap: 1rem;
168
+ cursor: pointer;
169
+ transition: border-color 0.2s ease, background-color 0.2s ease, transform 0.2s ease;
170
+ margin: 0.6rem 0rem 1rem 0rem;
171
+ }
172
+
173
+ :host([data-theme='dark']) .ar-dropzone {
174
+ background-color: hsl(222 41% 8%);
175
+ }
176
+
177
+ .ar-dropzone:hover {
178
+ border-color: var(--ar-color-accent);
179
+ background-color: rgba(12, 85, 249, 0.07);
180
+ transform: translateY(-1px);
181
+ }
182
+
183
+ .ar-dropzone.is-dragover {
184
+ border-color: var(--ar-color-accent);
185
+ background-color: rgba(12, 85, 249, 0.1);
186
+ }
187
+
188
+ .ar-dropzone.is-dragging {
189
+ border-color: var(--ar-color-accent);
190
+ background: rgba(12, 85, 249, 0.08);
191
+ color: var(--ar-color-accent);
192
+ }
193
+
194
+ .ar-dropzone-icon {
195
+ width: 3rem;
196
+ height: 3rem;
197
+ border-radius: var(--ar-radius);
198
+ background: rgba(12, 85, 249, 0.08);
199
+ color: var(--ar-color-accent);
200
+ display: flex;
201
+ align-items: center;
202
+ justify-content: center;
203
+ }
204
+
205
+ .ar-dropzone svg {
206
+ width: 1.75rem;
207
+ height: 1.75rem;
208
+ fill: currentColor;
209
+ }
210
+
211
+ .ar-dropzone-actions {
212
+ display: none;
213
+ }
214
+
215
+ .ar-file-list {
216
+ list-style: none;
217
+ margin: 0;
218
+ padding: 0;
219
+ display: flex;
220
+ flex-direction: column;
221
+ gap: 0.75rem;
222
+ margin-bottom: 1rem;
223
+ }
224
+
225
+ .ar-file-list.is-grid {
226
+ display: grid;
227
+ grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
228
+ gap: 1rem;
229
+ }
230
+
231
+ .ar-file-item {
232
+ border: none;
233
+ border-radius: var(--ar-radius);
234
+ background: rgba(148, 163, 184, 0.15);
235
+ padding: 0.5rem;
236
+ display: flex;
237
+ flex-direction: column;
238
+ gap: 0.45rem;
239
+ position: relative;
240
+ box-sizing: border-box;
241
+ height: 50px;
242
+ }
243
+
244
+ .ar-file-item.is-grid {
245
+ height: auto;
246
+ padding: 0px;
247
+ background: none;
248
+ }
249
+
250
+ :host([data-theme='dark']) .ar-file-item {
251
+ background: hsl(222 41% 10%);
252
+ }
253
+
254
+ .ar-file-header {
255
+ display: flex;
256
+ align-items: center;
257
+ gap: 0.6rem;
258
+ }
259
+
260
+ .ar-file-header.is-grid {
261
+ flex-direction: column;
262
+ align-items: stretch;
263
+ }
264
+
265
+ .ar-file-thumb {
266
+ width: 32px;
267
+ height: 32px;
268
+ border-radius: calc(var(--ar-radius) * 0.5);
269
+ background: rgba(12, 85, 249, 0.1);
270
+ color: var(--ar-color-accent);
271
+ display: flex;
272
+ align-items: center;
273
+ justify-content: center;
274
+ font-size: 0.8rem;
275
+ font-weight: 600;
276
+ overflow: hidden;
277
+ position: relative;
278
+ }
279
+
280
+ .ar-file-thumb.is-grid {
281
+ width: 100%;
282
+ height: 140px;
283
+ border-radius: calc(var(--ar-radius) * 0.75);
284
+ font-size: 1rem;
285
+ }
286
+
287
+ .ar-file-item.is-completed .ar-file-thumb {
288
+ color: #fff;
289
+ }
290
+
291
+ .ar-thumb-status {
292
+ position: absolute;
293
+ bottom: -2px;
294
+ right: -2px;
295
+ width: 18px;
296
+ height: 18px;
297
+ border-radius: 999px;
298
+ background: #1e9f6d;
299
+ color: #fff;
300
+ border: 2px solid var(--ar-color-bg);
301
+ display: flex;
302
+ align-items: center;
303
+ justify-content: center;
304
+ box-shadow: 0 2px 6px rgba(15, 23, 42, 0.25);
305
+ }
306
+
307
+ .ar-thumb-status svg {
308
+ width: 10px;
309
+ height: 10px;
310
+ color: currentColor;
311
+ }
312
+
313
+ .ar-thumb-status.is-error {
314
+ background: rgba(225, 29, 72, 0.85);
315
+ }
316
+
317
+ .ar-file-name {
318
+ font-size: 0.8rem;
319
+ margin: 0;
320
+ color: var(--ar-color-text);
321
+ }
322
+
323
+ .ar-file-item.is-grid .ar-file-name {
324
+ text-align: left;
325
+ font-size: 0.78rem;
326
+ color: var(--ar-color-muted-foreground);
327
+ white-space: nowrap;
328
+ overflow: hidden;
329
+ text-overflow: ellipsis;
330
+ }
331
+
332
+ .ar-file-meta {
333
+ display: flex;
334
+ gap: 0.75rem;
335
+ font-size: 0.8rem;
336
+ color: var(--ar-color-muted-foreground);
337
+ }
338
+
339
+ .ar-file-item.is-grid .ar-file-meta {
340
+ justify-content: center;
341
+ }
342
+
343
+ .ar-remove-button {
344
+ margin-left: auto;
345
+ border: none;
346
+ background: transparent;
347
+ color: var(--ar-color-muted-foreground);
348
+ cursor: pointer;
349
+ padding: 0.25rem;
350
+ border-radius: var(--ar-radius);
351
+ display: inline-flex;
352
+ align-items: center;
353
+ justify-content: center;
354
+ transition: background 0.2s ease, color 0.2s ease;
355
+ }
356
+
357
+ .ar-remove-button.is-grid {
358
+ position: absolute;
359
+ top: 0.6rem;
360
+ right: 0.6rem;
361
+ background: rgba(255, 255, 255, 0.95);
362
+ color: var(--ar-color-text);
363
+ padding: 0.35rem;
364
+ border-radius: var(--ar-radius);
365
+ box-shadow: 0 4px 12px rgba(15, 23, 42, 0.25);
366
+ opacity: 0;
367
+ pointer-events: none;
368
+ transition: opacity 0.15s ease, background 0.2s ease, color 0.2s ease;
369
+ }
370
+
371
+ .ar-file-item.is-grid:hover .ar-remove-button.is-grid {
372
+ opacity: 1;
373
+ pointer-events: auto;
374
+ }
375
+
376
+ :host([data-theme='dark']) .ar-remove-button.is-grid {
377
+ background: rgba(15, 23, 42, 0.92);
378
+ color: var(--ar-color-text);
379
+ box-shadow: 0 4px 18px rgba(8, 47, 73, 0.45);
380
+ }
381
+
382
+ .ar-remove-button svg {
383
+ width: 20px;
384
+ height: 20px;
385
+ display: block;
386
+ }
387
+
388
+ .ar-remove-button svg path,
389
+ .ar-remove-button svg line,
390
+ .ar-remove-button svg rect,
391
+ .ar-remove-button svg circle,
392
+ .ar-remove-button svg polyline {
393
+ stroke: currentColor;
394
+ fill: none;
395
+ }
396
+
397
+ .ar-remove-button:hover:not([disabled]) {
398
+ color: var(--ar-color-text);
399
+ }
400
+
401
+ .ar-progress-track {
402
+ width: 100%;
403
+ height: 4px;
404
+ border-radius: var(--ar-radius);
405
+ background-color: rgba(148, 163, 184, 0.35);
406
+ overflow: hidden;
407
+ }
408
+
409
+ .ar-progress-fill {
410
+ height: 100%;
411
+ width: 100%;
412
+ background: linear-gradient(90deg, #3b82f6 0%, #2563eb 100%);
413
+ background-size: 200% 100%;
414
+ box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
415
+ transition: none;
416
+ position: relative;
417
+ overflow: hidden;
418
+ }
419
+
420
+ .ar-progress-border.is-active .ar-progress-fill.is-indeterminate {
421
+ animation: ar-progress-indeterminate 1.25s ease-in-out infinite alternate;
422
+ }
423
+
424
+ .ar-progress-fill.is-indeterminate {
425
+ transform: translateX(-40%);
426
+ }
427
+
428
+ @keyframes ar-progress-indeterminate {
429
+ from {
430
+ transform: translateX(-40%);
431
+ }
432
+ to {
433
+ transform: translateX(40%);
434
+ }
435
+ }
436
+
437
+ .ar-status {
438
+ display: inline-flex;
439
+ align-items: center;
440
+ gap: 0.35rem;
441
+ font-size: 0.8rem;
442
+ font-weight: 500;
443
+ color: var(--ar-color-muted-foreground);
444
+ }
445
+
446
+ .ar-status svg {
447
+ width: 1rem;
448
+ height: 1rem;
449
+ }
450
+
451
+ .ar-status.is-success {
452
+ color: #1e9f6d;
453
+ }
454
+
455
+ .ar-status.is-error {
456
+ color: #e11d48;
457
+ }
458
+
459
+ .ar-status.is-uploading {
460
+ color: #2563eb;
461
+ }
462
+
463
+ .ar-status.is-warning {
464
+ color: #d97706;
465
+ }
466
+
467
+ .ar-file-error {
468
+ font-size: 0.78rem;
469
+ color: #e11d48;
470
+ }
471
+
472
+ .ar-error-banner {
473
+ display: none;
474
+ margin: 0.75rem 0;
475
+ padding: 0.75rem;
476
+ border-radius: var(--ar-radius);
477
+ border: 1px solid rgba(225, 29, 72, 0.35);
478
+ background: rgba(248, 113, 113, 0.18);
479
+ color: #b91c1c;
480
+ font-size: 0.82rem;
481
+ line-height: 1.4;
482
+ }
483
+
484
+ .ar-error-banner:not([hidden]) {
485
+ display: block;
486
+ }
487
+
488
+ :host([data-theme='dark']) .ar-error-banner {
489
+ border-color: rgba(248, 113, 113, 0.45);
490
+ background: rgba(248, 113, 113, 0.25);
491
+ color: #fecaca;
492
+ }
493
+
494
+ .ar-duplicate-banner {
495
+ display: none;
496
+ margin: 0.75rem 0;
497
+ padding: 0.75rem;
498
+ border-radius: var(--ar-radius);
499
+ background: rgba(248, 113, 113, 0.12);
500
+ color: #9f1239;
501
+ font-size: 0.85rem;
502
+ line-height: 1.3;
503
+ }
504
+
505
+ .ar-duplicate-banner[hidden] {
506
+ display: none !important;
507
+ }
508
+
509
+ .ar-actions {
510
+ display: flex;
511
+ justify-content: flex-end;
512
+ }
513
+
514
+ .ar-upload-button {
515
+ border-radius: var(--ar-radius);
516
+ padding: 0.65rem 1.5rem;
517
+ font-weight: 600;
518
+ border: none;
519
+ background: var(--ar-color-accent);
520
+ color: white;
521
+ cursor: pointer;
522
+ transition: filter 0.2s ease, transform 0.2s ease;
523
+ min-width: 140px;
524
+ }
525
+
526
+ .ar-upload-button:hover:not([disabled]) {
527
+ filter: brightness(1.05);
528
+ transform: translateY(-1px);
529
+ }
530
+
531
+ .ar-upload-button[disabled] {
532
+ opacity: 0.55;
533
+ cursor: not-allowed;
534
+ }
535
+
536
+ .ar-footer {
537
+ font-size: 0.78rem;
538
+ color: var(--ar-color-muted-foreground);
539
+ text-align: right;
540
+ }
541
+
542
+ .ar-modal {
543
+ position: fixed;
544
+ inset: 0;
545
+ display: none;
546
+ align-items: center;
547
+ justify-content: center;
548
+ z-index: 1000;
549
+ }
550
+
551
+ .ar-modal.is-open {
552
+ display: flex;
553
+ }
554
+
555
+ .ar-modal-backdrop {
556
+ position: absolute;
557
+ inset: 0;
558
+ background: rgba(15, 23, 42, 0.45);
559
+ }
560
+
561
+ .ar-modal-dialog {
562
+ position: relative;
563
+ background: var(--ar-color-bg);
564
+ border-radius: 16px;
565
+ border: 1px solid var(--ar-color-border);
566
+ box-shadow: 0 32px 80px rgba(15, 23, 42, 0.25);
567
+ width: min(460px, 92vw);
568
+ max-height: 90vh;
569
+ display: flex;
570
+ flex-direction: column;
571
+ padding: 0.5rem 1rem 1rem 1rem;
572
+ }
573
+
574
+ .ar-modal-header {
575
+ display: flex;
576
+ align-items: center;
577
+ justify-content: space-between;
578
+ gap: 1rem;
579
+ margin-bottom: 1rem;
580
+ }
581
+
582
+ .ar-modal-title {
583
+ margin: 0;
584
+ font-size: 1rem;
585
+ font-weight: 500;
586
+ }
587
+
588
+ .ar-modal-close {
589
+ border: none;
590
+ background: transparent;
591
+ color: var(--ar-color-muted-foreground);
592
+ cursor: pointer;
593
+ border-radius: var(--ar-radius);
594
+ padding: 0.3rem;
595
+ transition: color 0.2s ease, background 0.2s ease;
596
+ }
597
+
598
+ .ar-modal-close:hover {
599
+ background: rgba(148, 163, 184, 0.15);
600
+ color: var(--ar-color-accent);
601
+ }
602
+
603
+ .ar-modal-close-icon svg {
604
+ width: 1.2rem;
605
+ height: 1.2rem;
606
+ }
607
+
608
+ .ar-modal-body {
609
+ display: flex;
610
+ flex-direction: column;
611
+ gap: 1rem;
612
+ overflow-y: auto;
613
+ padding-right: 0.25rem;
614
+ }
615
+
616
+ .ar-modal-footer {
617
+ display: flex;
618
+ align-items: center;
619
+ justify-content: space-between;
620
+ gap: 1rem;
621
+ }
622
+
623
+ .ar-modal-footer-actions {
624
+ display: flex;
625
+ align-items: center;
626
+ gap: 0.5rem;
627
+ }
628
+
629
+ .ar-modal-add-more,
630
+ .ar-modal-clear {
631
+ border-radius: var(--ar-radius);
632
+ padding: 0.55rem 1.25rem;
633
+ font-weight: 600;
634
+ border: 1px solid var(--ar-color-border);
635
+ background: var(--ar-color-bg);
636
+ color: var(--ar-color-text);
637
+ cursor: pointer;
638
+ transition: all 0.2s ease;
639
+ }
640
+
641
+ .ar-modal-add-more:hover {
642
+ border-color: var(--ar-color-accent);
643
+ color: var(--ar-color-accent);
644
+ }
645
+
646
+ .ar-modal-clear {
647
+ background: rgba(148, 163, 184, 0.12);
648
+ }
649
+
650
+ .ar-modal-clear[disabled] {
651
+ opacity: 0.45;
652
+ cursor: not-allowed;
653
+ pointer-events: none;
654
+ }
655
+
656
+ .ar-modal-clear:hover {
657
+ border-color: var(--ar-color-accent);
658
+ color: var(--ar-color-accent);
659
+ }
660
+
661
+ .ar-modal-upload-button,
662
+ .ar-modal-done {
663
+ border-radius: var(--ar-radius);
664
+ padding: 0.55rem 1.25rem;
665
+ font-weight: 600;
666
+ border: none;
667
+ background: var(--ar-color-accent);
668
+ color: white;
669
+ cursor: pointer;
670
+ transition: filter 0.2s ease;
671
+ }
672
+
673
+ .ar-modal-upload-button:hover,
674
+ .ar-modal-done:hover {
675
+ filter: brightness(1.05);
676
+ }
677
+
678
+ .ar-uploaded-summary {
679
+ display: flex;
680
+ flex-direction: column;
681
+ gap: 0.85rem;
682
+ border-top: 1px solid var(--ar-color-border);
683
+ padding-top: 1rem;
684
+ }
685
+
686
+ .ar-uploader-root[data-trigger='button'] .ar-uploaded-summary {
687
+ border: 1px solid var(--ar-color-border);
688
+ border-radius: var(--ar-radius);
689
+ padding: 1rem;
690
+ background: var(--ar-color-bg-muted);
691
+ }
692
+
693
+ .ar-summary-title {
694
+ margin: 0;
695
+ font-size: 0.95rem;
696
+ font-weight: 600;
697
+ }
698
+
699
+ .ar-summary-list {
700
+ list-style: none;
701
+ margin: 0;
702
+ padding: 0;
703
+ display: flex;
704
+ flex-direction: column;
705
+ gap: 0.75rem;
706
+ }
707
+
708
+ .ar-summary-item {
709
+ display: flex;
710
+ align-items: center;
711
+ gap: 0.75rem;
712
+ }
713
+
714
+ .ar-summary-icon {
715
+ width: 38px;
716
+ height: 38px;
717
+ border-radius: var(--ar-radius);
718
+ background: rgba(12, 85, 249, 0.12);
719
+ color: var(--ar-color-accent);
720
+ display: flex;
721
+ align-items: center;
722
+ justify-content: center;
723
+ font-weight: 600;
724
+ }
725
+
726
+ .ar-summary-info {
727
+ display: flex;
728
+ flex-direction: column;
729
+ gap: 0.2rem;
730
+ }
731
+
732
+ .ar-summary-name {
733
+ font-weight: 600;
734
+ font-size: 0.95rem;
735
+ }
736
+
737
+ .ar-summary-meta {
738
+ font-size: 0.8rem;
739
+ color: var(--ar-color-muted-foreground);
740
+ }
741
+
742
+ @media (max-width: 640px) {
743
+ .ar-uploader-root {
744
+ padding: 1rem;
745
+ }
746
+
747
+ .ar-dropzone {
748
+ padding: 2.25rem 1.25rem;
749
+ }
750
+
751
+ .ar-modal-dialog {
752
+ width: min(90vw, 420px);
753
+ padding: 1.25rem;
754
+ }
755
+ }
756
+
757
+ .ar-uploader-root.is-uploading .ar-dropzone {
758
+ display: none;
759
+ }
760
+
761
+ .ar-uploader-root.has-items .ar-file-list {
762
+ display: flex;
763
+ }
764
+
765
+ .ar-file-list:empty {
766
+ display: none;
767
+ }
768
+
769
+ .ar-modal-upload {
770
+ display: flex;
771
+ flex-direction: column;
772
+ }
773
+
774
+ .ar-modal-body .ar-file-list {
775
+ display: flex;
776
+ flex-direction: column;
777
+ gap: 0.5rem;
778
+ max-height: 220px;
779
+ overflow-y: auto;
780
+ border: none;
781
+ background: transparent;
782
+ padding: 0;
783
+ }
784
+
785
+ .ar-button-trigger,
786
+ .ar-dropzone-button,
787
+ .ar-upload-button,
788
+ .ar-modal-footer button,
789
+ .ar-actions button,
790
+ .ar-remove-button,
791
+ .ar-modal-header button {
792
+ font-size: 1rem;
793
+ font-weight: 400;
794
+ }
795
+
796
+ .ar-file-item.is-uploading {
797
+ border-color: var(--ar-color-accent);
798
+ }
799
+
800
+ .ar-file-item.is-completed {
801
+ border-color: rgba(30, 159, 109, 0.6);
802
+ }
803
+
804
+ .ar-file-item.is-error {
805
+ border: 1px solid rgba(225, 29, 72, 0.4);
806
+ background: rgba(248, 113, 113, 0.12);
807
+ }
808
+
809
+ .ar-progress-border {
810
+ opacity: 0;
811
+ height: 2px;
812
+ width: 96%;
813
+ border-radius: 999px;
814
+ background: rgba(59, 130, 246, 0.18);
815
+ overflow: hidden;
816
+ margin-top: 0.35rem;
817
+ position: absolute;
818
+ bottom: 0;
819
+ left: 6px;
820
+ right: 6px;
821
+ }
822
+
823
+ .ar-progress-border.is-active,
824
+ .ar-progress-border.is-complete {
825
+ opacity: 1;
826
+ }
827
+
828
+ .ar-progress-border.is-train {
829
+ background: rgba(59, 130, 246, 0.18);
830
+ }
831
+
832
+ .ar-progress-fill-bar {
833
+ display: none;
834
+ }
835
+
836
+ .ar-progress-fill {
837
+ height: 100%;
838
+ width: 0%;
839
+ border-radius: inherit;
840
+ background: linear-gradient(90deg, #3b82f6 0%, #2563eb 100%);
841
+ transition: width 0.25s ease;
842
+ transform-origin: left center;
843
+ animation: none;
844
+ }
845
+
846
+ .ar-progress-fill.is-train {
847
+ background-image: linear-gradient(
848
+ 90deg,
849
+ rgba(245, 250, 241, 0.93) 0%,
850
+ rgba(240, 242, 247, 0.85) 80%,
851
+ rgb(30, 101, 212) 100%
852
+ );
853
+ background-size: 220% 100%;
854
+ animation: ar-progress-train 2.4s linear infinite;
855
+ }
856
+
857
+ .ar-progress-border.is-complete {
858
+ background: rgba(34, 197, 94, 0.25);
859
+ }
860
+
861
+ .ar-progress-border.is-complete .ar-progress-fill {
862
+ background-image: linear-gradient(
863
+ 90deg,
864
+ rgba(52, 211, 153, 0.3) 0%,
865
+ rgba(16, 185, 129, 0.85) 50%,
866
+ rgba(52, 211, 153, 0.3) 100%
867
+ );
868
+ animation: none;
869
+ }
870
+
871
+ @keyframes ar-progress-train {
872
+ 0% {
873
+ background-position: 240% 0;
874
+ }
875
+ 100% {
876
+ background-position: -240% 0;
877
+ }
878
+ }
879
+
880
+ .ar-actions-sources,
881
+ .ar-modal-sources {
882
+ display: none;
883
+ }
884
+
885
+ .ar-actions-sources.is-visible,
886
+ .ar-modal-sources.is-visible {
887
+ display: flex;
888
+ gap: 0.5rem;
889
+ align-items: center;
890
+ }
891
+
892
+ .ar-source-list {
893
+ display: none;
894
+ flex-direction: column;
895
+ margin: 1rem 0rem;
896
+ }
897
+
898
+ .ar-source-list--choices {
899
+ display: flex;
900
+ }
901
+
902
+ .ar-source-option {
903
+ display: flex;
904
+ align-items: center;
905
+ gap: 0.65rem;
906
+ width: 100%;
907
+ border: none;
908
+ border-radius: var(--ar-radius);
909
+ background: transparent;
910
+ padding: 0.55rem 0.75rem;
911
+ text-align: left;
912
+ color: var(--ar-color-text);
913
+ cursor: pointer;
914
+ transition: background-color 0.2s ease, color 0.2s ease;
915
+ }
916
+
917
+ .ar-source-option.is-primary {
918
+ background: rgba(12, 85, 249, 0.12);
919
+ color: var(--ar-color-accent);
920
+ }
921
+
922
+ .ar-source-option:hover:not([disabled]),
923
+ .ar-source-option:focus-visible {
924
+ background: rgba(12, 85, 249, 0.08);
925
+ color: var(--ar-color-accent);
926
+ }
927
+
928
+ .ar-source-option[disabled] {
929
+ cursor: not-allowed;
930
+ opacity: 0.6;
931
+ }
932
+
933
+ .ar-source-option-icon {
934
+ display: inline-flex;
935
+ align-items: center;
936
+ justify-content: center;
937
+ width: 20px;
938
+ height: 20px;
939
+ color: var(--ar-color-muted-foreground);
940
+ }
941
+
942
+ .ar-source-option-label {
943
+ flex: 1;
944
+ font-size: 0.95rem;
945
+ }
946
+
947
+ .ar-source-inline {
948
+ display: flex;
949
+ gap: 0.5rem;
950
+ align-items: center;
951
+ }
952
+
953
+ .ar-source-inline-button {
954
+ width: 36px;
955
+ height: 36px;
956
+ border-radius: 999px;
957
+ border: 1px solid var(--ar-color-border);
958
+ background: transparent;
959
+ display: inline-flex;
960
+ align-items: center;
961
+ justify-content: center;
962
+ color: var(--ar-color-text);
963
+ transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
964
+ }
965
+
966
+ .ar-source-inline-button:hover:not([disabled]) {
967
+ background: rgba(12, 85, 249, 0.12);
968
+ color: var(--ar-color-accent);
969
+ border-color: rgba(12, 85, 249, 0.2);
970
+ }
971
+
972
+ .ar-source-inline-button svg {
973
+ width: 18px;
974
+ height: 18px;
975
+ display: block;
976
+ }
977
+
978
+ .ar-modal-cancel.is-fullwidth {
979
+ width: 100%;
980
+ justify-content: center;
981
+ cursor: pointer;
982
+ }
983
+
984
+ .ar-modal-powered,
985
+ .ar-inline-powered {
986
+ margin-top: 12px;
987
+ font-size: 0.75rem;
988
+ color: var(--ar-color-muted-foreground);
989
+ text-align: center;
990
+ }
991
+
992
+ .ar-modal-cancel {
993
+ background: rgba(148, 163, 184, 0.15);
994
+ border: none;
995
+ color: var(--ar-color-text);
996
+ padding:0.5rem 1rem;
997
+ }
998
+
999
+ .ar-modal-cancel:hover:not([disabled]) {
1000
+ background: rgba(148, 163, 184, 0.25);
1001
+ }
1002
+
1003
+ /* .ar-modal-title.is-dynamic {
1004
+ color: var(--ar-color-accent);
1005
+ } */
1006
+
1007
+ /* .ar-modal-title.is-success {
1008
+ color: #047857;
1009
+ } */
1010
+