Fix dialog cancel and danger button styling
@@ -1,39 +1,67 @@
1
1
/* =========================================================
2
2
RESET & CUSTOM PROPERTIES
3
3
========================================================= */
4
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
4
*,
5
*::before,
6
*::after {
7
box-sizing: border-box;
8
margin: 0;
9
padding: 0;
10
}
5
11
6
12
:root {
7
--bg: #0f1117;
8
--surface: #1a1d27;
9
--surface2: #21242f;
10
--border: #2e3247;
11
--accent: #5b7fff;
12
--accent-hover:#7b9fff;
13
--text: #e8eaf0;
14
--text-muted: #7880a0;
15
--danger: #e05c6e;
16
--success: #3fcf8e;
17
--radius: 10px;
18
--topbar-h: 56px;
19
--sidebar-w: 300px;
20
--transition: 0.18s ease;
21
}
22
23
html, body { height: 100%; font-family: system-ui, -apple-system, sans-serif; }
24
body { background: var(--bg); color: var(--text); overflow: hidden; }
25
26
.hidden { display: none !important; }
27
.muted { color: var(--text-muted); }
28
.error { color: var(--danger); font-size: 0.85rem; margin-top: 0.3rem; }
13
--bg: #0f1117;
14
--surface: #1a1d27;
15
--surface2: #21242f;
16
--border: #2e3247;
17
--accent: #5b7fff;
18
--accent-hover: #7b9fff;
19
--text: #e8eaf0;
20
--text-muted: #7880a0;
21
--danger: #e05c6e;
22
--success: #3fcf8e;
23
--radius: 10px;
24
--topbar-h: 56px;
25
--sidebar-w: 300px;
26
--transition: 0.18s ease;
27
}
28
29
html,
30
body {
31
height: 100%;
32
font-family: system-ui, -apple-system, sans-serif;
33
}
34
35
body {
36
background: var(--bg);
37
color: var(--text);
38
overflow: hidden;
39
}
40
41
.hidden {
42
display: none !important;
43
}
44
45
.muted {
46
color: var(--text-muted);
47
}
48
49
.error {
50
color: var(--danger);
51
font-size: 0.85rem;
52
margin-top: 0.3rem;
53
}
29
54
30
55
/* =========================================================
31
56
AUTH OVERLAY
32
57
========================================================= */
33
58
.overlay {
34
position: fixed; inset: 0;
59
position: fixed;
60
inset: 0;
35
61
background: var(--bg);
36
display: flex; align-items: center; justify-content: center;
62
display: flex;
63
align-items: center;
64
justify-content: center;
37
65
z-index: 100;
38
66
}
39
67
@@ -45,12 +73,23 @@ body { background: var(--bg); color: var(--text); overflow: hidden; }
45
73
width: min(420px, 92vw);
46
74
}
47
75
48
.auth-card h1 { font-size: 1.6rem; margin-bottom: 0.5rem; }
49
.auth-subtitle { font-size: 0.88rem; color: var(--text-muted); margin-bottom: 1.2rem; }
76
.auth-card h1 {
77
font-size: 1.6rem;
78
margin-bottom: 0.5rem;
79
}
80
81
.auth-subtitle {
82
font-size: 0.88rem;
83
color: var(--text-muted);
84
margin-bottom: 1.2rem;
85
}
50
86
51
87
#auth-form label {
52
display: flex; flex-direction: column; gap: 0.3rem;
53
font-size: 0.85rem; color: var(--text-muted);
88
display: flex;
89
flex-direction: column;
90
gap: 0.3rem;
91
font-size: 0.85rem;
92
color: var(--text-muted);
54
93
margin-bottom: 1rem;
55
94
}
56
95
@@ -64,7 +103,10 @@ body { background: var(--bg); color: var(--text); overflow: hidden; }
64
103
outline: none;
65
104
transition: border-color var(--transition);
66
105
}
67
#auth-form input:focus { border-color: var(--accent); }
106
107
#auth-form input:focus {
108
border-color: var(--accent);
109
}
68
110
69
111
/* =========================================================
70
112
BUTTONS
@@ -78,14 +120,24 @@ button {
78
120
}
79
121
80
122
.icon-btn {
81
display: flex; align-items: center; gap: 0.4rem;
123
display: flex;
124
align-items: center;
125
gap: 0.4rem;
82
126
background: transparent;
83
127
color: var(--text-muted);
84
128
padding: 0.4rem 0.7rem;
85
129
border-radius: 6px;
86
130
}
87
.icon-btn:hover { background: var(--surface2); color: var(--text); }
88
.icon-btn svg { width: 18px; height: 18px; }
131
132
.icon-btn:hover {
133
background: var(--surface2);
134
color: var(--text);
135
}
136
137
.icon-btn svg {
138
width: 18px;
139
height: 18px;
140
}
89
141
90
142
button[type="submit"],
91
143
.primary {
@@ -96,8 +148,23 @@ button[type="submit"],
96
148
width: 100%;
97
149
margin-top: 0.5rem;
98
150
}
151
99
152
button[type="submit"]:hover,
100
.primary:hover { background: var(--accent-hover); }
153
.primary:hover {
154
background: var(--accent-hover);
155
}
156
157
button.danger {
158
background: var(--surface2);
159
color: var(--danger);
160
padding: 0.55rem 1.2rem;
161
width: 100%;
162
margin-top: 0.5rem;
163
}
164
165
button.danger:hover {
166
background: var(--border);
167
}
101
168
102
169
/* =========================================================
103
170
TOP BAR
@@ -119,10 +186,15 @@ button[type="submit"]:hover,
119
186
flex-shrink: 0;
120
187
}
121
188
122
#breadcrumb-wrap { flex: 1; min-width: 0; }
189
#breadcrumb-wrap {
190
flex: 1;
191
min-width: 0;
192
}
123
193
124
194
#breadcrumb {
125
display: flex; align-items: center; flex-wrap: wrap;
195
display: flex;
196
align-items: center;
197
flex-wrap: wrap;
126
198
gap: 0.1rem;
127
199
font-size: 0.9rem;
128
200
white-space: nowrap;
@@ -137,11 +209,28 @@ button[type="submit"]:hover,
137
209
text-decoration: none;
138
210
cursor: pointer;
139
211
}
140
#breadcrumb .crumb:hover { color: var(--text); background: var(--surface2); }
141
#breadcrumb .crumb.active { color: var(--text); cursor: default; }
142
#breadcrumb .sep { color: var(--border); user-select: none; }
143
212
144
#topbar-actions { display: flex; align-items: center; gap: 0.25rem; flex-shrink: 0; }
213
#breadcrumb .crumb:hover {
214
color: var(--text);
215
background: var(--surface2);
216
}
217
218
#breadcrumb .crumb.active {
219
color: var(--text);
220
cursor: default;
221
}
222
223
#breadcrumb .sep {
224
color: var(--border);
225
user-select: none;
226
}
227
228
#topbar-actions {
229
display: flex;
230
align-items: center;
231
gap: 0.25rem;
232
flex-shrink: 0;
233
}
145
234
146
235
/* =========================================================
147
236
MAIN + SIDEBAR LAYOUT
@@ -160,11 +249,14 @@ button[type="submit"]:hover,
160
249
161
250
/* Drop overlay */
162
251
#drop-overlay {
163
position: absolute; inset: 0;
252
position: absolute;
253
inset: 0;
164
254
background: rgba(91, 127, 255, 0.12);
165
255
border: 3px dashed var(--accent);
166
256
border-radius: var(--radius);
167
display: flex; align-items: center; justify-content: center;
257
display: flex;
258
align-items: center;
259
justify-content: center;
168
260
z-index: 10;
169
261
font-size: 1.4rem;
170
262
color: var(--accent);
@@ -172,7 +264,9 @@ button[type="submit"]:hover,
172
264
}
173
265
174
266
/* When sidebar is open, shrink main content */
175
#app.sidebar-open #main-content { margin-right: var(--sidebar-w); }
267
#app.sidebar-open #main-content {
268
margin-right: var(--sidebar-w);
269
}
176
270
177
271
/* =========================================================
178
272
FILE GRID
@@ -184,7 +278,9 @@ button[type="submit"]:hover,
184
278
}
185
279
186
280
.file-item {
187
display: flex; flex-direction: column; align-items: center;
281
display: flex;
282
flex-direction: column;
283
align-items: center;
188
284
padding: 0.9rem 0.5rem 0.7rem;
189
285
border-radius: var(--radius);
190
286
border: 1px solid transparent;
@@ -195,14 +291,29 @@ button[type="submit"]:hover,
195
291
gap: 0.4rem;
196
292
position: relative;
197
293
}
198
.file-item:hover { background: var(--surface); border-color: var(--border); }
199
.file-item.selected { background: var(--surface2); border-color: var(--accent); }
294
295
.file-item:hover {
296
background: var(--surface);
297
border-color: var(--border);
298
}
299
300
.file-item.selected {
301
background: var(--surface2);
302
border-color: var(--accent);
303
}
200
304
201
305
.file-item .icon {
202
width: 52px; height: 52px;
203
display: flex; align-items: center; justify-content: center;
306
width: 52px;
307
height: 52px;
308
display: flex;
309
align-items: center;
310
justify-content: center;
311
}
312
313
.file-item .icon svg {
314
width: 100%;
315
height: 100%;
204
316
}
205
.file-item .icon svg { width: 100%; height: 100%; }
206
317
207
318
.file-item .name {
208
319
font-size: 0.8rem;
@@ -226,17 +337,32 @@ button[type="submit"]:hover,
226
337
padding: 1.25rem;
227
338
overflow-y: auto;
228
339
z-index: 20;
229
display: flex; flex-direction: column; gap: 0.75rem;
340
display: flex;
341
flex-direction: column;
342
gap: 0.75rem;
230
343
}
231
344
232
345
#sidebar-close {
233
background: none; color: var(--text-muted);
234
align-self: flex-end; font-size: 1.1rem; padding: 0.2rem 0.5rem;
346
background: none;
347
color: var(--text-muted);
348
align-self: flex-end;
349
font-size: 1.1rem;
350
padding: 0.2rem 0.5rem;
351
}
352
353
#sidebar-close:hover {
354
color: var(--text);
355
}
356
357
#sidebar-icon {
358
display: flex;
359
justify-content: center;
235
360
}
236
#sidebar-close:hover { color: var(--text); }
237
361
238
#sidebar-icon { display: flex; justify-content: center; }
239
#sidebar-icon svg { width: 64px; height: 64px; }
362
#sidebar-icon svg {
363
width: 64px;
364
height: 64px;
365
}
240
366
241
367
#sidebar-name {
242
368
font-size: 1rem;
@@ -244,29 +370,55 @@ button[type="submit"]:hover,
244
370
text-align: center;
245
371
}
246
372
247
#sidebar-meta { display: grid; grid-template-columns: auto 1fr; gap: 0.3rem 0.75rem; }
248
#sidebar-meta dt { color: var(--text-muted); font-size: 0.8rem; font-weight: 600; }
249
#sidebar-meta dd { font-size: 0.8rem; word-break: break-all; }
373
#sidebar-meta {
374
display: grid;
375
grid-template-columns: auto 1fr;
376
gap: 0.3rem 0.75rem;
377
}
378
379
#sidebar-meta dt {
380
color: var(--text-muted);
381
font-size: 0.8rem;
382
font-weight: 600;
383
}
384
385
#sidebar-meta dd {
386
font-size: 0.8rem;
387
word-break: break-all;
388
}
250
389
251
390
#sidebar-actions {
252
display: flex; flex-direction: column; gap: 0.5rem; margin-top: 0.5rem;
391
display: flex;
392
flex-direction: column;
393
gap: 0.5rem;
394
margin-top: 0.5rem;
253
395
}
254
396
255
397
#sidebar-actions button {
256
background: var(--surface2); color: var(--text);
398
background: var(--surface2);
399
color: var(--text);
257
400
padding: 0.5rem 0.8rem;
258
401
text-align: left;
259
402
}
260
#sidebar-actions button:hover { background: var(--border); }
261
#sidebar-actions button.danger { color: var(--danger); }
403
404
#sidebar-actions button:hover {
405
background: var(--border);
406
}
407
408
#sidebar-actions button.danger {
409
color: var(--danger);
410
}
262
411
263
412
/* =========================================================
264
413
MODALS
265
414
========================================================= */
266
415
.modal-overlay {
267
position: fixed; inset: 0;
268
background: rgba(0,0,0,0.65);
269
display: flex; align-items: center; justify-content: center;
416
position: fixed;
417
inset: 0;
418
background: rgba(0, 0, 0, 0.65);
419
display: flex;
420
align-items: center;
421
justify-content: center;
270
422
z-index: 50;
271
423
}
272
424
@@ -280,87 +432,204 @@ button[type="submit"]:hover,
280
432
overflow-y: auto;
281
433
position: relative;
282
434
}
283
.modal.small { width: min(340px, 94vw); }
284
435
285
.modal h2 { font-size: 1.3rem; margin-bottom: 1.25rem; }
286
.modal h3 { font-size: 1rem; color: var(--text-muted); margin: 1rem 0 0.5rem; }
436
.modal.small {
437
width: min(340px, 94vw);
438
}
439
440
.modal h2 {
441
font-size: 1.3rem;
442
margin-bottom: 1.25rem;
443
}
444
445
.modal h3 {
446
font-size: 1rem;
447
color: var(--text-muted);
448
margin: 1rem 0 0.5rem;
449
}
287
450
288
451
.modal-close {
289
position: absolute; top: 0.75rem; right: 0.75rem;
290
background: none; color: var(--text-muted); font-size: 1.1rem; padding: 0.25rem 0.5rem;
452
position: absolute;
453
top: 0.75rem;
454
right: 0.75rem;
455
background: none;
456
color: var(--text-muted);
457
font-size: 1.1rem;
458
padding: 0.25rem 0.5rem;
459
}
460
461
.modal-close:hover {
462
color: var(--text);
291
463
}
292
.modal-close:hover { color: var(--text); }
293
464
294
465
/* Admin path list */
295
466
.path-row {
296
display: flex; align-items: center; gap: 0.5rem;
467
display: flex;
468
align-items: center;
469
gap: 0.5rem;
297
470
padding: 0.4rem 0;
298
471
border-bottom: 1px solid var(--border);
299
472
font-size: 0.88rem;
300
473
}
301
.path-row span { flex: 1; word-break: break-all; }
302
.path-row button { background: none; color: var(--danger); padding: 0.2rem 0.5rem; }
303
474
304
.path-add-row { display: flex; gap: 0.5rem; margin: 0.5rem 0; }
475
.path-row span {
476
flex: 1;
477
word-break: break-all;
478
}
479
480
.path-row button {
481
background: none;
482
color: var(--danger);
483
padding: 0.2rem 0.5rem;
484
}
485
486
.path-add-row {
487
display: flex;
488
gap: 0.5rem;
489
margin: 0.5rem 0;
490
}
491
305
492
.path-add-row input {
306
flex: 1; background: var(--bg); border: 1px solid var(--border);
307
border-radius: 6px; padding: 0.45rem 0.7rem; color: var(--text);
308
font-size: 0.9rem; outline: none;
493
flex: 1;
494
background: var(--bg);
495
border: 1px solid var(--border);
496
border-radius: 6px;
497
padding: 0.45rem 0.7rem;
498
color: var(--text);
499
font-size: 0.9rem;
500
outline: none;
309
501
}
310
.path-add-row input:focus { border-color: var(--accent); }
502
503
.path-add-row input:focus {
504
border-color: var(--accent);
505
}
506
311
507
.path-add-row button {
312
background: var(--surface2); color: var(--text); padding: 0.45rem 0.9rem;
508
background: var(--surface2);
509
color: var(--text);
510
padding: 0.45rem 0.9rem;
511
}
512
513
.path-add-row button:hover {
514
background: var(--border);
313
515
}
314
.path-add-row button:hover { background: var(--border); }
315
516
316
517
/* User list */
317
518
.user-row {
318
display: flex; align-items: center; gap: 0.6rem;
519
display: flex;
520
align-items: center;
521
gap: 0.6rem;
319
522
padding: 0.5rem 0;
320
523
border-bottom: 1px solid var(--border);
321
524
}
322
.user-row .user-name { flex: 1; font-weight: 600; font-size: 0.9rem; }
525
526
.user-row .user-name {
527
flex: 1;
528
font-weight: 600;
529
font-size: 0.9rem;
530
}
531
323
532
.user-row .user-admin-badge {
324
font-size: 0.72rem; background: var(--accent); color: #fff;
325
border-radius: 4px; padding: 0.1rem 0.4rem;
533
font-size: 0.72rem;
534
background: var(--accent);
535
color: #fff;
536
border-radius: 4px;
537
padding: 0.1rem 0.4rem;
538
}
539
540
.user-row button {
541
background: none;
542
color: var(--text-muted);
543
padding: 0.2rem 0.5rem;
544
font-size: 0.85rem;
545
}
546
547
.user-row button:hover {
548
color: var(--text);
549
}
550
551
.user-row button.danger {
552
color: var(--danger);
326
553
}
327
.user-row button { background: none; color: var(--text-muted); padding: 0.2rem 0.5rem; font-size: 0.85rem; }
328
.user-row button:hover { color: var(--text); }
329
.user-row button.danger { color: var(--danger); }
330
554
331
555
/* User form permissions */
332
#user-permissions { margin-top: 0.75rem; }
333
#user-permissions h4 { font-size: 0.85rem; color: var(--text-muted); margin-bottom: 0.4rem; }
556
#user-permissions {
557
margin-top: 0.75rem;
558
}
559
560
#user-permissions h4 {
561
font-size: 0.85rem;
562
color: var(--text-muted);
563
margin-bottom: 0.4rem;
564
}
565
334
566
.perm-row {
335
display: flex; align-items: center; gap: 0.75rem; flex-wrap: wrap;
336
font-size: 0.85rem; margin-bottom: 0.4rem;
567
display: flex;
568
align-items: center;
569
gap: 0.75rem;
570
flex-wrap: wrap;
571
font-size: 0.85rem;
572
margin-bottom: 0.4rem;
573
}
574
575
.perm-row .perm-label {
576
min-width: 130px;
577
color: var(--text);
578
}
579
580
.checkbox-label {
581
display: flex;
582
align-items: center;
583
gap: 0.5rem;
584
font-size: 0.9rem;
585
margin-bottom: 0.5rem;
586
}
587
588
.checkbox-label input[type="checkbox"] {
589
width: 16px;
590
height: 16px;
591
accent-color: var(--accent);
337
592
}
338
.perm-row .perm-label { min-width: 130px; color: var(--text); }
339
.checkbox-label { display: flex; align-items: center; gap: 0.5rem; font-size: 0.9rem; margin-bottom: 0.5rem; }
340
.checkbox-label input[type="checkbox"] { width: 16px; height: 16px; accent-color: var(--accent); }
341
593
342
594
/* Form labels in modals */
343
595
.modal form label {
344
display: flex; flex-direction: column; gap: 0.3rem;
345
font-size: 0.85rem; color: var(--text-muted);
596
display: flex;
597
flex-direction: column;
598
gap: 0.3rem;
599
font-size: 0.85rem;
600
color: var(--text-muted);
346
601
margin-bottom: 0.9rem;
347
602
}
603
348
604
.modal form input[type="text"],
349
605
.modal form input[type="password"] {
350
background: var(--bg); border: 1px solid var(--border);
351
border-radius: 6px; padding: 0.5rem 0.75rem;
352
color: var(--text); font-size: 0.95rem; outline: none;
606
background: var(--bg);
607
border: 1px solid var(--border);
608
border-radius: 6px;
609
padding: 0.5rem 0.75rem;
610
color: var(--text);
611
font-size: 0.95rem;
612
outline: none;
353
613
transition: border-color var(--transition);
354
614
}
355
.modal form input:focus { border-color: var(--accent); }
615
616
.modal form input:focus {
617
border-color: var(--accent);
618
}
356
619
357
620
/* =========================================================
358
621
TOAST
359
622
========================================================= */
360
623
#toast {
361
position: fixed; bottom: 1.5rem; left: 50%; transform: translateX(-50%);
624
position: fixed;
625
bottom: 1.5rem;
626
left: 50%;
627
transform: translateX(-50%);
362
628
z-index: 200;
363
display: flex; flex-direction: column; align-items: center; gap: 0.5rem;
629
display: flex;
630
flex-direction: column;
631
align-items: center;
632
gap: 0.5rem;
364
633
pointer-events: none;
365
634
}
366
635
@@ -372,30 +641,55 @@ button[type="submit"]:hover,
372
641
font-size: 0.9rem;
373
642
animation: slideup 0.25s ease;
374
643
}
375
.toast-msg.err { border-color: var(--danger); color: var(--danger); }
376
.toast-msg.ok { border-color: var(--success); color: var(--success); }
644
645
.toast-msg.err {
646
border-color: var(--danger);
647
color: var(--danger);
648
}
649
650
.toast-msg.ok {
651
border-color: var(--success);
652
color: var(--success);
653
}
377
654
378
655
@keyframes slideup {
379
from { opacity: 0; transform: translateY(12px); }
380
to { opacity: 1; transform: translateY(0); }
656
from {
657
opacity: 0;
658
transform: translateY(12px);
659
}
660
661
to {
662
opacity: 1;
663
transform: translateY(0);
664
}
381
665
}
382
666
383
667
/* =========================================================
384
668
UPLOAD PROGRESS
385
669
========================================================= */
386
670
.upload-bar-wrap {
387
position: fixed; bottom: 0; left: 0; right: 0;
671
position: fixed;
672
bottom: 0;
673
left: 0;
674
right: 0;
388
675
background: var(--surface);
389
676
border-top: 1px solid var(--border);
390
677
padding: 0.5rem 1rem;
391
678
z-index: 80;
392
679
font-size: 0.85rem;
393
680
}
681
394
682
.upload-bar-track {
395
height: 6px; background: var(--border); border-radius: 3px; margin-top: 0.3rem;
683
height: 6px;
684
background: var(--border);
685
border-radius: 3px;
686
margin-top: 0.3rem;
396
687
}
688
397
689
.upload-bar-fill {
398
height: 100%; background: var(--accent); border-radius: 3px;
690
height: 100%;
691
background: var(--accent);
692
border-radius: 3px;
399
693
transition: width 0.2s linear;
400
694
}
401
695
@@ -430,9 +724,13 @@ button[type="submit"]:hover,
430
724
padding: 0.9rem;
431
725
}
432
726
433
#file-grid { grid-template-columns: repeat(auto-fill, minmax(100px, 1fr)); }
727
#file-grid {
728
grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
729
}
434
730
435
#app.sidebar-open #main-content { margin-right: 0; }
731
#app.sidebar-open #main-content {
732
margin-right: 0;
733
}
436
734
437
735
#sidebar {
438
736
top: auto;
@@ -443,7 +741,9 @@ button[type="submit"]:hover,
443
741
width: 100%;
444
742
}
445
743
446
.modal { padding: 1.25rem; }
744
.modal {
745
padding: 1.25rem;
746
}
447
747
}
448
748
449
749
/* =========================================================
@@ -470,4 +770,17 @@ button[type="submit"]:hover,
470
770
471
771
.dialog-actions button {
472
772
min-width: 5rem;
773
background: var(--surface2);
774
color: var(--text);
775
padding: 0.5rem 1rem;
473
776
}
777
778
.dialog-actions button:hover {
779
background: var(--border);
780
}
781
782
/* Override .primary full-width inside dialog rows */
783
.dialog-actions button.primary {
784
width: auto;
785
margin-top: 0;
786
}
@@ -1,39 +1,67 @@1
/* =========================================================1
/* =========================================================2
RESET & CUSTOM PROPERTIES2
RESET & CUSTOM PROPERTIES3
========================================================= */3
========================================================= */4
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }4
*,5
*::before,6
*::after {7
box-sizing: border-box;8
margin: 0;9
padding: 0;10
}5
11
6
:root {12
:root {7
--bg: #0f1117;13
--bg: #0f1117;8
--surface: #1a1d27;14
--surface: #1a1d27;9
--surface2: #21242f;15
--surface2: #21242f;10
--border: #2e3247;16
--border: #2e3247;11
--accent: #5b7fff;17
--accent: #5b7fff;12
--accent-hover:#7b9fff;18
--accent-hover: #7b9fff;13
--text: #e8eaf0;19
--text: #e8eaf0;14
--text-muted: #7880a0;20
--text-muted: #7880a0;15
--danger: #e05c6e;21
--danger: #e05c6e;16
--success: #3fcf8e;22
--success: #3fcf8e;17
--radius: 10px;23
--radius: 10px;18
--topbar-h: 56px;24
--topbar-h: 56px;19
--sidebar-w: 300px;25
--sidebar-w: 300px;20
--transition: 0.18s ease;26
--transition: 0.18s ease;21
}27
}22
28
23
html, body { height: 100%; font-family: system-ui, -apple-system, sans-serif; }29
html,24
body { background: var(--bg); color: var(--text); overflow: hidden; }30
body {25
31
height: 100%;26
.hidden { display: none !important; }32
font-family: system-ui, -apple-system, sans-serif;27
.muted { color: var(--text-muted); }33
}28
.error { color: var(--danger); font-size: 0.85rem; margin-top: 0.3rem; }34
35
body {36
background: var(--bg);37
color: var(--text);38
overflow: hidden;39
}40
41
.hidden {42
display: none !important;43
}44
45
.muted {46
color: var(--text-muted);47
}48
49
.error {50
color: var(--danger);51
font-size: 0.85rem;52
margin-top: 0.3rem;53
}29
54
30
/* =========================================================55
/* =========================================================31
AUTH OVERLAY56
AUTH OVERLAY32
========================================================= */57
========================================================= */33
.overlay {58
.overlay {34
position: fixed; inset: 0;59
position: fixed;60
inset: 0;35
background: var(--bg);61
background: var(--bg);36
display: flex; align-items: center; justify-content: center;62
display: flex;63
align-items: center;64
justify-content: center;37
z-index: 100;65
z-index: 100;38
}66
}39
67
@@ -45,12 +73,23 @@ body { background: var(--bg); color: var(--text); overflow: hidden; }45
width: min(420px, 92vw);73
width: min(420px, 92vw);46
}74
}47
75
48
.auth-card h1 { font-size: 1.6rem; margin-bottom: 0.5rem; }76
.auth-card h1 {49
.auth-subtitle { font-size: 0.88rem; color: var(--text-muted); margin-bottom: 1.2rem; }77
font-size: 1.6rem;78
margin-bottom: 0.5rem;79
}80
81
.auth-subtitle {82
font-size: 0.88rem;83
color: var(--text-muted);84
margin-bottom: 1.2rem;85
}50
86
51
#auth-form label {87
#auth-form label {52
display: flex; flex-direction: column; gap: 0.3rem;88
display: flex;53
font-size: 0.85rem; color: var(--text-muted);89
flex-direction: column;90
gap: 0.3rem;91
font-size: 0.85rem;92
color: var(--text-muted);54
margin-bottom: 1rem;93
margin-bottom: 1rem;55
}94
}56
95
@@ -64,7 +103,10 @@ body { background: var(--bg); color: var(--text); overflow: hidden; }64
outline: none;103
outline: none;65
transition: border-color var(--transition);104
transition: border-color var(--transition);66
}105
}67
#auth-form input:focus { border-color: var(--accent); }106
107
#auth-form input:focus {108
border-color: var(--accent);109
}68
110
69
/* =========================================================111
/* =========================================================70
BUTTONS112
BUTTONS@@ -78,14 +120,24 @@ button {78
}120
}79
121
80
.icon-btn {122
.icon-btn {81
display: flex; align-items: center; gap: 0.4rem;123
display: flex;124
align-items: center;125
gap: 0.4rem;82
background: transparent;126
background: transparent;83
color: var(--text-muted);127
color: var(--text-muted);84
padding: 0.4rem 0.7rem;128
padding: 0.4rem 0.7rem;85
border-radius: 6px;129
border-radius: 6px;86
}130
}87
.icon-btn:hover { background: var(--surface2); color: var(--text); }131
88
.icon-btn svg { width: 18px; height: 18px; }132
.icon-btn:hover {133
background: var(--surface2);134
color: var(--text);135
}136
137
.icon-btn svg {138
width: 18px;139
height: 18px;140
}89
141
90
button[type="submit"],142
button[type="submit"],91
.primary {143
.primary {@@ -96,8 +148,23 @@ button[type="submit"],96
width: 100%;148
width: 100%;97
margin-top: 0.5rem;149
margin-top: 0.5rem;98
}150
}151
99
button[type="submit"]:hover,152
button[type="submit"]:hover,100
.primary:hover { background: var(--accent-hover); }153
.primary:hover {154
background: var(--accent-hover);155
}156
157
button.danger {158
background: var(--surface2);159
color: var(--danger);160
padding: 0.55rem 1.2rem;161
width: 100%;162
margin-top: 0.5rem;163
}164
165
button.danger:hover {166
background: var(--border);167
}101
168
102
/* =========================================================169
/* =========================================================103
TOP BAR170
TOP BAR@@ -119,10 +186,15 @@ button[type="submit"]:hover,119
flex-shrink: 0;186
flex-shrink: 0;120
}187
}121
188
122
#breadcrumb-wrap { flex: 1; min-width: 0; }189
#breadcrumb-wrap {190
flex: 1;191
min-width: 0;192
}123
193
124
#breadcrumb {194
#breadcrumb {125
display: flex; align-items: center; flex-wrap: wrap;195
display: flex;196
align-items: center;197
flex-wrap: wrap;126
gap: 0.1rem;198
gap: 0.1rem;127
font-size: 0.9rem;199
font-size: 0.9rem;128
white-space: nowrap;200
white-space: nowrap;@@ -137,11 +209,28 @@ button[type="submit"]:hover,137
text-decoration: none;209
text-decoration: none;138
cursor: pointer;210
cursor: pointer;139
}211
}140
#breadcrumb .crumb:hover { color: var(--text); background: var(--surface2); }141
#breadcrumb .crumb.active { color: var(--text); cursor: default; }142
#breadcrumb .sep { color: var(--border); user-select: none; }143
212
144
#topbar-actions { display: flex; align-items: center; gap: 0.25rem; flex-shrink: 0; }213
#breadcrumb .crumb:hover {214
color: var(--text);215
background: var(--surface2);216
}217
218
#breadcrumb .crumb.active {219
color: var(--text);220
cursor: default;221
}222
223
#breadcrumb .sep {224
color: var(--border);225
user-select: none;226
}227
228
#topbar-actions {229
display: flex;230
align-items: center;231
gap: 0.25rem;232
flex-shrink: 0;233
}145
234
146
/* =========================================================235
/* =========================================================147
MAIN + SIDEBAR LAYOUT236
MAIN + SIDEBAR LAYOUT@@ -160,11 +249,14 @@ button[type="submit"]:hover,160
249
161
/* Drop overlay */250
/* Drop overlay */162
#drop-overlay {251
#drop-overlay {163
position: absolute; inset: 0;252
position: absolute;253
inset: 0;164
background: rgba(91, 127, 255, 0.12);254
background: rgba(91, 127, 255, 0.12);165
border: 3px dashed var(--accent);255
border: 3px dashed var(--accent);166
border-radius: var(--radius);256
border-radius: var(--radius);167
display: flex; align-items: center; justify-content: center;257
display: flex;258
align-items: center;259
justify-content: center;168
z-index: 10;260
z-index: 10;169
font-size: 1.4rem;261
font-size: 1.4rem;170
color: var(--accent);262
color: var(--accent);@@ -172,7 +264,9 @@ button[type="submit"]:hover,172
}264
}173
265
174
/* When sidebar is open, shrink main content */266
/* When sidebar is open, shrink main content */175
#app.sidebar-open #main-content { margin-right: var(--sidebar-w); }267
#app.sidebar-open #main-content {268
margin-right: var(--sidebar-w);269
}176
270
177
/* =========================================================271
/* =========================================================178
FILE GRID272
FILE GRID@@ -184,7 +278,9 @@ button[type="submit"]:hover,184
}278
}185
279
186
.file-item {280
.file-item {187
display: flex; flex-direction: column; align-items: center;281
display: flex;282
flex-direction: column;283
align-items: center;188
padding: 0.9rem 0.5rem 0.7rem;284
padding: 0.9rem 0.5rem 0.7rem;189
border-radius: var(--radius);285
border-radius: var(--radius);190
border: 1px solid transparent;286
border: 1px solid transparent;@@ -195,14 +291,29 @@ button[type="submit"]:hover,195
gap: 0.4rem;291
gap: 0.4rem;196
position: relative;292
position: relative;197
}293
}198
.file-item:hover { background: var(--surface); border-color: var(--border); }294
199
.file-item.selected { background: var(--surface2); border-color: var(--accent); }295
.file-item:hover {296
background: var(--surface);297
border-color: var(--border);298
}299
300
.file-item.selected {301
background: var(--surface2);302
border-color: var(--accent);303
}200
304
201
.file-item .icon {305
.file-item .icon {202
width: 52px; height: 52px;306
width: 52px;203
display: flex; align-items: center; justify-content: center;307
height: 52px;308
display: flex;309
align-items: center;310
justify-content: center;311
}312
313
.file-item .icon svg {314
width: 100%;315
height: 100%;204
}316
}205
.file-item .icon svg { width: 100%; height: 100%; }206
317
207
.file-item .name {318
.file-item .name {208
font-size: 0.8rem;319
font-size: 0.8rem;@@ -226,17 +337,32 @@ button[type="submit"]:hover,226
padding: 1.25rem;337
padding: 1.25rem;227
overflow-y: auto;338
overflow-y: auto;228
z-index: 20;339
z-index: 20;229
display: flex; flex-direction: column; gap: 0.75rem;340
display: flex;341
flex-direction: column;342
gap: 0.75rem;230
}343
}231
344
232
#sidebar-close {345
#sidebar-close {233
background: none; color: var(--text-muted);346
background: none;234
align-self: flex-end; font-size: 1.1rem; padding: 0.2rem 0.5rem;347
color: var(--text-muted);348
align-self: flex-end;349
font-size: 1.1rem;350
padding: 0.2rem 0.5rem;351
}352
353
#sidebar-close:hover {354
color: var(--text);355
}356
357
#sidebar-icon {358
display: flex;359
justify-content: center;235
}360
}236
#sidebar-close:hover { color: var(--text); }237
361
238
#sidebar-icon { display: flex; justify-content: center; }362
#sidebar-icon svg {239
#sidebar-icon svg { width: 64px; height: 64px; }363
width: 64px;364
height: 64px;365
}240
366
241
#sidebar-name {367
#sidebar-name {242
font-size: 1rem;368
font-size: 1rem;@@ -244,29 +370,55 @@ button[type="submit"]:hover,244
text-align: center;370
text-align: center;245
}371
}246
372
247
#sidebar-meta { display: grid; grid-template-columns: auto 1fr; gap: 0.3rem 0.75rem; }373
#sidebar-meta {248
#sidebar-meta dt { color: var(--text-muted); font-size: 0.8rem; font-weight: 600; }374
display: grid;249
#sidebar-meta dd { font-size: 0.8rem; word-break: break-all; }375
grid-template-columns: auto 1fr;376
gap: 0.3rem 0.75rem;377
}378
379
#sidebar-meta dt {380
color: var(--text-muted);381
font-size: 0.8rem;382
font-weight: 600;383
}384
385
#sidebar-meta dd {386
font-size: 0.8rem;387
word-break: break-all;388
}250
389
251
#sidebar-actions {390
#sidebar-actions {252
display: flex; flex-direction: column; gap: 0.5rem; margin-top: 0.5rem;391
display: flex;392
flex-direction: column;393
gap: 0.5rem;394
margin-top: 0.5rem;253
}395
}254
396
255
#sidebar-actions button {397
#sidebar-actions button {256
background: var(--surface2); color: var(--text);398
background: var(--surface2);399
color: var(--text);257
padding: 0.5rem 0.8rem;400
padding: 0.5rem 0.8rem;258
text-align: left;401
text-align: left;259
}402
}260
#sidebar-actions button:hover { background: var(--border); }403
261
#sidebar-actions button.danger { color: var(--danger); }404
#sidebar-actions button:hover {405
background: var(--border);406
}407
408
#sidebar-actions button.danger {409
color: var(--danger);410
}262
411
263
/* =========================================================412
/* =========================================================264
MODALS413
MODALS265
========================================================= */414
========================================================= */266
.modal-overlay {415
.modal-overlay {267
position: fixed; inset: 0;416
position: fixed;268
background: rgba(0,0,0,0.65);417
inset: 0;269
display: flex; align-items: center; justify-content: center;418
background: rgba(0, 0, 0, 0.65);419
display: flex;420
align-items: center;421
justify-content: center;270
z-index: 50;422
z-index: 50;271
}423
}272
424
@@ -280,87 +432,204 @@ button[type="submit"]:hover,280
overflow-y: auto;432
overflow-y: auto;281
position: relative;433
position: relative;282
}434
}283
.modal.small { width: min(340px, 94vw); }284
435
285
.modal h2 { font-size: 1.3rem; margin-bottom: 1.25rem; }436
.modal.small {286
.modal h3 { font-size: 1rem; color: var(--text-muted); margin: 1rem 0 0.5rem; }437
width: min(340px, 94vw);438
}439
440
.modal h2 {441
font-size: 1.3rem;442
margin-bottom: 1.25rem;443
}444
445
.modal h3 {446
font-size: 1rem;447
color: var(--text-muted);448
margin: 1rem 0 0.5rem;449
}287
450
288
.modal-close {451
.modal-close {289
position: absolute; top: 0.75rem; right: 0.75rem;452
position: absolute;290
background: none; color: var(--text-muted); font-size: 1.1rem; padding: 0.25rem 0.5rem;453
top: 0.75rem;454
right: 0.75rem;455
background: none;456
color: var(--text-muted);457
font-size: 1.1rem;458
padding: 0.25rem 0.5rem;459
}460
461
.modal-close:hover {462
color: var(--text);291
}463
}292
.modal-close:hover { color: var(--text); }293
464
294
/* Admin path list */465
/* Admin path list */295
.path-row {466
.path-row {296
display: flex; align-items: center; gap: 0.5rem;467
display: flex;468
align-items: center;469
gap: 0.5rem;297
padding: 0.4rem 0;470
padding: 0.4rem 0;298
border-bottom: 1px solid var(--border);471
border-bottom: 1px solid var(--border);299
font-size: 0.88rem;472
font-size: 0.88rem;300
}473
}301
.path-row span { flex: 1; word-break: break-all; }302
.path-row button { background: none; color: var(--danger); padding: 0.2rem 0.5rem; }303
474
304
.path-add-row { display: flex; gap: 0.5rem; margin: 0.5rem 0; }475
.path-row span {476
flex: 1;477
word-break: break-all;478
}479
480
.path-row button {481
background: none;482
color: var(--danger);483
padding: 0.2rem 0.5rem;484
}485
486
.path-add-row {487
display: flex;488
gap: 0.5rem;489
margin: 0.5rem 0;490
}491
305
.path-add-row input {492
.path-add-row input {306
flex: 1; background: var(--bg); border: 1px solid var(--border);493
flex: 1;307
border-radius: 6px; padding: 0.45rem 0.7rem; color: var(--text);494
background: var(--bg);308
font-size: 0.9rem; outline: none;495
border: 1px solid var(--border);496
border-radius: 6px;497
padding: 0.45rem 0.7rem;498
color: var(--text);499
font-size: 0.9rem;500
outline: none;309
}501
}310
.path-add-row input:focus { border-color: var(--accent); }502
503
.path-add-row input:focus {504
border-color: var(--accent);505
}506
311
.path-add-row button {507
.path-add-row button {312
background: var(--surface2); color: var(--text); padding: 0.45rem 0.9rem;508
background: var(--surface2);509
color: var(--text);510
padding: 0.45rem 0.9rem;511
}512
513
.path-add-row button:hover {514
background: var(--border);313
}515
}314
.path-add-row button:hover { background: var(--border); }315
516
316
/* User list */517
/* User list */317
.user-row {518
.user-row {318
display: flex; align-items: center; gap: 0.6rem;519
display: flex;520
align-items: center;521
gap: 0.6rem;319
padding: 0.5rem 0;522
padding: 0.5rem 0;320
border-bottom: 1px solid var(--border);523
border-bottom: 1px solid var(--border);321
}524
}322
.user-row .user-name { flex: 1; font-weight: 600; font-size: 0.9rem; }525
526
.user-row .user-name {527
flex: 1;528
font-weight: 600;529
font-size: 0.9rem;530
}531
323
.user-row .user-admin-badge {532
.user-row .user-admin-badge {324
font-size: 0.72rem; background: var(--accent); color: #fff;533
font-size: 0.72rem;325
border-radius: 4px; padding: 0.1rem 0.4rem;534
background: var(--accent);535
color: #fff;536
border-radius: 4px;537
padding: 0.1rem 0.4rem;538
}539
540
.user-row button {541
background: none;542
color: var(--text-muted);543
padding: 0.2rem 0.5rem;544
font-size: 0.85rem;545
}546
547
.user-row button:hover {548
color: var(--text);549
}550
551
.user-row button.danger {552
color: var(--danger);326
}553
}327
.user-row button { background: none; color: var(--text-muted); padding: 0.2rem 0.5rem; font-size: 0.85rem; }328
.user-row button:hover { color: var(--text); }329
.user-row button.danger { color: var(--danger); }330
554
331
/* User form permissions */555
/* User form permissions */332
#user-permissions { margin-top: 0.75rem; }556
#user-permissions {333
#user-permissions h4 { font-size: 0.85rem; color: var(--text-muted); margin-bottom: 0.4rem; }557
margin-top: 0.75rem;558
}559
560
#user-permissions h4 {561
font-size: 0.85rem;562
color: var(--text-muted);563
margin-bottom: 0.4rem;564
}565
334
.perm-row {566
.perm-row {335
display: flex; align-items: center; gap: 0.75rem; flex-wrap: wrap;567
display: flex;336
font-size: 0.85rem; margin-bottom: 0.4rem;568
align-items: center;569
gap: 0.75rem;570
flex-wrap: wrap;571
font-size: 0.85rem;572
margin-bottom: 0.4rem;573
}574
575
.perm-row .perm-label {576
min-width: 130px;577
color: var(--text);578
}579
580
.checkbox-label {581
display: flex;582
align-items: center;583
gap: 0.5rem;584
font-size: 0.9rem;585
margin-bottom: 0.5rem;586
}587
588
.checkbox-label input[type="checkbox"] {589
width: 16px;590
height: 16px;591
accent-color: var(--accent);337
}592
}338
.perm-row .perm-label { min-width: 130px; color: var(--text); }339
.checkbox-label { display: flex; align-items: center; gap: 0.5rem; font-size: 0.9rem; margin-bottom: 0.5rem; }340
.checkbox-label input[type="checkbox"] { width: 16px; height: 16px; accent-color: var(--accent); }341
593
342
/* Form labels in modals */594
/* Form labels in modals */343
.modal form label {595
.modal form label {344
display: flex; flex-direction: column; gap: 0.3rem;596
display: flex;345
font-size: 0.85rem; color: var(--text-muted);597
flex-direction: column;598
gap: 0.3rem;599
font-size: 0.85rem;600
color: var(--text-muted);346
margin-bottom: 0.9rem;601
margin-bottom: 0.9rem;347
}602
}603
348
.modal form input[type="text"],604
.modal form input[type="text"],349
.modal form input[type="password"] {605
.modal form input[type="password"] {350
background: var(--bg); border: 1px solid var(--border);606
background: var(--bg);351
border-radius: 6px; padding: 0.5rem 0.75rem;607
border: 1px solid var(--border);352
color: var(--text); font-size: 0.95rem; outline: none;608
border-radius: 6px;609
padding: 0.5rem 0.75rem;610
color: var(--text);611
font-size: 0.95rem;612
outline: none;353
transition: border-color var(--transition);613
transition: border-color var(--transition);354
}614
}355
.modal form input:focus { border-color: var(--accent); }615
616
.modal form input:focus {617
border-color: var(--accent);618
}356
619
357
/* =========================================================620
/* =========================================================358
TOAST621
TOAST359
========================================================= */622
========================================================= */360
#toast {623
#toast {361
position: fixed; bottom: 1.5rem; left: 50%; transform: translateX(-50%);624
position: fixed;625
bottom: 1.5rem;626
left: 50%;627
transform: translateX(-50%);362
z-index: 200;628
z-index: 200;363
display: flex; flex-direction: column; align-items: center; gap: 0.5rem;629
display: flex;630
flex-direction: column;631
align-items: center;632
gap: 0.5rem;364
pointer-events: none;633
pointer-events: none;365
}634
}366
635
@@ -372,30 +641,55 @@ button[type="submit"]:hover,372
font-size: 0.9rem;641
font-size: 0.9rem;373
animation: slideup 0.25s ease;642
animation: slideup 0.25s ease;374
}643
}375
.toast-msg.err { border-color: var(--danger); color: var(--danger); }644
376
.toast-msg.ok { border-color: var(--success); color: var(--success); }645
.toast-msg.err {646
border-color: var(--danger);647
color: var(--danger);648
}649
650
.toast-msg.ok {651
border-color: var(--success);652
color: var(--success);653
}377
654
378
@keyframes slideup {655
@keyframes slideup {379
from { opacity: 0; transform: translateY(12px); }656
from {380
to { opacity: 1; transform: translateY(0); }657
opacity: 0;658
transform: translateY(12px);659
}660
661
to {662
opacity: 1;663
transform: translateY(0);664
}381
}665
}382
666
383
/* =========================================================667
/* =========================================================384
UPLOAD PROGRESS668
UPLOAD PROGRESS385
========================================================= */669
========================================================= */386
.upload-bar-wrap {670
.upload-bar-wrap {387
position: fixed; bottom: 0; left: 0; right: 0;671
position: fixed;672
bottom: 0;673
left: 0;674
right: 0;388
background: var(--surface);675
background: var(--surface);389
border-top: 1px solid var(--border);676
border-top: 1px solid var(--border);390
padding: 0.5rem 1rem;677
padding: 0.5rem 1rem;391
z-index: 80;678
z-index: 80;392
font-size: 0.85rem;679
font-size: 0.85rem;393
}680
}681
394
.upload-bar-track {682
.upload-bar-track {395
height: 6px; background: var(--border); border-radius: 3px; margin-top: 0.3rem;683
height: 6px;684
background: var(--border);685
border-radius: 3px;686
margin-top: 0.3rem;396
}687
}688
397
.upload-bar-fill {689
.upload-bar-fill {398
height: 100%; background: var(--accent); border-radius: 3px;690
height: 100%;691
background: var(--accent);692
border-radius: 3px;399
transition: width 0.2s linear;693
transition: width 0.2s linear;400
}694
}401
695
@@ -430,9 +724,13 @@ button[type="submit"]:hover,430
padding: 0.9rem;724
padding: 0.9rem;431
}725
}432
726
433
#file-grid { grid-template-columns: repeat(auto-fill, minmax(100px, 1fr)); }727
#file-grid {728
grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));729
}434
730
435
#app.sidebar-open #main-content { margin-right: 0; }731
#app.sidebar-open #main-content {732
margin-right: 0;733
}436
734
437
#sidebar {735
#sidebar {438
top: auto;736
top: auto;@@ -443,7 +741,9 @@ button[type="submit"]:hover,443
width: 100%;741
width: 100%;444
}742
}445
743
446
.modal { padding: 1.25rem; }744
.modal {745
padding: 1.25rem;746
}447
}747
}448
748
449
/* =========================================================749
/* =========================================================@@ -470,4 +770,17 @@ button[type="submit"]:hover,470
770
471
.dialog-actions button {771
.dialog-actions button {472
min-width: 5rem;772
min-width: 5rem;773
background: var(--surface2);774
color: var(--text);775
padding: 0.5rem 1rem;473
}776
}777
778
.dialog-actions button:hover {779
background: var(--border);780
}781
782
/* Override .primary full-width inside dialog rows */783
.dialog-actions button.primary {784
width: auto;785
margin-top: 0;786
}