style.css 19 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068
  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: 280px;
  516. max-width: 400px;
  517. z-index: 1000;
  518. }
  519. /* ===== Elevation Chart ===== */
  520. #elevation-chart-container {
  521. position: relative;
  522. height: 120px;
  523. margin-top: 10px;
  524. border-top: 1px solid var(--color-border-light);
  525. padding-top: 8px;
  526. }
  527. #elevation-canvas {
  528. display: block;
  529. width: 100%;
  530. height: 100%;
  531. cursor: crosshair;
  532. }
  533. #elevation-tooltip {
  534. position: absolute;
  535. top: 0;
  536. left: 0;
  537. background: rgba(44, 62, 80, 0.92);
  538. color: #fff;
  539. padding: 6px 10px;
  540. border-radius: var(--radius-sm);
  541. font-size: 11px;
  542. line-height: 1.55;
  543. pointer-events: none;
  544. white-space: nowrap;
  545. opacity: 0;
  546. transition: opacity 0.12s;
  547. z-index: 10;
  548. }
  549. #elevation-tooltip.visible {
  550. opacity: 1;
  551. }
  552. /* ===== Map hover marker ===== */
  553. .hover-marker {
  554. background: #e74c3c;
  555. border: 3px solid white;
  556. border-radius: 50%;
  557. box-shadow: 0 2px 5px rgba(0, 0, 0, 0.35);
  558. }
  559. /* ===== Map hover tooltip ===== */
  560. .map-tooltip.leaflet-tooltip {
  561. background: rgba(44, 62, 80, 0.92) !important;
  562. color: #fff !important;
  563. border: none !important;
  564. border-radius: var(--radius-sm) !important;
  565. padding: 6px 10px !important;
  566. font-size: 11px !important;
  567. line-height: 1.55;
  568. box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25) !important;
  569. white-space: nowrap;
  570. }
  571. .map-tooltip.leaflet-tooltip::before {
  572. display: none !important;
  573. }
  574. #track-info-panel h3 {
  575. margin-bottom: 8px;
  576. font-size: 14px;
  577. font-weight: 600;
  578. color: var(--color-text);
  579. padding-right: 24px;
  580. }
  581. .info-row {
  582. display: flex;
  583. justify-content: space-between;
  584. font-size: 13px;
  585. padding: 4px 0;
  586. border-bottom: 1px solid var(--color-border-light);
  587. }
  588. .info-row:last-child {
  589. border-bottom: none;
  590. }
  591. .info-row label {
  592. color: var(--color-text-light);
  593. }
  594. .info-row span {
  595. font-weight: 500;
  596. color: var(--color-text);
  597. }
  598. #track-info-close {
  599. position: absolute;
  600. top: 8px;
  601. right: 8px;
  602. background: none;
  603. border: none;
  604. cursor: pointer;
  605. font-size: 20px;
  606. color: var(--color-text-lighter);
  607. line-height: 1;
  608. padding: 2px 4px;
  609. transition: color 0.15s;
  610. }
  611. #track-info-close:hover {
  612. color: var(--color-text);
  613. }
  614. /* ===== Modals ===== */
  615. .modal {
  616. position: fixed;
  617. inset: 0;
  618. background: rgba(0, 0, 0, 0.5);
  619. display: flex;
  620. align-items: center;
  621. justify-content: center;
  622. z-index: 9999;
  623. }
  624. .modal-content {
  625. background: var(--color-white);
  626. border-radius: var(--radius-lg);
  627. padding: 24px;
  628. min-width: 300px;
  629. max-width: 90vw;
  630. max-height: 90vh;
  631. overflow-y: auto;
  632. position: relative;
  633. box-shadow: var(--shadow-lg);
  634. }
  635. .modal-large {
  636. min-width: min(700px, 95vw);
  637. }
  638. .modal-header {
  639. display: flex;
  640. justify-content: space-between;
  641. align-items: center;
  642. margin-bottom: 16px;
  643. }
  644. .modal-header h2 {
  645. font-size: 18px;
  646. font-weight: 600;
  647. color: var(--color-text);
  648. }
  649. .modal-close {
  650. background: none;
  651. border: none;
  652. font-size: 24px;
  653. cursor: pointer;
  654. color: var(--color-text-lighter);
  655. line-height: 1;
  656. padding: 2px 6px;
  657. transition: color 0.15s;
  658. }
  659. .modal-close:hover {
  660. color: var(--color-text);
  661. }
  662. /* ===== Buttons ===== */
  663. .btn-primary {
  664. padding: 8px 16px;
  665. background: var(--color-blue);
  666. color: var(--color-white);
  667. border: none;
  668. border-radius: var(--radius-sm);
  669. cursor: pointer;
  670. font-size: 14px;
  671. font-weight: 500;
  672. transition: background 0.2s;
  673. }
  674. .btn-primary:hover {
  675. background: var(--color-blue-hover);
  676. }
  677. .btn-secondary {
  678. padding: 8px 16px;
  679. background: var(--color-gray);
  680. color: var(--color-white);
  681. border: none;
  682. border-radius: var(--radius-sm);
  683. cursor: pointer;
  684. font-size: 14px;
  685. font-weight: 500;
  686. transition: background 0.2s;
  687. }
  688. .btn-secondary:hover {
  689. background: var(--color-gray-hover);
  690. }
  691. .btn-danger {
  692. padding: 8px 16px;
  693. background: var(--color-red);
  694. color: var(--color-white);
  695. border: none;
  696. border-radius: var(--radius-sm);
  697. cursor: pointer;
  698. font-size: 14px;
  699. font-weight: 500;
  700. transition: background 0.2s;
  701. }
  702. .btn-danger:hover {
  703. background: var(--color-red-hover);
  704. }
  705. .btn-small {
  706. padding: 4px 10px;
  707. font-size: 12px;
  708. border-radius: var(--radius-sm);
  709. cursor: pointer;
  710. border: none;
  711. font-weight: 500;
  712. transition: background 0.2s;
  713. }
  714. .btn-small.btn-primary {
  715. background: var(--color-blue);
  716. color: var(--color-white);
  717. }
  718. .btn-small.btn-primary:hover {
  719. background: var(--color-blue-hover);
  720. }
  721. .btn-small.btn-secondary {
  722. background: var(--color-gray);
  723. color: var(--color-white);
  724. }
  725. .btn-small.btn-secondary:hover {
  726. background: var(--color-gray-hover);
  727. }
  728. .btn-small.btn-danger {
  729. background: var(--color-red);
  730. color: var(--color-white);
  731. }
  732. .btn-small.btn-danger:hover {
  733. background: var(--color-red-hover);
  734. }
  735. /* ===== Upload Toast ===== */
  736. #upload-toast {
  737. position: fixed;
  738. top: 16px;
  739. right: 16px;
  740. background: var(--color-dark);
  741. color: var(--color-white);
  742. padding: 12px 20px;
  743. border-radius: var(--radius-md);
  744. z-index: 99999;
  745. font-size: 14px;
  746. box-shadow: var(--shadow-md);
  747. max-width: 300px;
  748. word-break: break-word;
  749. }
  750. #upload-toast.success {
  751. background: var(--color-green);
  752. }
  753. #upload-toast.error {
  754. background: var(--color-red);
  755. }
  756. /* ===== Stats ===== */
  757. .stats-section {
  758. margin-bottom: 24px;
  759. }
  760. .stats-section h3 {
  761. font-size: 11px;
  762. text-transform: uppercase;
  763. color: var(--color-text-light);
  764. margin-bottom: 12px;
  765. letter-spacing: 0.5px;
  766. font-weight: 600;
  767. }
  768. .stat-row {
  769. display: flex;
  770. align-items: center;
  771. margin-bottom: 6px;
  772. gap: 8px;
  773. }
  774. .stat-row .stat-label {
  775. width: 80px;
  776. font-size: 12px;
  777. color: var(--color-text-light);
  778. flex-shrink: 0;
  779. }
  780. .stat-bar-wrap {
  781. flex: 1;
  782. height: 16px;
  783. background: var(--color-border-light);
  784. border-radius: 8px;
  785. overflow: hidden;
  786. }
  787. .stat-bar {
  788. height: 100%;
  789. background: var(--color-blue);
  790. border-radius: 8px;
  791. transition: width 0.3s ease;
  792. min-width: 2px;
  793. }
  794. .stat-row .stat-value {
  795. width: 80px;
  796. text-align: right;
  797. font-size: 12px;
  798. font-weight: 600;
  799. flex-shrink: 0;
  800. color: var(--color-text);
  801. }
  802. /* ===== Admin Table ===== */
  803. .admin-table {
  804. width: 100%;
  805. border-collapse: collapse;
  806. font-size: 13px;
  807. }
  808. .admin-table th {
  809. background: var(--color-bg);
  810. padding: 10px 12px;
  811. text-align: left;
  812. border-bottom: 2px solid #dee2e6;
  813. font-weight: 600;
  814. color: var(--color-text);
  815. white-space: nowrap;
  816. }
  817. .admin-table td {
  818. padding: 8px 12px;
  819. border-bottom: 1px solid var(--color-border-light);
  820. color: var(--color-text);
  821. vertical-align: middle;
  822. }
  823. .admin-table tr:hover td {
  824. background: var(--color-bg);
  825. }
  826. .admin-table td:last-child {
  827. white-space: nowrap;
  828. display: flex;
  829. gap: 4px;
  830. flex-wrap: wrap;
  831. }
  832. /* ===== Move Dialog ===== */
  833. #move-dir-list {
  834. max-height: 300px;
  835. overflow-y: auto;
  836. border: 1px solid var(--color-border);
  837. border-radius: var(--radius-md);
  838. padding: 4px;
  839. }
  840. .move-dir-item {
  841. padding: 8px 12px;
  842. cursor: pointer;
  843. border-radius: var(--radius-sm);
  844. margin-bottom: 2px;
  845. font-size: 13px;
  846. transition: background 0.15s;
  847. color: var(--color-text);
  848. }
  849. .move-dir-item:hover {
  850. background: var(--color-border-light);
  851. }
  852. .move-dir-item.selected {
  853. background: #e8f4fd;
  854. border: 1px solid var(--color-blue);
  855. color: var(--color-blue);
  856. font-weight: 500;
  857. }
  858. /* ===== Share URL Box ===== */
  859. .share-url-box {
  860. display: flex;
  861. gap: 8px;
  862. margin-top: 8px;
  863. }
  864. .share-url-box input {
  865. flex: 1;
  866. padding: 8px;
  867. border: 1px solid #ddd;
  868. border-radius: var(--radius-sm);
  869. font-size: 13px;
  870. margin-bottom: 0;
  871. color: var(--color-text-light);
  872. background: var(--color-bg);
  873. }
  874. .share-url-box button {
  875. flex-shrink: 0;
  876. padding: 8px 14px;
  877. background: var(--color-blue);
  878. color: var(--color-white);
  879. border: none;
  880. border-radius: var(--radius-sm);
  881. cursor: pointer;
  882. font-size: 13px;
  883. transition: background 0.2s;
  884. }
  885. .share-url-box button:hover {
  886. background: var(--color-blue-hover);
  887. }
  888. /* ===== Responsive ===== */
  889. @media (max-width: 768px) {
  890. #sidebar {
  891. position: absolute;
  892. left: 0;
  893. top: var(--topbar-height);
  894. bottom: 0;
  895. z-index: 500;
  896. box-shadow: var(--shadow-md);
  897. }
  898. #sidebar.collapsed {
  899. width: 0;
  900. }
  901. .modal-large {
  902. min-width: 95vw;
  903. }
  904. #track-info-panel {
  905. bottom: 10px;
  906. right: 10px;
  907. max-width: calc(100vw - 20px);
  908. }
  909. }
  910. @media (max-width: 480px) {
  911. .auth-container {
  912. min-width: unset;
  913. margin: 16px;
  914. padding: 28px 20px;
  915. }
  916. #topbar {
  917. padding: 0 10px;
  918. }
  919. #topbar-title {
  920. font-size: 14px;
  921. }
  922. .admin-table {
  923. font-size: 11px;
  924. }
  925. .admin-table th,
  926. .admin-table td {
  927. padding: 6px 8px;
  928. }
  929. }