BlueGit

timfa filemanager

Files

filemanager / public / style.css

style.css

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