style.css 18 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006
  1. /* ===== CSS Variables ===== */
  2. :root {
  3. --color-dark: #2c3e50;
  4. --color-blue: #3498db;
  5. --color-blue-hover: #2980b9;
  6. --color-green: #27ae60;
  7. --color-red: #e74c3c;
  8. --color-red-hover: #c0392b;
  9. --color-gray: #95a5a6;
  10. --color-gray-hover: #7f8c8d;
  11. --color-border: #e0e3e7;
  12. --color-border-light: #f0f0f0;
  13. --color-bg: #f8f9fa;
  14. --color-white: #ffffff;
  15. --color-text: #2c3e50;
  16. --color-text-light: #666666;
  17. --color-text-lighter: #999999;
  18. --sidebar-width: 320px;
  19. --topbar-height: 48px;
  20. --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.1);
  21. --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.15);
  22. --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.2);
  23. --radius-sm: 4px;
  24. --radius-md: 6px;
  25. --radius-lg: 8px;
  26. --radius-xl: 12px;
  27. }
  28. /* ===== Reset ===== */
  29. *, *::before, *::after {
  30. box-sizing: border-box;
  31. margin: 0;
  32. padding: 0;
  33. }
  34. /* ===== Base ===== */
  35. body {
  36. font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  37. display: flex;
  38. flex-direction: column;
  39. height: 100vh;
  40. overflow: hidden;
  41. color: var(--color-text);
  42. font-size: 14px;
  43. line-height: 1.5;
  44. }
  45. /* ===== Auth Page ===== */
  46. #auth-page {
  47. position: fixed;
  48. inset: 0;
  49. display: flex;
  50. align-items: center;
  51. justify-content: center;
  52. background: linear-gradient(135deg, var(--color-dark) 0%, var(--color-blue) 100%);
  53. z-index: 10000;
  54. }
  55. .auth-container {
  56. background: var(--color-white);
  57. padding: 40px;
  58. border-radius: var(--radius-xl);
  59. box-shadow: var(--shadow-lg);
  60. min-width: 360px;
  61. width: 100%;
  62. max-width: 420px;
  63. }
  64. .auth-container h1 {
  65. text-align: center;
  66. margin-bottom: 24px;
  67. color: var(--color-dark);
  68. font-size: 24px;
  69. font-weight: 700;
  70. }
  71. .auth-tabs {
  72. display: flex;
  73. margin-bottom: 20px;
  74. border-radius: var(--radius-md);
  75. overflow: hidden;
  76. border: 1px solid var(--color-border);
  77. }
  78. .auth-tab {
  79. flex: 1;
  80. padding: 10px;
  81. border: none;
  82. border-right: 1px solid var(--color-border);
  83. cursor: pointer;
  84. background: var(--color-white);
  85. color: var(--color-text-light);
  86. font-size: 14px;
  87. font-weight: 500;
  88. transition: background 0.2s, color 0.2s;
  89. }
  90. .auth-tab:last-child {
  91. border-right: none;
  92. }
  93. .auth-tab:hover:not(.active) {
  94. background: var(--color-bg);
  95. }
  96. .auth-tab.active {
  97. background: var(--color-blue);
  98. color: var(--color-white);
  99. }
  100. /* ===== Form Inputs ===== */
  101. input[type="text"],
  102. input[type="password"],
  103. input[type="email"] {
  104. display: block;
  105. width: 100%;
  106. padding: 10px 12px;
  107. border: 1px solid #ddd;
  108. border-radius: var(--radius-md);
  109. margin-bottom: 12px;
  110. font-size: 14px;
  111. outline: none;
  112. transition: border-color 0.2s;
  113. color: var(--color-text);
  114. background: var(--color-white);
  115. }
  116. input[type="text"]:focus,
  117. input[type="password"]:focus,
  118. input[type="email"]:focus {
  119. border-color: var(--color-blue);
  120. box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
  121. }
  122. form button[type="submit"] {
  123. display: block;
  124. width: 100%;
  125. padding: 12px;
  126. background: var(--color-blue);
  127. color: var(--color-white);
  128. border: none;
  129. border-radius: var(--radius-md);
  130. cursor: pointer;
  131. font-size: 16px;
  132. font-weight: 500;
  133. transition: background 0.2s;
  134. margin-top: 4px;
  135. }
  136. form button[type="submit"]:hover {
  137. background: var(--color-blue-hover);
  138. }
  139. #login-form,
  140. #register-form {
  141. display: flex;
  142. flex-direction: column;
  143. }
  144. /* ===== Messages ===== */
  145. .error-msg {
  146. color: var(--color-red);
  147. font-size: 13px;
  148. margin-bottom: 12px;
  149. padding: 8px 12px;
  150. background: #fdf0ef;
  151. border-radius: var(--radius-sm);
  152. border-left: 3px solid var(--color-red);
  153. }
  154. .success-msg {
  155. color: var(--color-green);
  156. font-size: 13px;
  157. margin-bottom: 12px;
  158. padding: 8px 12px;
  159. background: #eafaf1;
  160. border-radius: var(--radius-sm);
  161. border-left: 3px solid var(--color-green);
  162. }
  163. /* ===== Topbar ===== */
  164. #topbar {
  165. height: var(--topbar-height);
  166. background: var(--color-dark);
  167. color: var(--color-white);
  168. display: flex;
  169. align-items: center;
  170. justify-content: space-between;
  171. padding: 0 16px;
  172. flex-shrink: 0;
  173. z-index: 100;
  174. }
  175. #topbar-left {
  176. display: flex;
  177. align-items: center;
  178. gap: 12px;
  179. }
  180. #topbar-right {
  181. display: flex;
  182. align-items: center;
  183. gap: 8px;
  184. }
  185. #topbar-title {
  186. font-size: 16px;
  187. font-weight: 600;
  188. letter-spacing: 0.3px;
  189. }
  190. #topbar-user {
  191. font-size: 13px;
  192. color: rgba(255, 255, 255, 0.75);
  193. margin-right: 4px;
  194. }
  195. /* ===== Icon & Topbar Buttons ===== */
  196. .icon-btn,
  197. .topbar-btn {
  198. background: transparent;
  199. border: 1px solid rgba(255, 255, 255, 0.3);
  200. color: var(--color-white);
  201. padding: 6px 12px;
  202. border-radius: var(--radius-sm);
  203. cursor: pointer;
  204. font-size: 14px;
  205. transition: background 0.2s, border-color 0.2s;
  206. line-height: 1;
  207. }
  208. .icon-btn:hover,
  209. .topbar-btn:hover {
  210. background: rgba(255, 255, 255, 0.1);
  211. border-color: rgba(255, 255, 255, 0.5);
  212. }
  213. .icon-btn {
  214. font-size: 18px;
  215. padding: 4px 10px;
  216. }
  217. /* ===== App Container ===== */
  218. #app {
  219. flex: 1;
  220. flex-direction: column;
  221. overflow: hidden;
  222. }
  223. /* ===== Main Content ===== */
  224. #main-content {
  225. display: flex;
  226. flex: 1;
  227. overflow: hidden;
  228. }
  229. /* ===== Sidebar ===== */
  230. #sidebar {
  231. width: var(--sidebar-width);
  232. background: var(--color-white);
  233. border-right: 1px solid var(--color-border);
  234. display: flex;
  235. flex-direction: column;
  236. flex-shrink: 0;
  237. transition: width 0.2s ease;
  238. overflow: hidden;
  239. }
  240. #sidebar.collapsed {
  241. width: 0;
  242. border-right: none;
  243. }
  244. /* ===== Sidebar Tabs ===== */
  245. #sidebar-tabs {
  246. display: flex;
  247. border-bottom: 1px solid var(--color-border);
  248. flex-shrink: 0;
  249. }
  250. .sidebar-tab {
  251. flex: 1;
  252. padding: 12px;
  253. border: none;
  254. background: none;
  255. cursor: pointer;
  256. font-size: 13px;
  257. font-weight: 500;
  258. color: var(--color-text-light);
  259. transition: color 0.2s;
  260. border-bottom: 2px solid transparent;
  261. margin-bottom: -1px;
  262. }
  263. .sidebar-tab:hover:not(.active) {
  264. color: var(--color-text);
  265. background: var(--color-bg);
  266. }
  267. .sidebar-tab.active {
  268. color: var(--color-blue);
  269. border-bottom-color: var(--color-blue);
  270. }
  271. /* ===== Sidebar Tab Content ===== */
  272. .sidebar-tab-content {
  273. display: flex;
  274. flex-direction: column;
  275. flex: 1;
  276. overflow: hidden;
  277. }
  278. #browser-tab {
  279. display: flex;
  280. flex-direction: column;
  281. flex: 1;
  282. overflow: hidden;
  283. }
  284. #stats-tab {
  285. flex: 1;
  286. overflow-y: auto;
  287. padding: 12px;
  288. }
  289. /* ===== Breadcrumb ===== */
  290. #breadcrumb {
  291. padding: 8px 12px;
  292. font-size: 13px;
  293. background: var(--color-bg);
  294. border-bottom: 1px solid var(--color-border);
  295. flex-shrink: 0;
  296. white-space: nowrap;
  297. overflow: hidden;
  298. text-overflow: ellipsis;
  299. }
  300. .bc-item {
  301. cursor: pointer;
  302. color: var(--color-blue);
  303. transition: text-decoration 0.1s;
  304. }
  305. .bc-item:hover {
  306. text-decoration: underline;
  307. }
  308. .bc-item:last-child {
  309. color: var(--color-text);
  310. cursor: default;
  311. font-weight: 500;
  312. }
  313. .bc-item:last-child:hover {
  314. text-decoration: none;
  315. }
  316. .bc-sep {
  317. color: var(--color-text-lighter);
  318. margin: 0 4px;
  319. }
  320. /* ===== Browser Actions ===== */
  321. #browser-actions {
  322. display: flex;
  323. gap: 8px;
  324. padding: 8px;
  325. border-bottom: 1px solid var(--color-border);
  326. flex-shrink: 0;
  327. }
  328. .action-btn {
  329. padding: 6px 12px;
  330. border: 1px solid var(--color-blue);
  331. color: var(--color-blue);
  332. background: var(--color-white);
  333. border-radius: var(--radius-sm);
  334. cursor: pointer;
  335. font-size: 13px;
  336. transition: background 0.2s, color 0.2s;
  337. font-weight: 500;
  338. }
  339. .action-btn:hover {
  340. background: var(--color-blue);
  341. color: var(--color-white);
  342. }
  343. /* ===== Browser List ===== */
  344. #browser-list {
  345. flex: 1;
  346. overflow-y: auto;
  347. }
  348. .tree-item.dir-item,
  349. .tree-item.track-item {
  350. display: flex;
  351. align-items: center;
  352. border-bottom: 1px solid var(--color-border-light);
  353. cursor: pointer;
  354. position: relative;
  355. gap: 6px;
  356. transition: background 0.15s;
  357. min-height: 36px;
  358. padding-top: 6px;
  359. padding-bottom: 6px;
  360. padding-right: 8px;
  361. }
  362. /* Legacy selectors kept for compatibility */
  363. .dir-item,
  364. .track-item {
  365. display: flex;
  366. align-items: center;
  367. padding: 8px 12px;
  368. border-bottom: 1px solid var(--color-border-light);
  369. cursor: pointer;
  370. position: relative;
  371. gap: 8px;
  372. transition: background 0.15s;
  373. min-height: 40px;
  374. }
  375. .dir-item:hover,
  376. .track-item:hover {
  377. background: var(--color-bg);
  378. }
  379. /* ===== Expand Button (tree triangle) ===== */
  380. .expand-btn {
  381. flex-shrink: 0;
  382. width: 16px;
  383. height: 16px;
  384. display: inline-flex;
  385. align-items: center;
  386. justify-content: center;
  387. font-size: 10px;
  388. color: var(--color-text-lighter);
  389. transition: transform 0.15s, color 0.15s;
  390. cursor: pointer;
  391. border-radius: 3px;
  392. user-select: none;
  393. }
  394. .expand-btn::before {
  395. content: '▶';
  396. }
  397. .expand-btn.expanded {
  398. transform: rotate(90deg);
  399. color: var(--color-blue);
  400. }
  401. .expand-btn:hover {
  402. color: var(--color-text);
  403. background: var(--color-border-light);
  404. }
  405. /* ===== Selected Dir ===== */
  406. .dir-item.selected {
  407. background: #e8f4fd;
  408. }
  409. .dir-item.selected .item-name {
  410. color: var(--color-blue);
  411. font-weight: 500;
  412. }
  413. .dir-item.selected:hover {
  414. background: #d6ecf8;
  415. }
  416. /* ===== Drag target (folder highlight when dragging track) ===== */
  417. .dir-item.drag-target {
  418. background: #d6ecf8;
  419. outline: 2px dashed var(--color-blue);
  420. outline-offset: -2px;
  421. }
  422. /* ===== Dragging track ===== */
  423. .track-item.dragging {
  424. opacity: 0.4;
  425. }
  426. /* ===== Tree loading placeholder ===== */
  427. .tree-loading {
  428. padding-top: 4px;
  429. padding-bottom: 4px;
  430. font-size: 12px;
  431. }
  432. .item-icon {
  433. flex-shrink: 0;
  434. width: 20px;
  435. text-align: center;
  436. font-size: 15px;
  437. }
  438. .item-name {
  439. flex: 1;
  440. font-size: 13px;
  441. overflow: hidden;
  442. text-overflow: ellipsis;
  443. white-space: nowrap;
  444. color: var(--color-text);
  445. }
  446. .item-meta {
  447. font-size: 12px;
  448. color: var(--color-text-light);
  449. flex-shrink: 0;
  450. }
  451. .item-date {
  452. font-size: 11px;
  453. color: var(--color-text-lighter);
  454. flex-shrink: 0;
  455. }
  456. .item-actions {
  457. display: none;
  458. gap: 4px;
  459. flex-shrink: 0;
  460. }
  461. .dir-item:hover .item-actions,
  462. .track-item:hover .item-actions {
  463. display: flex;
  464. }
  465. .item-btn {
  466. background: none;
  467. border: 1px solid #ddd;
  468. border-radius: var(--radius-sm);
  469. cursor: pointer;
  470. padding: 2px 6px;
  471. font-size: 13px;
  472. line-height: 1.4;
  473. transition: background 0.15s;
  474. color: var(--color-text-light);
  475. }
  476. .item-btn:hover {
  477. background: var(--color-border-light);
  478. border-color: #bbb;
  479. }
  480. .empty-list {
  481. color: var(--color-text-lighter);
  482. font-size: 13px;
  483. text-align: center;
  484. padding: 32px 16px;
  485. }
  486. .loading {
  487. color: var(--color-text-light);
  488. text-align: center;
  489. padding: 24px 16px;
  490. font-size: 13px;
  491. }
  492. /* ===== Map Container ===== */
  493. #map-container {
  494. flex: 1;
  495. position: relative;
  496. overflow: hidden;
  497. }
  498. #map {
  499. width: 100%;
  500. height: 100%;
  501. }
  502. .drag-over {
  503. outline: 4px dashed var(--color-blue);
  504. outline-offset: -4px;
  505. }
  506. /* ===== Track Info Panel ===== */
  507. #track-info-panel {
  508. position: absolute;
  509. bottom: 20px;
  510. right: 20px;
  511. background: var(--color-white);
  512. border-radius: var(--radius-lg);
  513. box-shadow: var(--shadow-md);
  514. padding: 16px;
  515. min-width: 220px;
  516. max-width: 300px;
  517. z-index: 1000;
  518. }
  519. #track-info-panel h3 {
  520. margin-bottom: 8px;
  521. font-size: 14px;
  522. font-weight: 600;
  523. color: var(--color-text);
  524. padding-right: 24px;
  525. }
  526. .info-row {
  527. display: flex;
  528. justify-content: space-between;
  529. font-size: 13px;
  530. padding: 4px 0;
  531. border-bottom: 1px solid var(--color-border-light);
  532. }
  533. .info-row:last-child {
  534. border-bottom: none;
  535. }
  536. .info-row label {
  537. color: var(--color-text-light);
  538. }
  539. .info-row span {
  540. font-weight: 500;
  541. color: var(--color-text);
  542. }
  543. #track-info-close {
  544. position: absolute;
  545. top: 8px;
  546. right: 8px;
  547. background: none;
  548. border: none;
  549. cursor: pointer;
  550. font-size: 20px;
  551. color: var(--color-text-lighter);
  552. line-height: 1;
  553. padding: 2px 4px;
  554. transition: color 0.15s;
  555. }
  556. #track-info-close:hover {
  557. color: var(--color-text);
  558. }
  559. /* ===== Modals ===== */
  560. .modal {
  561. position: fixed;
  562. inset: 0;
  563. background: rgba(0, 0, 0, 0.5);
  564. display: flex;
  565. align-items: center;
  566. justify-content: center;
  567. z-index: 9999;
  568. }
  569. .modal-content {
  570. background: var(--color-white);
  571. border-radius: var(--radius-lg);
  572. padding: 24px;
  573. min-width: 300px;
  574. max-width: 90vw;
  575. max-height: 90vh;
  576. overflow-y: auto;
  577. position: relative;
  578. box-shadow: var(--shadow-lg);
  579. }
  580. .modal-large {
  581. min-width: min(700px, 95vw);
  582. }
  583. .modal-header {
  584. display: flex;
  585. justify-content: space-between;
  586. align-items: center;
  587. margin-bottom: 16px;
  588. }
  589. .modal-header h2 {
  590. font-size: 18px;
  591. font-weight: 600;
  592. color: var(--color-text);
  593. }
  594. .modal-close {
  595. background: none;
  596. border: none;
  597. font-size: 24px;
  598. cursor: pointer;
  599. color: var(--color-text-lighter);
  600. line-height: 1;
  601. padding: 2px 6px;
  602. transition: color 0.15s;
  603. }
  604. .modal-close:hover {
  605. color: var(--color-text);
  606. }
  607. /* ===== Buttons ===== */
  608. .btn-primary {
  609. padding: 8px 16px;
  610. background: var(--color-blue);
  611. color: var(--color-white);
  612. border: none;
  613. border-radius: var(--radius-sm);
  614. cursor: pointer;
  615. font-size: 14px;
  616. font-weight: 500;
  617. transition: background 0.2s;
  618. }
  619. .btn-primary:hover {
  620. background: var(--color-blue-hover);
  621. }
  622. .btn-secondary {
  623. padding: 8px 16px;
  624. background: var(--color-gray);
  625. color: var(--color-white);
  626. border: none;
  627. border-radius: var(--radius-sm);
  628. cursor: pointer;
  629. font-size: 14px;
  630. font-weight: 500;
  631. transition: background 0.2s;
  632. }
  633. .btn-secondary:hover {
  634. background: var(--color-gray-hover);
  635. }
  636. .btn-danger {
  637. padding: 8px 16px;
  638. background: var(--color-red);
  639. color: var(--color-white);
  640. border: none;
  641. border-radius: var(--radius-sm);
  642. cursor: pointer;
  643. font-size: 14px;
  644. font-weight: 500;
  645. transition: background 0.2s;
  646. }
  647. .btn-danger:hover {
  648. background: var(--color-red-hover);
  649. }
  650. .btn-small {
  651. padding: 4px 10px;
  652. font-size: 12px;
  653. border-radius: var(--radius-sm);
  654. cursor: pointer;
  655. border: none;
  656. font-weight: 500;
  657. transition: background 0.2s;
  658. }
  659. .btn-small.btn-primary {
  660. background: var(--color-blue);
  661. color: var(--color-white);
  662. }
  663. .btn-small.btn-primary:hover {
  664. background: var(--color-blue-hover);
  665. }
  666. .btn-small.btn-secondary {
  667. background: var(--color-gray);
  668. color: var(--color-white);
  669. }
  670. .btn-small.btn-secondary:hover {
  671. background: var(--color-gray-hover);
  672. }
  673. .btn-small.btn-danger {
  674. background: var(--color-red);
  675. color: var(--color-white);
  676. }
  677. .btn-small.btn-danger:hover {
  678. background: var(--color-red-hover);
  679. }
  680. /* ===== Upload Toast ===== */
  681. #upload-toast {
  682. position: fixed;
  683. top: 16px;
  684. right: 16px;
  685. background: var(--color-dark);
  686. color: var(--color-white);
  687. padding: 12px 20px;
  688. border-radius: var(--radius-md);
  689. z-index: 99999;
  690. font-size: 14px;
  691. box-shadow: var(--shadow-md);
  692. max-width: 300px;
  693. word-break: break-word;
  694. }
  695. #upload-toast.success {
  696. background: var(--color-green);
  697. }
  698. #upload-toast.error {
  699. background: var(--color-red);
  700. }
  701. /* ===== Stats ===== */
  702. .stats-section {
  703. margin-bottom: 24px;
  704. }
  705. .stats-section h3 {
  706. font-size: 11px;
  707. text-transform: uppercase;
  708. color: var(--color-text-light);
  709. margin-bottom: 12px;
  710. letter-spacing: 0.5px;
  711. font-weight: 600;
  712. }
  713. .stat-row {
  714. display: flex;
  715. align-items: center;
  716. margin-bottom: 6px;
  717. gap: 8px;
  718. }
  719. .stat-row .stat-label {
  720. width: 80px;
  721. font-size: 12px;
  722. color: var(--color-text-light);
  723. flex-shrink: 0;
  724. }
  725. .stat-bar-wrap {
  726. flex: 1;
  727. height: 16px;
  728. background: var(--color-border-light);
  729. border-radius: 8px;
  730. overflow: hidden;
  731. }
  732. .stat-bar {
  733. height: 100%;
  734. background: var(--color-blue);
  735. border-radius: 8px;
  736. transition: width 0.3s ease;
  737. min-width: 2px;
  738. }
  739. .stat-row .stat-value {
  740. width: 80px;
  741. text-align: right;
  742. font-size: 12px;
  743. font-weight: 600;
  744. flex-shrink: 0;
  745. color: var(--color-text);
  746. }
  747. /* ===== Admin Table ===== */
  748. .admin-table {
  749. width: 100%;
  750. border-collapse: collapse;
  751. font-size: 13px;
  752. }
  753. .admin-table th {
  754. background: var(--color-bg);
  755. padding: 10px 12px;
  756. text-align: left;
  757. border-bottom: 2px solid #dee2e6;
  758. font-weight: 600;
  759. color: var(--color-text);
  760. white-space: nowrap;
  761. }
  762. .admin-table td {
  763. padding: 8px 12px;
  764. border-bottom: 1px solid var(--color-border-light);
  765. color: var(--color-text);
  766. vertical-align: middle;
  767. }
  768. .admin-table tr:hover td {
  769. background: var(--color-bg);
  770. }
  771. .admin-table td:last-child {
  772. white-space: nowrap;
  773. display: flex;
  774. gap: 4px;
  775. flex-wrap: wrap;
  776. }
  777. /* ===== Move Dialog ===== */
  778. #move-dir-list {
  779. max-height: 300px;
  780. overflow-y: auto;
  781. border: 1px solid var(--color-border);
  782. border-radius: var(--radius-md);
  783. padding: 4px;
  784. }
  785. .move-dir-item {
  786. padding: 8px 12px;
  787. cursor: pointer;
  788. border-radius: var(--radius-sm);
  789. margin-bottom: 2px;
  790. font-size: 13px;
  791. transition: background 0.15s;
  792. color: var(--color-text);
  793. }
  794. .move-dir-item:hover {
  795. background: var(--color-border-light);
  796. }
  797. .move-dir-item.selected {
  798. background: #e8f4fd;
  799. border: 1px solid var(--color-blue);
  800. color: var(--color-blue);
  801. font-weight: 500;
  802. }
  803. /* ===== Share URL Box ===== */
  804. .share-url-box {
  805. display: flex;
  806. gap: 8px;
  807. margin-top: 8px;
  808. }
  809. .share-url-box input {
  810. flex: 1;
  811. padding: 8px;
  812. border: 1px solid #ddd;
  813. border-radius: var(--radius-sm);
  814. font-size: 13px;
  815. margin-bottom: 0;
  816. color: var(--color-text-light);
  817. background: var(--color-bg);
  818. }
  819. .share-url-box button {
  820. flex-shrink: 0;
  821. padding: 8px 14px;
  822. background: var(--color-blue);
  823. color: var(--color-white);
  824. border: none;
  825. border-radius: var(--radius-sm);
  826. cursor: pointer;
  827. font-size: 13px;
  828. transition: background 0.2s;
  829. }
  830. .share-url-box button:hover {
  831. background: var(--color-blue-hover);
  832. }
  833. /* ===== Responsive ===== */
  834. @media (max-width: 768px) {
  835. #sidebar {
  836. position: absolute;
  837. left: 0;
  838. top: var(--topbar-height);
  839. bottom: 0;
  840. z-index: 500;
  841. box-shadow: var(--shadow-md);
  842. }
  843. #sidebar.collapsed {
  844. width: 0;
  845. }
  846. .modal-large {
  847. min-width: 95vw;
  848. }
  849. #track-info-panel {
  850. bottom: 10px;
  851. right: 10px;
  852. max-width: calc(100vw - 20px);
  853. }
  854. }
  855. @media (max-width: 480px) {
  856. .auth-container {
  857. min-width: unset;
  858. margin: 16px;
  859. padding: 28px 20px;
  860. }
  861. #topbar {
  862. padding: 0 10px;
  863. }
  864. #topbar-title {
  865. font-size: 14px;
  866. }
  867. .admin-table {
  868. font-size: 11px;
  869. }
  870. .admin-table th,
  871. .admin-table td {
  872. padding: 6px 8px;
  873. }
  874. }