style.css 20 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108
  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.resizing {
  245. transition: none;
  246. }
  247. /* ===== Sidebar Resize Handle ===== */
  248. #sidebar-resize-handle {
  249. width: 5px;
  250. flex-shrink: 0;
  251. cursor: col-resize;
  252. background: transparent;
  253. position: relative;
  254. z-index: 10;
  255. transition: background 0.15s;
  256. }
  257. #sidebar-resize-handle:hover,
  258. #sidebar-resize-handle.dragging {
  259. background: var(--color-blue);
  260. }
  261. #sidebar.collapsed + #sidebar-resize-handle {
  262. display: none;
  263. }
  264. /* ===== Sidebar Tabs ===== */
  265. #sidebar-tabs {
  266. display: flex;
  267. border-bottom: 1px solid var(--color-border);
  268. flex-shrink: 0;
  269. }
  270. .sidebar-tab {
  271. flex: 1;
  272. padding: 12px;
  273. border: none;
  274. background: none;
  275. cursor: pointer;
  276. font-size: 13px;
  277. font-weight: 500;
  278. color: var(--color-text-light);
  279. transition: color 0.2s;
  280. border-bottom: 2px solid transparent;
  281. margin-bottom: -1px;
  282. }
  283. .sidebar-tab:hover:not(.active) {
  284. color: var(--color-text);
  285. background: var(--color-bg);
  286. }
  287. .sidebar-tab.active {
  288. color: var(--color-blue);
  289. border-bottom-color: var(--color-blue);
  290. }
  291. /* ===== Sidebar Tab Content ===== */
  292. .sidebar-tab-content {
  293. display: flex;
  294. flex-direction: column;
  295. flex: 1;
  296. overflow: hidden;
  297. }
  298. #browser-tab {
  299. display: flex;
  300. flex-direction: column;
  301. flex: 1;
  302. overflow: hidden;
  303. }
  304. #stats-tab {
  305. flex: 1;
  306. overflow-y: auto;
  307. padding: 12px;
  308. }
  309. /* ===== Breadcrumb ===== */
  310. #breadcrumb {
  311. padding: 8px 12px;
  312. font-size: 13px;
  313. background: var(--color-bg);
  314. border-bottom: 1px solid var(--color-border);
  315. flex-shrink: 0;
  316. white-space: nowrap;
  317. overflow: hidden;
  318. text-overflow: ellipsis;
  319. }
  320. .bc-item {
  321. cursor: pointer;
  322. color: var(--color-blue);
  323. transition: text-decoration 0.1s;
  324. }
  325. .bc-item:hover {
  326. text-decoration: underline;
  327. }
  328. .bc-item:last-child {
  329. color: var(--color-text);
  330. cursor: default;
  331. font-weight: 500;
  332. }
  333. .bc-item:last-child:hover {
  334. text-decoration: none;
  335. }
  336. .bc-sep {
  337. color: var(--color-text-lighter);
  338. margin: 0 4px;
  339. }
  340. /* ===== Browser Actions ===== */
  341. #browser-actions {
  342. display: flex;
  343. gap: 8px;
  344. padding: 8px;
  345. border-bottom: 1px solid var(--color-border);
  346. flex-shrink: 0;
  347. }
  348. .action-btn {
  349. padding: 6px 12px;
  350. border: 1px solid var(--color-blue);
  351. color: var(--color-blue);
  352. background: var(--color-white);
  353. border-radius: var(--radius-sm);
  354. cursor: pointer;
  355. font-size: 13px;
  356. transition: background 0.2s, color 0.2s;
  357. font-weight: 500;
  358. }
  359. .action-btn:hover {
  360. background: var(--color-blue);
  361. color: var(--color-white);
  362. }
  363. /* ===== Browser List ===== */
  364. #browser-list {
  365. flex: 1;
  366. overflow-y: auto;
  367. }
  368. .tree-item.dir-item,
  369. .tree-item.track-item {
  370. display: flex;
  371. align-items: center;
  372. border-bottom: 1px solid var(--color-border-light);
  373. cursor: pointer;
  374. position: relative;
  375. gap: 6px;
  376. transition: background 0.15s;
  377. min-height: 36px;
  378. padding-top: 6px;
  379. padding-bottom: 6px;
  380. padding-right: 8px;
  381. }
  382. /* Legacy selectors kept for compatibility */
  383. .dir-item,
  384. .track-item {
  385. display: flex;
  386. align-items: center;
  387. padding: 8px 12px;
  388. border-bottom: 1px solid var(--color-border-light);
  389. cursor: pointer;
  390. position: relative;
  391. gap: 8px;
  392. transition: background 0.15s;
  393. min-height: 40px;
  394. }
  395. .dir-item:hover,
  396. .track-item:hover {
  397. background: var(--color-bg);
  398. }
  399. /* ===== Expand Button (tree triangle) ===== */
  400. .expand-btn {
  401. flex-shrink: 0;
  402. width: 16px;
  403. height: 16px;
  404. display: inline-flex;
  405. align-items: center;
  406. justify-content: center;
  407. font-size: 10px;
  408. color: var(--color-text-lighter);
  409. transition: transform 0.15s, color 0.15s;
  410. cursor: pointer;
  411. border-radius: 3px;
  412. user-select: none;
  413. }
  414. .expand-btn::before {
  415. content: '▶';
  416. }
  417. .expand-btn.expanded {
  418. transform: rotate(90deg);
  419. color: var(--color-blue);
  420. }
  421. .expand-btn:hover {
  422. color: var(--color-text);
  423. background: var(--color-border-light);
  424. }
  425. /* ===== Selected Dir ===== */
  426. .dir-item.selected {
  427. background: #e8f4fd;
  428. }
  429. .dir-item.selected .item-name {
  430. color: var(--color-blue);
  431. font-weight: 500;
  432. }
  433. .dir-item.selected:hover {
  434. background: #d6ecf8;
  435. }
  436. /* ===== Drag target (folder highlight when dragging track) ===== */
  437. .dir-item.drag-target {
  438. background: #d6ecf8;
  439. outline: 2px dashed var(--color-blue);
  440. outline-offset: -2px;
  441. }
  442. /* ===== Dragging track ===== */
  443. .track-item.dragging {
  444. opacity: 0.4;
  445. }
  446. /* ===== Multi-selected track ===== */
  447. .track-item.multi-selected {
  448. background: #e8f4fd;
  449. box-shadow: inset 3px 0 0 var(--color-blue);
  450. }
  451. .track-item.multi-selected:hover {
  452. background: #d6ecf8;
  453. }
  454. /* ===== Local (guest) active track ===== */
  455. .track-item.local-active {
  456. background: #e8f4fd;
  457. box-shadow: inset 3px 0 0 var(--color-blue);
  458. }
  459. /* ===== Tree loading placeholder ===== */
  460. .tree-loading {
  461. padding-top: 4px;
  462. padding-bottom: 4px;
  463. font-size: 12px;
  464. }
  465. .item-icon {
  466. flex-shrink: 0;
  467. width: 20px;
  468. text-align: center;
  469. font-size: 15px;
  470. }
  471. .item-name {
  472. flex: 1;
  473. font-size: 13px;
  474. overflow: hidden;
  475. text-overflow: ellipsis;
  476. white-space: nowrap;
  477. color: var(--color-text);
  478. }
  479. .item-meta {
  480. font-size: 12px;
  481. color: var(--color-text-light);
  482. flex-shrink: 0;
  483. }
  484. .item-date {
  485. font-size: 11px;
  486. color: var(--color-text-lighter);
  487. flex-shrink: 0;
  488. }
  489. .item-actions {
  490. display: none;
  491. gap: 4px;
  492. flex-shrink: 0;
  493. }
  494. .dir-item:hover .item-actions,
  495. .track-item:hover .item-actions {
  496. display: flex;
  497. }
  498. .item-btn {
  499. background: none;
  500. border: 1px solid #ddd;
  501. border-radius: var(--radius-sm);
  502. cursor: pointer;
  503. padding: 2px 6px;
  504. font-size: 13px;
  505. line-height: 1.4;
  506. transition: background 0.15s;
  507. color: var(--color-text-light);
  508. }
  509. .item-btn:hover {
  510. background: var(--color-border-light);
  511. border-color: #bbb;
  512. }
  513. .empty-list {
  514. color: var(--color-text-lighter);
  515. font-size: 13px;
  516. text-align: center;
  517. padding: 32px 16px;
  518. }
  519. .loading {
  520. color: var(--color-text-light);
  521. text-align: center;
  522. padding: 24px 16px;
  523. font-size: 13px;
  524. }
  525. /* ===== Map Container ===== */
  526. #map-container {
  527. flex: 1;
  528. position: relative;
  529. overflow: hidden;
  530. }
  531. #map {
  532. width: 100%;
  533. height: 100%;
  534. }
  535. .drag-over {
  536. outline: 4px dashed var(--color-blue);
  537. outline-offset: -4px;
  538. }
  539. /* ===== Track Info Panel ===== */
  540. #track-info-panel {
  541. position: absolute;
  542. bottom: 20px;
  543. right: 20px;
  544. background: var(--color-white);
  545. border-radius: var(--radius-lg);
  546. box-shadow: var(--shadow-md);
  547. padding: 16px;
  548. min-width: 280px;
  549. max-width: 400px;
  550. z-index: 1000;
  551. }
  552. /* ===== Elevation Chart ===== */
  553. #elevation-chart-container {
  554. position: relative;
  555. height: 120px;
  556. margin-top: 10px;
  557. border-top: 1px solid var(--color-border-light);
  558. padding-top: 8px;
  559. }
  560. #elevation-canvas {
  561. display: block;
  562. width: 100%;
  563. height: 100%;
  564. cursor: crosshair;
  565. }
  566. #elevation-tooltip {
  567. position: absolute;
  568. top: 0;
  569. left: 0;
  570. background: rgba(44, 62, 80, 0.92);
  571. color: #fff;
  572. padding: 6px 10px;
  573. border-radius: var(--radius-sm);
  574. font-size: 11px;
  575. line-height: 1.55;
  576. pointer-events: none;
  577. white-space: nowrap;
  578. opacity: 0;
  579. transition: opacity 0.12s;
  580. z-index: 10;
  581. }
  582. #elevation-tooltip.visible {
  583. opacity: 1;
  584. }
  585. /* ===== Map hover marker ===== */
  586. .hover-marker {
  587. background: #e74c3c;
  588. border: 3px solid white;
  589. border-radius: 50%;
  590. box-shadow: 0 2px 5px rgba(0, 0, 0, 0.35);
  591. }
  592. /* ===== Map hover tooltip ===== */
  593. .map-tooltip.leaflet-tooltip {
  594. background: rgba(44, 62, 80, 0.92) !important;
  595. color: #fff !important;
  596. border: none !important;
  597. border-radius: var(--radius-sm) !important;
  598. padding: 6px 10px !important;
  599. font-size: 11px !important;
  600. line-height: 1.55;
  601. box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25) !important;
  602. white-space: nowrap;
  603. }
  604. .map-tooltip.leaflet-tooltip::before {
  605. display: none !important;
  606. }
  607. #track-info-panel h3 {
  608. margin-bottom: 8px;
  609. font-size: 14px;
  610. font-weight: 600;
  611. color: var(--color-text);
  612. padding-right: 24px;
  613. }
  614. .info-row {
  615. display: flex;
  616. justify-content: space-between;
  617. font-size: 13px;
  618. padding: 4px 0;
  619. border-bottom: 1px solid var(--color-border-light);
  620. }
  621. .info-row:last-child {
  622. border-bottom: none;
  623. }
  624. .info-row label {
  625. color: var(--color-text-light);
  626. }
  627. .info-row span {
  628. font-weight: 500;
  629. color: var(--color-text);
  630. }
  631. #track-info-close {
  632. position: absolute;
  633. top: 8px;
  634. right: 8px;
  635. background: none;
  636. border: none;
  637. cursor: pointer;
  638. font-size: 20px;
  639. color: var(--color-text-lighter);
  640. line-height: 1;
  641. padding: 2px 4px;
  642. transition: color 0.15s;
  643. }
  644. #track-info-close:hover {
  645. color: var(--color-text);
  646. }
  647. /* ===== Modals ===== */
  648. .modal {
  649. position: fixed;
  650. inset: 0;
  651. background: rgba(0, 0, 0, 0.5);
  652. display: flex;
  653. align-items: center;
  654. justify-content: center;
  655. z-index: 9999;
  656. }
  657. .modal-content {
  658. background: var(--color-white);
  659. border-radius: var(--radius-lg);
  660. padding: 24px;
  661. min-width: 300px;
  662. max-width: 90vw;
  663. max-height: 90vh;
  664. overflow-y: auto;
  665. position: relative;
  666. box-shadow: var(--shadow-lg);
  667. }
  668. .modal-large {
  669. min-width: min(700px, 95vw);
  670. }
  671. .modal-header {
  672. display: flex;
  673. justify-content: space-between;
  674. align-items: center;
  675. margin-bottom: 16px;
  676. }
  677. .modal-header h2 {
  678. font-size: 18px;
  679. font-weight: 600;
  680. color: var(--color-text);
  681. }
  682. .modal-close {
  683. background: none;
  684. border: none;
  685. font-size: 24px;
  686. cursor: pointer;
  687. color: var(--color-text-lighter);
  688. line-height: 1;
  689. padding: 2px 6px;
  690. transition: color 0.15s;
  691. }
  692. .modal-close:hover {
  693. color: var(--color-text);
  694. }
  695. /* ===== Buttons ===== */
  696. .btn-primary {
  697. padding: 8px 16px;
  698. background: var(--color-blue);
  699. color: var(--color-white);
  700. border: none;
  701. border-radius: var(--radius-sm);
  702. cursor: pointer;
  703. font-size: 14px;
  704. font-weight: 500;
  705. transition: background 0.2s;
  706. }
  707. .btn-primary:hover {
  708. background: var(--color-blue-hover);
  709. }
  710. .btn-secondary {
  711. padding: 8px 16px;
  712. background: var(--color-gray);
  713. color: var(--color-white);
  714. border: none;
  715. border-radius: var(--radius-sm);
  716. cursor: pointer;
  717. font-size: 14px;
  718. font-weight: 500;
  719. transition: background 0.2s;
  720. }
  721. .btn-secondary:hover {
  722. background: var(--color-gray-hover);
  723. }
  724. .btn-danger {
  725. padding: 8px 16px;
  726. background: var(--color-red);
  727. color: var(--color-white);
  728. border: none;
  729. border-radius: var(--radius-sm);
  730. cursor: pointer;
  731. font-size: 14px;
  732. font-weight: 500;
  733. transition: background 0.2s;
  734. }
  735. .btn-danger:hover {
  736. background: var(--color-red-hover);
  737. }
  738. .btn-small {
  739. padding: 4px 10px;
  740. font-size: 12px;
  741. border-radius: var(--radius-sm);
  742. cursor: pointer;
  743. border: none;
  744. font-weight: 500;
  745. transition: background 0.2s;
  746. }
  747. .btn-small.btn-primary {
  748. background: var(--color-blue);
  749. color: var(--color-white);
  750. }
  751. .btn-small.btn-primary:hover {
  752. background: var(--color-blue-hover);
  753. }
  754. .btn-small.btn-secondary {
  755. background: var(--color-gray);
  756. color: var(--color-white);
  757. }
  758. .btn-small.btn-secondary:hover {
  759. background: var(--color-gray-hover);
  760. }
  761. .btn-small.btn-danger {
  762. background: var(--color-red);
  763. color: var(--color-white);
  764. }
  765. .btn-small.btn-danger:hover {
  766. background: var(--color-red-hover);
  767. }
  768. /* ===== Upload Toast ===== */
  769. #upload-toast {
  770. position: fixed;
  771. top: 16px;
  772. right: 16px;
  773. background: var(--color-dark);
  774. color: var(--color-white);
  775. padding: 12px 20px;
  776. border-radius: var(--radius-md);
  777. z-index: 99999;
  778. font-size: 14px;
  779. box-shadow: var(--shadow-md);
  780. max-width: 300px;
  781. word-break: break-word;
  782. }
  783. #upload-toast.success {
  784. background: var(--color-green);
  785. }
  786. #upload-toast.error {
  787. background: var(--color-red);
  788. }
  789. /* ===== Stats ===== */
  790. .stats-section {
  791. margin-bottom: 24px;
  792. }
  793. .stats-section h3 {
  794. font-size: 11px;
  795. text-transform: uppercase;
  796. color: var(--color-text-light);
  797. margin-bottom: 12px;
  798. letter-spacing: 0.5px;
  799. font-weight: 600;
  800. }
  801. .stat-row {
  802. display: flex;
  803. align-items: center;
  804. margin-bottom: 6px;
  805. gap: 8px;
  806. }
  807. .stat-row .stat-label {
  808. width: 80px;
  809. font-size: 12px;
  810. color: var(--color-text-light);
  811. flex-shrink: 0;
  812. }
  813. .stat-bar-wrap {
  814. flex: 1;
  815. height: 16px;
  816. background: var(--color-border-light);
  817. border-radius: 8px;
  818. overflow: hidden;
  819. }
  820. .stat-bar {
  821. height: 100%;
  822. background: var(--color-blue);
  823. border-radius: 8px;
  824. transition: width 0.3s ease;
  825. min-width: 2px;
  826. }
  827. .stat-row .stat-value {
  828. width: 80px;
  829. text-align: right;
  830. font-size: 12px;
  831. font-weight: 600;
  832. flex-shrink: 0;
  833. color: var(--color-text);
  834. }
  835. /* ===== Admin Table ===== */
  836. .admin-table {
  837. width: 100%;
  838. border-collapse: collapse;
  839. font-size: 13px;
  840. }
  841. .admin-table th {
  842. background: var(--color-bg);
  843. padding: 10px 12px;
  844. text-align: left;
  845. border-bottom: 2px solid #dee2e6;
  846. font-weight: 600;
  847. color: var(--color-text);
  848. white-space: nowrap;
  849. }
  850. .admin-table td {
  851. padding: 8px 12px;
  852. border-bottom: 1px solid var(--color-border-light);
  853. color: var(--color-text);
  854. vertical-align: middle;
  855. }
  856. .admin-table tr:hover td {
  857. background: var(--color-bg);
  858. }
  859. .admin-table td:last-child {
  860. white-space: nowrap;
  861. display: flex;
  862. gap: 4px;
  863. flex-wrap: wrap;
  864. }
  865. /* ===== Move Dialog ===== */
  866. #move-dir-list {
  867. max-height: 300px;
  868. overflow-y: auto;
  869. border: 1px solid var(--color-border);
  870. border-radius: var(--radius-md);
  871. padding: 4px;
  872. }
  873. .move-dir-item {
  874. padding: 8px 12px;
  875. cursor: pointer;
  876. border-radius: var(--radius-sm);
  877. margin-bottom: 2px;
  878. font-size: 13px;
  879. transition: background 0.15s;
  880. color: var(--color-text);
  881. }
  882. .move-dir-item:hover {
  883. background: var(--color-border-light);
  884. }
  885. .move-dir-item.selected {
  886. background: #e8f4fd;
  887. border: 1px solid var(--color-blue);
  888. color: var(--color-blue);
  889. font-weight: 500;
  890. }
  891. /* ===== Share URL Box ===== */
  892. .share-url-box {
  893. display: flex;
  894. gap: 8px;
  895. margin-top: 8px;
  896. }
  897. .share-url-box input {
  898. flex: 1;
  899. padding: 8px;
  900. border: 1px solid #ddd;
  901. border-radius: var(--radius-sm);
  902. font-size: 13px;
  903. margin-bottom: 0;
  904. color: var(--color-text-light);
  905. background: var(--color-bg);
  906. }
  907. .share-url-box button {
  908. flex-shrink: 0;
  909. padding: 8px 14px;
  910. background: var(--color-blue);
  911. color: var(--color-white);
  912. border: none;
  913. border-radius: var(--radius-sm);
  914. cursor: pointer;
  915. font-size: 13px;
  916. transition: background 0.2s;
  917. }
  918. .share-url-box button:hover {
  919. background: var(--color-blue-hover);
  920. }
  921. /* ===== Responsive ===== */
  922. @media (max-width: 768px) {
  923. #sidebar {
  924. position: absolute;
  925. left: 0;
  926. top: var(--topbar-height);
  927. bottom: 0;
  928. z-index: 500;
  929. box-shadow: var(--shadow-md);
  930. }
  931. #sidebar.collapsed {
  932. width: 0;
  933. }
  934. .modal-large {
  935. min-width: 95vw;
  936. }
  937. #track-info-panel {
  938. bottom: 10px;
  939. right: 10px;
  940. max-width: calc(100vw - 20px);
  941. }
  942. }
  943. @media (max-width: 480px) {
  944. .auth-container {
  945. min-width: unset;
  946. margin: 16px;
  947. padding: 28px 20px;
  948. }
  949. #topbar {
  950. padding: 0 10px;
  951. }
  952. #topbar-title {
  953. font-size: 14px;
  954. }
  955. .admin-table {
  956. font-size: 11px;
  957. }
  958. .admin-table th,
  959. .admin-table td {
  960. padding: 6px 8px;
  961. }
  962. }