BlueGit

timfa filemanager

Files

filemanager / public / style.css

style.css

a
timfa Tim Falken · pushed by timfa · 6 months ago
75cb88e3 History
style.css 26.1 KiB Download Raw
1/* =========================================================
2 RESET & CUSTOM PROPERTIES
3 ========================================================= */
4*,
5*::before,
6*::after {
7 box-sizing: border-box;
8 margin: 0;
9 padding: 0;
10}
11
12:root {
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
29html,
30body {
31 height: 100%;
32 font-family: system-ui, -apple-system, sans-serif;
33}
34
35body {
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}
54
55/* =========================================================
56 AUTH OVERLAY
57 ========================================================= */
58.overlay {
59 position: fixed;
60 inset: 0;
61 background: var(--bg);
62 display: flex;
63 align-items: center;
64 justify-content: center;
65 z-index: 100;
66}
67
68.auth-card {
69 background: var(--surface);
70 border: 1px solid var(--border);
71 border-radius: var(--radius);
72 padding: 2.5rem 2rem;
73 width: min(420px, 92vw);
74}
75
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}
86
87#auth-form label {
88 display: flex;
89 flex-direction: column;
90 gap: 0.3rem;
91 font-size: 0.85rem;
92 color: var(--text-muted);
93 margin-bottom: 1rem;
94}
95
96#auth-form input {
97 background: var(--bg);
98 border: 1px solid var(--border);
99 border-radius: 6px;
100 padding: 0.55rem 0.75rem;
101 color: var(--text);
102 font-size: 1rem;
103 outline: none;
104 transition: border-color var(--transition);
105}
106
107#auth-form input:focus {
108 border-color: var(--accent);
109}
110
111/* =========================================================
112 BUTTONS
113 ========================================================= */
114button {
115 cursor: pointer;
116 border: none;
117 border-radius: 6px;
118 font-size: 0.9rem;
119 transition: background var(--transition), color var(--transition);
120}
121
122.icon-btn {
123 display: flex;
124 align-items: center;
125 gap: 0.4rem;
126 background: transparent;
127 color: var(--text-muted);
128 padding: 0.4rem 0.7rem;
129 border-radius: 6px;
130 position: relative;
131}
132
133.icon-btn:hover {
134 background: var(--surface2);
135 color: var(--text);
136}
137
138.icon-btn svg {
139 width: 18px;
140 height: 18px;
141}
142
143.topbar-badge {
144 position: absolute;
145 top: -0.25rem;
146 right: -0.3rem;
147 min-width: 1.1rem;
148 height: 1.1rem;
149 padding: 0 0.28rem;
150 border-radius: 999px;
151 background: #d33131;
152 color: #fff;
153 font-size: 0.68rem;
154 font-weight: 700;
155 line-height: 1.1rem;
156 text-align: center;
157 border: 1px solid var(--surface);
158}
159
160button[type="submit"],
161.primary {
162 background: var(--accent);
163 color: #fff;
164 padding: 0.55rem 1.2rem;
165 font-weight: 600;
166 width: 100%;
167 margin-top: 0.5rem;
168}
169
170button[type="submit"]:hover,
171.primary:hover {
172 background: var(--accent-hover);
173}
174
175button.danger {
176 background: var(--surface2);
177 color: var(--danger);
178 padding: 0.55rem 1.2rem;
179 width: 100%;
180 margin-top: 0.5rem;
181}
182
183button.danger:hover {
184 background: var(--border);
185}
186
187button.danger.admin-update-highlight {
188 animation: admin-update-pulse 0.9s ease-in-out 2;
189}
190
191@keyframes admin-update-pulse {
192 0% {
193 box-shadow: 0 0 0 0 rgba(211, 49, 49, 0.55);
194 transform: scale(1);
195 }
196
197 50% {
198 box-shadow: 0 0 0 10px rgba(211, 49, 49, 0);
199 transform: scale(1.02);
200 }
201
202 100% {
203 box-shadow: 0 0 0 0 rgba(211, 49, 49, 0);
204 transform: scale(1);
205 }
206}
207
208/* =========================================================
209 TOP BAR
210 ========================================================= */
211#app {
212 display: flex;
213 flex-direction: column;
214 height: 100vh;
215}
216
217#topbar {
218 height: var(--topbar-h);
219 background: var(--surface);
220 border-bottom: 1px solid var(--border);
221 display: flex;
222 align-items: center;
223 padding: 0 1rem;
224 gap: 0.5rem;
225 flex-shrink: 0;
226}
227
228#topbar>#btn-refresh {
229 flex: 0 0 auto;
230}
231
232#breadcrumb-wrap {
233 flex: 1;
234 min-width: 0;
235}
236
237#breadcrumb {
238 display: flex;
239 align-items: center;
240 flex-wrap: wrap;
241 gap: 0.1rem;
242 font-size: 0.9rem;
243 white-space: nowrap;
244 overflow: hidden;
245}
246
247#breadcrumb .crumb {
248 color: var(--text-muted);
249 background: none;
250 padding: 0.2rem 0.35rem;
251 border-radius: 4px;
252 text-decoration: none;
253 cursor: pointer;
254}
255
256#breadcrumb .crumb:hover {
257 color: var(--text);
258 background: var(--surface2);
259}
260
261#breadcrumb .crumb.active {
262 color: var(--text);
263 cursor: default;
264}
265
266#breadcrumb .sep {
267 color: var(--border);
268 user-select: none;
269}
270
271#topbar-actions {
272 display: flex;
273 align-items: center;
274 gap: 0.25rem;
275 flex-shrink: 0;
276 position: relative;
277}
278
279.topbar-dropdown {
280 position: relative;
281}
282
283.topbar-dropdown-menu {
284 position: absolute;
285 top: calc(100% + 0.4rem);
286 left: 0;
287 min-width: 180px;
288 background: var(--surface);
289 border: 1px solid var(--border);
290 border-radius: var(--radius);
291 box-shadow: 0 12px 22px rgba(0, 0, 0, 0.28);
292 padding: 0.35rem;
293 z-index: 140;
294 display: none;
295}
296
297.topbar-dropdown-menu--right {
298 left: auto;
299 right: 0;
300}
301
302.topbar-dropdown.open .topbar-dropdown-menu {
303 display: flex;
304 flex-direction: column;
305 gap: 0.2rem;
306}
307
308.topbar-menu-item {
309 display: flex;
310 align-items: center;
311 gap: 0.48rem;
312 width: 100%;
313 background: transparent;
314 color: var(--text-muted);
315 border-radius: 6px;
316 padding: 0.45rem 0.55rem;
317 text-align: left;
318 position: relative;
319}
320
321.topbar-menu-item svg {
322 width: 16px;
323 height: 16px;
324 flex: 0 0 auto;
325}
326
327.topbar-menu-item:hover {
328 background: var(--surface2);
329 color: var(--text);
330}
331
332.topbar-menu-item .topbar-badge {
333 top: -0.24rem;
334 right: -0.22rem;
335}
336
337.top-search {
338 display: flex;
339 align-items: center;
340 gap: 0.35rem;
341 margin-right: 0.2rem;
342}
343
344.top-search input {
345 width: min(34vw, 300px);
346 min-width: 150px;
347 background: var(--bg);
348 border: 1px solid var(--border);
349 border-radius: 6px;
350 color: var(--text);
351 font-size: 0.88rem;
352 padding: 0.42rem 0.6rem;
353 outline: none;
354}
355
356.top-search input:focus {
357 border-color: var(--accent);
358}
359
360#btn-search {
361 padding: 0.36rem 0.62rem;
362}
363
364.global-favicon-preview {
365 width: 18px;
366 height: 18px;
367 display: inline-flex;
368 align-items: center;
369 justify-content: center;
370 border-radius: 4px;
371 overflow: hidden;
372 color: #fff;
373}
374
375.global-favicon-preview svg,
376.global-favicon-preview img {
377 width: 100%;
378 height: 100%;
379 display: block;
380 object-fit: cover;
381}
382
383.icon-btn.icon-only {
384 width: 2rem;
385 height: 2rem;
386 padding: 0;
387 justify-content: center;
388}
389
390/* =========================================================
391 MAIN + SIDEBAR LAYOUT
392 ========================================================= */
393#main-content {
394 flex: 1;
395 overflow-y: auto;
396 padding: 1.25rem;
397 position: relative;
398}
399
400#folder-stats {
401 margin-bottom: 0.8rem;
402 font-size: 0.85rem;
403}
404
405/* Drop overlay */
406#drop-overlay {
407 position: absolute;
408 inset: 0;
409 background: rgba(91, 127, 255, 0.12);
410 border: 3px dashed var(--accent);
411 border-radius: var(--radius);
412 display: flex;
413 align-items: center;
414 justify-content: center;
415 z-index: 10;
416 font-size: 1.4rem;
417 color: var(--accent);
418 pointer-events: none;
419}
420
421/* When sidebar is open, shrink main content */
422#app.sidebar-open #main-content {
423 margin-right: var(--sidebar-w);
424}
425
426/* =========================================================
427 FILE GRID
428 ========================================================= */
429#file-grid {
430 display: grid;
431 grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
432 gap: 0.75rem;
433}
434
435.file-item {
436 display: flex;
437 flex-direction: column;
438 align-items: center;
439 padding: 0.9rem 0.5rem 0.7rem;
440 border-radius: var(--radius);
441 border: 1px solid transparent;
442 cursor: pointer;
443 user-select: none;
444 transition: background var(--transition), border-color var(--transition);
445 text-align: center;
446 gap: 0.4rem;
447 position: relative;
448 touch-action: manipulation;
449}
450
451.file-item:hover {
452 background: var(--surface);
453 border-color: var(--border);
454}
455
456.file-item.file-item--preview-placeholder {
457 visibility: hidden;
458 pointer-events: none;
459}
460
461.file-item.selected {
462 background: var(--surface2);
463 border-color: var(--accent);
464}
465
466.file-item .icon {
467 width: 52px;
468 height: 52px;
469 display: flex;
470 align-items: center;
471 justify-content: center;
472 position: relative;
473}
474
475.file-item .icon.thumb-pending::after {
476 content: '';
477 position: absolute;
478 width: 14px;
479 height: 14px;
480 left: 50%;
481 top: 50%;
482 border: 2px solid rgba(232, 234, 240, 0.35);
483 border-top-color: var(--accent);
484 border-radius: 50%;
485 animation: icon-thumb-spin 0.75s linear infinite;
486 background: rgba(15, 17, 23, 0.85);
487}
488
489@keyframes icon-thumb-spin {
490 from {
491 transform: translate(-50%, -50%) rotate(0deg);
492 }
493
494 to {
495 transform: translate(-50%, -50%) rotate(360deg);
496 }
497}
498
499.file-item .icon svg {
500 width: 100%;
501 height: 100%;
502}
503
504.file-item .icon .watched-overlay {
505 position: absolute;
506 left: 50%;
507 top: 50%;
508 width: 28px;
509 height: 28px;
510 transform: translate(-50%, -50%);
511 display: flex;
512 align-items: center;
513 justify-content: center;
514 pointer-events: none;
515 border-radius: 50%;
516 background: rgba(15, 17, 23, 0.45);
517}
518
519.file-item .icon .watched-overlay--partway {
520 width: 16.8px;
521 height: 16.8px;
522}
523
524.file-item .icon .watched-overlay--partway path {
525 fill: #8f98a5;
526}
527
528.file-item .icon .watched-overlay-svg {
529 width: 100%;
530 height: 100%;
531}
532
533.file-item .name {
534 font-size: 0.8rem;
535 word-break: break-all;
536 max-width: 100%;
537 line-height: 1.3;
538 color: var(--text);
539}
540
541/* =========================================================
542 SIDEBAR
543 ========================================================= */
544#sidebar {
545 position: fixed;
546 top: var(--topbar-h);
547 right: 0;
548 bottom: 0;
549 width: var(--sidebar-w);
550 background: var(--surface);
551 border-left: 1px solid var(--border);
552 padding: 1.25rem;
553 overflow-y: auto;
554 z-index: 20;
555 display: flex;
556 flex-direction: column;
557 gap: 0.75rem;
558}
559
560#sidebar-close {
561 display: none;
562 align-items: center;
563 justify-content: center;
564 width: 1.7rem;
565 height: 1.7rem;
566 border: 1px solid transparent;
567 border-radius: 999px;
568 background: transparent;
569 color: var(--text-muted);
570 font-size: 1rem;
571 line-height: 1;
572}
573
574#sidebar-close:hover {
575 background: var(--surface2);
576 color: var(--text);
577}
578
579#sidebar-icon {
580 display: flex;
581 justify-content: center;
582}
583
584#sidebar-icon svg {
585 width: 64px;
586 height: 64px;
587}
588
589#sidebar-name {
590 font-size: 1rem;
591 word-break: break-all;
592 text-align: center;
593}
594
595#sidebar-meta {
596 display: grid;
597 grid-template-columns: auto 1fr;
598 gap: 0.3rem 0.75rem;
599}
600
601#sidebar-meta dt {
602 color: var(--text-muted);
603 font-size: 0.8rem;
604 font-weight: 600;
605}
606
607#sidebar-meta dd {
608 font-size: 0.8rem;
609 word-break: break-all;
610}
611
612#sidebar-meta .root-access-list {
613 margin: 0;
614 padding-left: 1rem;
615}
616
617#sidebar-meta .root-access-list li {
618 margin: 0.12rem 0;
619}
620
621#sidebar-actions {
622 display: flex;
623 flex-direction: column;
624 gap: 0.5rem;
625 margin-top: 0.5rem;
626}
627
628#sidebar-actions button {
629 background: var(--surface2);
630 color: var(--text);
631 padding: 0.5rem 0.8rem;
632 text-align: left;
633}
634
635#sidebar-actions button:hover {
636 background: var(--border);
637}
638
639#sidebar-actions button.danger {
640 color: var(--danger);
641}
642
643/* ─── Duplicates panel ─────────────────────────────────── */
644#sidebar-duplicates {
645 margin-top: 1rem;
646 border-top: 1px solid var(--border);
647 padding-top: 0.75rem;
648}
649
650.sidebar-duplicates-heading {
651 font-size: 0.75rem;
652 font-weight: 600;
653 text-transform: uppercase;
654 letter-spacing: 0.05em;
655 color: var(--text-muted, #888);
656 margin: 0 0 0.4rem;
657}
658
659.sidebar-duplicates-list {
660 list-style: none;
661 margin: 0;
662 padding: 0;
663 display: flex;
664 flex-direction: column;
665 gap: 0.25rem;
666}
667
668.sidebar-duplicate-entry {
669 display: block;
670 width: 100%;
671 background: var(--surface2);
672 color: var(--text);
673 padding: 0.35rem 0.6rem;
674 text-align: left;
675 font-size: 0.8rem;
676 white-space: nowrap;
677 overflow: hidden;
678 text-overflow: ellipsis;
679 border-radius: var(--radius);
680 cursor: pointer;
681}
682
683.sidebar-duplicate-entry:hover {
684 background: var(--border);
685}
686
687.admin-size-feedback {
688 font-size: 0.82rem;
689 margin: 0.25rem 0 0.5rem;
690 padding: 0.25rem 0.5rem;
691 border-radius: var(--radius);
692}
693
694.admin-size-feedback.ok {
695 color: var(--accent);
696}
697
698.admin-size-feedback.err {
699 color: #e55;
700}
701
702/* =========================================================
703 MODALS
704 ========================================================= */
705.modal-overlay {
706 position: fixed;
707 inset: 0;
708 background: rgba(0, 0, 0, 0.65);
709 display: flex;
710 align-items: center;
711 justify-content: center;
712 z-index: 11000;
713}
714
715#file-conflict-modal,
716#overwrite-modal {
717 z-index: 11150;
718}
719
720.modal {
721 background: var(--surface);
722 border: 1px solid var(--border);
723 border-radius: var(--radius);
724 padding: 2rem;
725 width: min(560px, 94vw);
726 max-height: 90vh;
727 overflow-y: auto;
728 position: relative;
729}
730
731.modal.small {
732 width: min(340px, 94vw);
733}
734
735.modal h2 {
736 font-size: 1.3rem;
737 margin-bottom: 1.25rem;
738}
739
740.modal h3 {
741 font-size: 1rem;
742 color: var(--text-muted);
743 margin: 1rem 0 0.5rem;
744}
745
746.modal-close {
747 position: absolute;
748 top: 0.75rem;
749 right: 0.75rem;
750 background: none;
751 color: var(--text-muted);
752 font-size: 1.1rem;
753 padding: 0.25rem 0.5rem;
754}
755
756.modal-close:hover {
757 color: var(--text);
758}
759
760/* =========================================================
761 FOLDER ICON PICKER
762 ========================================================= */
763.folder-icon-modal {
764 width: min(680px, 94vw);
765 max-height: 90vh;
766 display: flex;
767 flex-direction: column;
768 gap: 0.75rem;
769 overflow: hidden;
770}
771
772.folder-icon-grid {
773 display: grid;
774 grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
775 gap: 0.5rem;
776 max-height: 50vh;
777 overflow-y: auto;
778 padding: 0.25rem;
779 background: var(--bg);
780 border: 1px solid var(--border);
781 border-radius: var(--radius);
782}
783
784.folder-icon-filter {
785 width: 100%;
786 background: var(--bg);
787 border: 1px solid var(--border);
788 border-radius: 6px;
789 color: var(--text);
790 font-size: 0.9rem;
791 padding: 0.48rem 0.68rem;
792 outline: none;
793}
794
795.folder-icon-filter:focus {
796 border-color: var(--accent);
797}
798
799.folder-icon-cell {
800 display: flex;
801 flex-direction: column;
802 align-items: center;
803 gap: 0.3rem;
804 padding: 0.4rem;
805 border-radius: var(--radius);
806 border: 2px solid transparent;
807 cursor: pointer;
808 transition: border-color var(--transition), background var(--transition);
809}
810
811.folder-icon-cell:hover {
812 background: var(--surface2);
813}
814
815.folder-icon-cell.selected {
816 border-color: var(--accent);
817 background: rgba(91, 127, 255, 0.12);
818}
819
820.folder-icon-thumb {
821 width: 60px;
822 height: 60px;
823 object-fit: cover;
824 border-radius: 4px;
825 background: var(--surface2);
826}
827
828.folder-icon-label {
829 font-size: 0.68rem;
830 color: var(--text-muted);
831 word-break: break-all;
832 text-align: center;
833 max-width: 72px;
834 overflow: hidden;
835 display: -webkit-box;
836 -webkit-line-clamp: 2;
837 -webkit-box-orient: vertical;
838}
839
840.vjs-text-track-cue>div {
841 background: transparent !important;
842 text-shadow: 2px 0 black, -2px 0 black, 0 2px black, 0 -2px black,
843 1px 1px black, -1px -1px black, 1px -1px black, -1px 1px black;
844}
845
846/* Admin path list */
847.path-row {
848 display: flex;
849 align-items: center;
850 gap: 0.5rem;
851 padding: 0.4rem 0;
852 border-bottom: 1px solid var(--border);
853 font-size: 0.88rem;
854}
855
856.path-row span {
857 flex: 1;
858 word-break: break-all;
859}
860
861.path-row button {
862 background: none;
863 color: var(--danger);
864 padding: 0.2rem 0.5rem;
865}
866
867.path-add-row {
868 display: flex;
869 gap: 0.5rem;
870 margin: 0.5rem 0;
871}
872
873.path-add-row input {
874 flex: 1;
875 background: var(--bg);
876 border: 1px solid var(--border);
877 border-radius: 6px;
878 padding: 0.45rem 0.7rem;
879 color: var(--text);
880 font-size: 0.9rem;
881 outline: none;
882}
883
884.path-add-row input:focus {
885 border-color: var(--accent);
886}
887
888.path-add-row button {
889 background: var(--surface2);
890 color: var(--text);
891 padding: 0.45rem 0.9rem;
892}
893
894.path-add-row button:hover {
895 background: var(--border);
896}
897
898.admin-favicon-row {
899 display: flex;
900 align-items: center;
901 justify-content: space-between;
902 margin: 0.35rem 0 0.6rem;
903 font-size: 0.88rem;
904 color: var(--text-muted);
905}
906
907.admin-favicon-row .icon-btn {
908 color: var(--text);
909 background: var(--surface2);
910}
911
912.admin-favicon-row .icon-btn:hover {
913 background: var(--border);
914}
915
916/* User list */
917.user-row {
918 display: flex;
919 align-items: center;
920 gap: 0.6rem;
921 padding: 0.5rem 0;
922 border-bottom: 1px solid var(--border);
923}
924
925.user-row .user-name {
926 flex: 1;
927 font-weight: 600;
928 font-size: 0.9rem;
929}
930
931.user-row .user-admin-badge {
932 font-size: 0.72rem;
933 background: var(--accent);
934 color: #fff;
935 border-radius: 4px;
936 padding: 0.1rem 0.4rem;
937}
938
939.user-row button {
940 background: none;
941 color: var(--text-muted);
942 padding: 0.2rem 0.5rem;
943 font-size: 0.85rem;
944}
945
946.user-row button:hover {
947 color: var(--text);
948}
949
950.user-row button.danger {
951 color: var(--danger);
952}
953
954#admin-orphan-userfolders-section {
955 margin-top: 1rem;
956 padding-top: 0.55rem;
957 border-top: 1px solid var(--border);
958}
959
960#admin-orphan-userfolders-section h4 {
961 margin: 0 0 0.35rem;
962 font-size: 0.86rem;
963 color: var(--text);
964}
965
966.orphan-folder-row .orphan-folder-meta {
967 font-size: 0.8rem;
968 color: var(--text-muted);
969}
970
971/* User form permissions */
972#user-permissions {
973 margin-top: 0.75rem;
974}
975
976#user-permissions h4 {
977 font-size: 0.85rem;
978 color: var(--text-muted);
979 margin-bottom: 0.4rem;
980}
981
982.perm-row {
983 display: flex;
984 align-items: center;
985 gap: 0.75rem;
986 flex-wrap: wrap;
987 font-size: 0.85rem;
988 margin-bottom: 0.4rem;
989}
990
991.perm-row .perm-label {
992 min-width: 130px;
993 color: var(--text);
994}
995
996.checkbox-label {
997 display: flex;
998 align-items: center;
999 gap: 0.5rem;
1000 font-size: 0.9rem;
1001 margin-bottom: 0.5rem;
1002}
1003
1004.checkbox-label input[type="checkbox"] {
1005 width: 16px;
1006 height: 16px;
1007 accent-color: var(--accent);
1008}
1009
1010/* Form labels in modals */
1011.modal form label {
1012 display: flex;
1013 flex-direction: column;
1014 gap: 0.3rem;
1015 font-size: 0.85rem;
1016 color: var(--text-muted);
1017 margin-bottom: 0.9rem;
1018}
1019
1020.modal form input[type="text"],
1021.modal form input[type="password"] {
1022 background: var(--bg);
1023 border: 1px solid var(--border);
1024 border-radius: 6px;
1025 padding: 0.5rem 0.75rem;
1026 color: var(--text);
1027 font-size: 0.95rem;
1028 outline: none;
1029 transition: border-color var(--transition);
1030}
1031
1032.modal form input:focus {
1033 border-color: var(--accent);
1034}
1035
1036/* Admin user-folder controls use the same visual language as modal forms. */
1037#admin-userfolder-section label {
1038 display: flex;
1039 flex-direction: column;
1040 gap: 0.3rem;
1041 font-size: 0.85rem;
1042 color: var(--text-muted);
1043 margin-bottom: 0.9rem;
1044}
1045
1046#admin-userfolder-section input[type="text"] {
1047 background: var(--bg);
1048 border: 1px solid var(--border);
1049 border-radius: 6px;
1050 padding: 0.5rem 0.75rem;
1051 color: var(--text);
1052 font-size: 0.95rem;
1053 outline: none;
1054 transition: border-color var(--transition);
1055}
1056
1057#admin-userfolder-section input[type="text"]:focus {
1058 border-color: var(--accent);
1059}
1060
1061/* =========================================================
1062 FILE PREVIEW — SHARED MEDIA STYLES
1063 ========================================================= */
1064.preview-media {
1065 max-width: 100%;
1066 max-height: 100%;
1067 width: auto;
1068 height: auto;
1069 object-fit: contain;
1070}
1071
1072.preview-frame {
1073 width: 100%;
1074 height: 100%;
1075 border: none;
1076 border-radius: 8px;
1077 background: #fff;
1078}
1079
1080.preview-audio {
1081 width: min(640px, 95%);
1082}
1083
1084.preview-model-wrap {
1085 width: 100%;
1086 height: 100%;
1087 min-height: 240px;
1088 border: 1px solid var(--border);
1089 border-radius: 8px;
1090 background: #0d111a;
1091 display: flex;
1092 flex-direction: column;
1093 align-items: stretch;
1094 justify-content: stretch;
1095 overflow: hidden;
1096}
1097
1098.preview-model-canvas {
1099 flex: 1 1 auto;
1100 width: 100%;
1101 min-height: 180px;
1102 display: block;
1103 cursor: grab;
1104}
1105
1106.preview-model-canvas:active {
1107 cursor: grabbing;
1108}
1109
1110.preview-model-hint {
1111 margin: 0;
1112 padding: 0.45rem 0.7rem;
1113 border-top: 1px solid rgba(120, 128, 160, 0.35);
1114 color: #b8c4e8;
1115 font-size: 0.78rem;
1116 text-align: center;
1117}
1118
1119.preview-text {
1120 width: 100%;
1121 min-height: 100%;
1122 color: #dce4ff;
1123 background: #0d111a;
1124 border: 1px solid var(--border);
1125 border-radius: 8px;
1126 padding: 0.9rem;
1127 font: 0.85rem/1.45 ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
1128 overflow: auto;
1129 white-space: pre;
1130 text-align: left;
1131}
1132
1133.preview-code .tok-comment {
1134 color: #6f7f9a;
1135}
1136
1137.preview-code .tok-string {
1138 color: #9ee37d;
1139}
1140
1141.preview-code .tok-number {
1142 color: #f8c46a;
1143}
1144
1145.preview-code .tok-keyword {
1146 color: #8bb4ff;
1147 font-weight: 600;
1148}
1149
1150.preview-code .tok-key {
1151 color: #59c8ff;
1152}
1153
1154.preview-unsupported {
1155 color: var(--text-muted);
1156 font-size: 0.95rem;
1157 max-width: 56ch;
1158 text-align: center;
1159}
1160
1161.preview-footer {
1162 border-top: 1px solid var(--border);
1163 padding: 0.8rem 1rem;
1164 display: flex;
1165 justify-content: flex-end;
1166}
1167
1168.preview-footer .primary {
1169 width: auto;
1170 margin-top: 0;
1171 min-width: 8rem;
1172}
1173
1174
1175
1176/* =========================================================
1177
1178.toast-msg {
1179 background: var(--surface2);
1180 border: 1px solid var(--border);
1181 border-radius: 8px;
1182 padding: 0.6rem 1.25rem;
1183 font-size: 0.9rem;
1184 animation: slideup 0.25s ease;
1185}
1186
1187.toast-msg.err {
1188 border-color: var(--danger);
1189 color: var(--danger);
1190}
1191
1192.toast-msg.ok {
1193 border-color: var(--success);
1194 color: var(--success);
1195}
1196
1197@keyframes slideup {
1198 from {
1199 opacity: 0;
1200 transform: translateY(12px);
1201 }
1202
1203 to {
1204 opacity: 1;
1205 transform: translateY(0);
1206 }
1207}
1208
1209/* =========================================================
1210 UPLOAD PROGRESS
1211 ========================================================= */
1212.upload-bar-wrap {
1213 position: fixed;
1214 bottom: 0;
1215 left: 0;
1216 right: 0;
1217 background: var(--surface);
1218 border-top: 1px solid var(--border);
1219 padding: 0.5rem 1rem;
1220 z-index: 80;
1221 font-size: 0.85rem;
1222}
1223
1224.upload-bar-track {
1225 height: 6px;
1226 background: var(--border);
1227 border-radius: 3px;
1228 margin-top: 0.3rem;
1229}
1230
1231.upload-bar-fill {
1232 height: 100%;
1233 background: var(--accent);
1234 border-radius: 3px;
1235 transition: width 0.2s linear;
1236}
1237
1238/* =========================================================
1239 RESPONSIVE — narrow screens
1240 ========================================================= */
1241@media (max-width: 600px) {
1242 #topbar {
1243 height: auto;
1244 min-height: var(--topbar-h);
1245 padding: 0.5rem 0.6rem;
1246 align-items: flex-start;
1247 flex-direction: column;
1248 }
1249
1250 #topbar>#btn-refresh {
1251 align-self: flex-start;
1252 }
1253
1254 #breadcrumb-wrap {
1255 width: 100%;
1256 }
1257
1258 #topbar-actions {
1259 width: 100%;
1260 flex-wrap: wrap;
1261 gap: 0.15rem;
1262 }
1263
1264 .top-search {
1265 order: -1;
1266 width: 100%;
1267 margin-right: 0;
1268 }
1269
1270 .top-search input {
1271 flex: 1;
1272 min-width: 0;
1273 width: auto;
1274 }
1275
1276 .topbar-dropdown-menu {
1277 position: fixed;
1278 top: calc(var(--topbar-h) + 0.35rem);
1279 left: 0.6rem;
1280 right: 0.6rem;
1281 min-width: 0;
1282 }
1283
1284 .topbar-dropdown-menu--right {
1285 left: 0.6rem;
1286 right: 0.6rem;
1287 }
1288
1289 .icon-btn {
1290 padding: 0.4rem 0.55rem;
1291 font-size: 0.82rem;
1292 }
1293
1294 #main-content {
1295 padding: 0.9rem;
1296 }
1297
1298 #file-grid {
1299 grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
1300 }
1301
1302 #app.sidebar-open #main-content {
1303 margin-right: 0;
1304 }
1305
1306 #sidebar {
1307 top: auto;
1308 right: 0;
1309 bottom: 0;
1310 left: 0;
1311 height: auto;
1312 max-height: min(68vh, calc(100vh - 0.5rem));
1313 padding: 0.9rem 0.9rem 1rem;
1314 border-left: none;
1315 border-top: 1px solid var(--border);
1316 width: 100%;
1317 border-radius: 14px 14px 0 0;
1318 box-shadow: 0 -12px 26px rgba(0, 0, 0, 0.34);
1319 gap: 0.55rem;
1320 }
1321
1322 #sidebar-close {
1323 display: inline-flex;
1324 position: absolute;
1325 top: 0.45rem;
1326 right: 0.45rem;
1327 border-color: var(--border);
1328 background: var(--surface2);
1329 }
1330
1331 #sidebar-name {
1332 padding-right: 2rem;
1333 }
1334
1335 #sidebar-icon svg {
1336 width: 54px;
1337 height: 54px;
1338 }
1339
1340 #sidebar-actions {
1341 margin-top: 0.2rem;
1342 }
1343
1344 .modal {
1345 padding: 1.25rem;
1346 }
1347
1348 .preview-overlay {
1349 padding: 0.8rem;
1350 }
1351
1352 .preview-sheet {
1353 width: 100%;
1354 height: 92vh;
1355 }
1356
1357 .preview-fold {
1358 width: 54px;
1359 height: 54px;
1360 }
1361
1362 .preview-close {
1363 top: 5px;
1364 right: 5px;
1365 }
1366}
1367
1368/* =========================================================
1369 DIALOG MODALS (confirm / prompt / overwrite)
1370 ========================================================= */
1371.dialog-message {
1372 color: var(--text-muted);
1373 font-size: 0.93rem;
1374 margin: 0 0 1.5rem;
1375 line-height: 1.5;
1376 word-break: break-word;
1377}
1378
1379.dialog-actions {
1380 display: flex;
1381 gap: 0.6rem;
1382 justify-content: flex-end;
1383 flex-wrap: wrap;
1384}
1385
1386.dialog-actions--overwrite {
1387 justify-content: space-between;
1388}
1389
1390.dialog-actions button {
1391 min-width: 5rem;
1392 background: var(--surface2);
1393 color: var(--text);
1394 padding: 0.5rem 1rem;
1395}
1396
1397.dialog-actions button:hover {
1398 background: var(--border);
1399}
1400
1401/* Override .primary full-width inside dialog rows */
1402.dialog-actions button.primary {
1403 width: auto;
1404 margin-top: 0;
1405}