style.css 20 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144
  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. .dir-item.dragging {
  445. opacity: 0.4;
  446. }
  447. /* ===== Multi-selected track ===== */
  448. .track-item.multi-selected {
  449. background: #e8f4fd;
  450. box-shadow: inset 3px 0 0 var(--color-blue);
  451. }
  452. .track-item.multi-selected:hover {
  453. background: #d6ecf8;
  454. }
  455. /* ===== Track type emoji ===== */
  456. .type-emoji {
  457. cursor: default;
  458. }
  459. /* ===== Local (guest) active track ===== */
  460. .track-item.local-active {
  461. background: #e8f4fd;
  462. box-shadow: inset 3px 0 0 var(--color-blue);
  463. }
  464. /* ===== Tree loading placeholder ===== */
  465. .tree-loading {
  466. padding-top: 4px;
  467. padding-bottom: 4px;
  468. font-size: 12px;
  469. }
  470. .item-icon {
  471. flex-shrink: 0;
  472. width: 20px;
  473. text-align: center;
  474. font-size: 15px;
  475. }
  476. .item-name {
  477. flex: 1;
  478. font-size: 13px;
  479. overflow: hidden;
  480. text-overflow: ellipsis;
  481. white-space: nowrap;
  482. color: var(--color-text);
  483. }
  484. .item-meta {
  485. font-size: 12px;
  486. color: var(--color-text-light);
  487. flex-shrink: 0;
  488. }
  489. .item-date {
  490. font-size: 11px;
  491. color: var(--color-text-lighter);
  492. flex-shrink: 0;
  493. }
  494. .item-actions {
  495. display: none;
  496. gap: 4px;
  497. flex-shrink: 0;
  498. }
  499. .dir-item:hover .item-actions,
  500. .track-item:hover .item-actions {
  501. display: flex;
  502. }
  503. .item-btn {
  504. background: none;
  505. border: 1px solid #ddd;
  506. border-radius: var(--radius-sm);
  507. cursor: pointer;
  508. padding: 2px 6px;
  509. font-size: 13px;
  510. line-height: 1.4;
  511. transition: background 0.15s;
  512. color: var(--color-text-light);
  513. }
  514. .item-btn:hover {
  515. background: var(--color-border-light);
  516. border-color: #bbb;
  517. }
  518. .empty-list {
  519. color: var(--color-text-lighter);
  520. font-size: 13px;
  521. text-align: center;
  522. padding: 32px 16px;
  523. }
  524. .loading {
  525. color: var(--color-text-light);
  526. text-align: center;
  527. padding: 24px 16px;
  528. font-size: 13px;
  529. }
  530. /* ===== Map Container ===== */
  531. #map-container {
  532. flex: 1;
  533. position: relative;
  534. overflow: hidden;
  535. }
  536. #map {
  537. width: 100%;
  538. height: 100%;
  539. }
  540. .drag-over {
  541. outline: 4px dashed var(--color-blue);
  542. outline-offset: -4px;
  543. }
  544. /* ===== Track Info Panel ===== */
  545. #track-info-panel {
  546. position: absolute;
  547. bottom: 20px;
  548. right: 20px;
  549. background: var(--color-white);
  550. border-radius: var(--radius-lg);
  551. box-shadow: var(--shadow-md);
  552. padding: 16px;
  553. min-width: 280px;
  554. max-width: 400px;
  555. z-index: 1000;
  556. }
  557. /* ===== Elevation Chart ===== */
  558. #elevation-chart-container {
  559. position: relative;
  560. height: 120px;
  561. margin-top: 10px;
  562. border-top: 1px solid var(--color-border-light);
  563. padding-top: 8px;
  564. }
  565. #elevation-canvas {
  566. display: block;
  567. width: 100%;
  568. height: 100%;
  569. cursor: crosshair;
  570. }
  571. #elevation-tooltip {
  572. position: absolute;
  573. top: 0;
  574. left: 0;
  575. background: rgba(44, 62, 80, 0.92);
  576. color: #fff;
  577. padding: 6px 10px;
  578. border-radius: var(--radius-sm);
  579. font-size: 11px;
  580. line-height: 1.55;
  581. pointer-events: none;
  582. white-space: nowrap;
  583. opacity: 0;
  584. transition: opacity 0.12s;
  585. z-index: 10;
  586. }
  587. #elevation-tooltip.visible {
  588. opacity: 1;
  589. }
  590. /* ===== Map hover marker ===== */
  591. .hover-marker {
  592. background: #e74c3c;
  593. border: 3px solid white;
  594. border-radius: 50%;
  595. box-shadow: 0 2px 5px rgba(0, 0, 0, 0.35);
  596. }
  597. /* ===== Map hover tooltip ===== */
  598. .map-tooltip.leaflet-tooltip {
  599. background: rgba(44, 62, 80, 0.92) !important;
  600. color: #fff !important;
  601. border: none !important;
  602. border-radius: var(--radius-sm) !important;
  603. padding: 6px 10px !important;
  604. font-size: 11px !important;
  605. line-height: 1.55;
  606. box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25) !important;
  607. white-space: nowrap;
  608. }
  609. .map-tooltip.leaflet-tooltip::before {
  610. display: none !important;
  611. }
  612. #track-info-panel h3 {
  613. margin-bottom: 8px;
  614. font-size: 14px;
  615. font-weight: 600;
  616. color: var(--color-text);
  617. padding-right: 24px;
  618. }
  619. .info-row {
  620. display: flex;
  621. justify-content: space-between;
  622. font-size: 13px;
  623. padding: 4px 0;
  624. border-bottom: 1px solid var(--color-border-light);
  625. }
  626. .info-row:last-child {
  627. border-bottom: none;
  628. }
  629. .info-row label {
  630. color: var(--color-text-light);
  631. }
  632. .info-row span {
  633. font-weight: 500;
  634. color: var(--color-text);
  635. }
  636. #track-info-close {
  637. position: absolute;
  638. top: 8px;
  639. right: 8px;
  640. background: none;
  641. border: none;
  642. cursor: pointer;
  643. font-size: 20px;
  644. color: var(--color-text-lighter);
  645. line-height: 1;
  646. padding: 2px 4px;
  647. transition: color 0.15s;
  648. }
  649. #track-info-close:hover {
  650. color: var(--color-text);
  651. }
  652. /* ===== Modals ===== */
  653. .modal {
  654. position: fixed;
  655. inset: 0;
  656. background: rgba(0, 0, 0, 0.5);
  657. display: flex;
  658. align-items: center;
  659. justify-content: center;
  660. z-index: 9999;
  661. }
  662. .modal-content {
  663. background: var(--color-white);
  664. border-radius: var(--radius-lg);
  665. padding: 24px;
  666. min-width: 300px;
  667. max-width: 90vw;
  668. max-height: 90vh;
  669. overflow-y: auto;
  670. position: relative;
  671. box-shadow: var(--shadow-lg);
  672. }
  673. .modal-large {
  674. min-width: min(700px, 95vw);
  675. }
  676. .modal-header {
  677. display: flex;
  678. justify-content: space-between;
  679. align-items: center;
  680. margin-bottom: 16px;
  681. }
  682. .modal-header h2 {
  683. font-size: 18px;
  684. font-weight: 600;
  685. color: var(--color-text);
  686. }
  687. .modal-close {
  688. background: none;
  689. border: none;
  690. font-size: 24px;
  691. cursor: pointer;
  692. color: var(--color-text-lighter);
  693. line-height: 1;
  694. padding: 2px 6px;
  695. transition: color 0.15s;
  696. }
  697. /* ===== Form fields (used in modals) ===== */
  698. .form-group {
  699. display: flex;
  700. flex-direction: column;
  701. gap: 6px;
  702. margin-bottom: 14px;
  703. }
  704. .form-group label {
  705. font-size: 13px;
  706. font-weight: 500;
  707. color: var(--color-text-light);
  708. }
  709. .form-input {
  710. width: 100%;
  711. padding: 8px 10px;
  712. border: 1px solid var(--color-border);
  713. border-radius: var(--radius-sm);
  714. font-size: 14px;
  715. color: var(--color-text);
  716. background: var(--color-white);
  717. transition: border-color 0.15s;
  718. }
  719. .form-input:focus {
  720. outline: none;
  721. border-color: var(--color-blue);
  722. }
  723. .modal-close:hover {
  724. color: var(--color-text);
  725. }
  726. /* ===== Buttons ===== */
  727. .btn-primary {
  728. padding: 8px 16px;
  729. background: var(--color-blue);
  730. color: var(--color-white);
  731. border: none;
  732. border-radius: var(--radius-sm);
  733. cursor: pointer;
  734. font-size: 14px;
  735. font-weight: 500;
  736. transition: background 0.2s;
  737. }
  738. .btn-primary:hover {
  739. background: var(--color-blue-hover);
  740. }
  741. .btn-secondary {
  742. padding: 8px 16px;
  743. background: var(--color-gray);
  744. color: var(--color-white);
  745. border: none;
  746. border-radius: var(--radius-sm);
  747. cursor: pointer;
  748. font-size: 14px;
  749. font-weight: 500;
  750. transition: background 0.2s;
  751. }
  752. .btn-secondary:hover {
  753. background: var(--color-gray-hover);
  754. }
  755. .btn-danger {
  756. padding: 8px 16px;
  757. background: var(--color-red);
  758. color: var(--color-white);
  759. border: none;
  760. border-radius: var(--radius-sm);
  761. cursor: pointer;
  762. font-size: 14px;
  763. font-weight: 500;
  764. transition: background 0.2s;
  765. }
  766. .btn-danger:hover {
  767. background: var(--color-red-hover);
  768. }
  769. .btn-small {
  770. padding: 4px 10px;
  771. font-size: 12px;
  772. border-radius: var(--radius-sm);
  773. cursor: pointer;
  774. border: none;
  775. font-weight: 500;
  776. transition: background 0.2s;
  777. }
  778. .btn-small.btn-primary {
  779. background: var(--color-blue);
  780. color: var(--color-white);
  781. }
  782. .btn-small.btn-primary:hover {
  783. background: var(--color-blue-hover);
  784. }
  785. .btn-small.btn-secondary {
  786. background: var(--color-gray);
  787. color: var(--color-white);
  788. }
  789. .btn-small.btn-secondary:hover {
  790. background: var(--color-gray-hover);
  791. }
  792. .btn-small.btn-danger {
  793. background: var(--color-red);
  794. color: var(--color-white);
  795. }
  796. .btn-small.btn-danger:hover {
  797. background: var(--color-red-hover);
  798. }
  799. /* ===== Upload Toast ===== */
  800. #upload-toast {
  801. position: fixed;
  802. top: 16px;
  803. right: 16px;
  804. background: var(--color-dark);
  805. color: var(--color-white);
  806. padding: 12px 20px;
  807. border-radius: var(--radius-md);
  808. z-index: 99999;
  809. font-size: 14px;
  810. box-shadow: var(--shadow-md);
  811. max-width: 300px;
  812. word-break: break-word;
  813. }
  814. #upload-toast.success {
  815. background: var(--color-green);
  816. }
  817. #upload-toast.error {
  818. background: var(--color-red);
  819. }
  820. /* ===== Stats ===== */
  821. .stats-section {
  822. margin-bottom: 24px;
  823. }
  824. .stats-section h3 {
  825. font-size: 11px;
  826. text-transform: uppercase;
  827. color: var(--color-text-light);
  828. margin-bottom: 12px;
  829. letter-spacing: 0.5px;
  830. font-weight: 600;
  831. }
  832. .stat-row {
  833. display: flex;
  834. align-items: center;
  835. margin-bottom: 6px;
  836. gap: 8px;
  837. }
  838. .stat-row .stat-label {
  839. width: 80px;
  840. font-size: 12px;
  841. color: var(--color-text-light);
  842. flex-shrink: 0;
  843. }
  844. .stat-bar-wrap {
  845. flex: 1;
  846. height: 16px;
  847. background: var(--color-border-light);
  848. border-radius: 8px;
  849. overflow: hidden;
  850. }
  851. .stat-bar {
  852. height: 100%;
  853. background: var(--color-blue);
  854. border-radius: 8px;
  855. transition: width 0.3s ease;
  856. min-width: 2px;
  857. }
  858. .stat-row .stat-value {
  859. width: 80px;
  860. text-align: right;
  861. font-size: 12px;
  862. font-weight: 600;
  863. flex-shrink: 0;
  864. color: var(--color-text);
  865. }
  866. /* ===== Admin Table ===== */
  867. .admin-table {
  868. width: 100%;
  869. border-collapse: collapse;
  870. font-size: 13px;
  871. }
  872. .admin-table th {
  873. background: var(--color-bg);
  874. padding: 10px 12px;
  875. text-align: left;
  876. border-bottom: 2px solid #dee2e6;
  877. font-weight: 600;
  878. color: var(--color-text);
  879. white-space: nowrap;
  880. }
  881. .admin-table td {
  882. padding: 8px 12px;
  883. border-bottom: 1px solid var(--color-border-light);
  884. color: var(--color-text);
  885. vertical-align: middle;
  886. }
  887. .admin-table tr:hover td {
  888. background: var(--color-bg);
  889. }
  890. .admin-table td:last-child {
  891. white-space: nowrap;
  892. display: flex;
  893. gap: 4px;
  894. flex-wrap: wrap;
  895. }
  896. /* ===== Move Dialog ===== */
  897. #move-dir-list {
  898. max-height: 300px;
  899. overflow-y: auto;
  900. border: 1px solid var(--color-border);
  901. border-radius: var(--radius-md);
  902. padding: 4px;
  903. }
  904. .move-dir-item {
  905. padding: 8px 12px;
  906. cursor: pointer;
  907. border-radius: var(--radius-sm);
  908. margin-bottom: 2px;
  909. font-size: 13px;
  910. transition: background 0.15s;
  911. color: var(--color-text);
  912. }
  913. .move-dir-item:hover {
  914. background: var(--color-border-light);
  915. }
  916. .move-dir-item.selected {
  917. background: #e8f4fd;
  918. border: 1px solid var(--color-blue);
  919. color: var(--color-blue);
  920. font-weight: 500;
  921. }
  922. /* ===== Share URL Box ===== */
  923. .share-url-box {
  924. display: flex;
  925. gap: 8px;
  926. margin-top: 8px;
  927. }
  928. .share-url-box input {
  929. flex: 1;
  930. padding: 8px;
  931. border: 1px solid #ddd;
  932. border-radius: var(--radius-sm);
  933. font-size: 13px;
  934. margin-bottom: 0;
  935. color: var(--color-text-light);
  936. background: var(--color-bg);
  937. }
  938. .share-url-box button {
  939. flex-shrink: 0;
  940. padding: 8px 14px;
  941. background: var(--color-blue);
  942. color: var(--color-white);
  943. border: none;
  944. border-radius: var(--radius-sm);
  945. cursor: pointer;
  946. font-size: 13px;
  947. transition: background 0.2s;
  948. }
  949. .share-url-box button:hover {
  950. background: var(--color-blue-hover);
  951. }
  952. /* ===== Responsive ===== */
  953. @media (max-width: 768px) {
  954. #sidebar {
  955. position: absolute;
  956. left: 0;
  957. top: var(--topbar-height);
  958. bottom: 0;
  959. z-index: 500;
  960. box-shadow: var(--shadow-md);
  961. }
  962. #sidebar.collapsed {
  963. width: 0;
  964. }
  965. .modal-large {
  966. min-width: 95vw;
  967. }
  968. #track-info-panel {
  969. bottom: 10px;
  970. right: 10px;
  971. max-width: calc(100vw - 20px);
  972. }
  973. }
  974. @media (max-width: 480px) {
  975. .auth-container {
  976. min-width: unset;
  977. margin: 16px;
  978. padding: 28px 20px;
  979. }
  980. #topbar {
  981. padding: 0 10px;
  982. }
  983. #topbar-title {
  984. font-size: 14px;
  985. }
  986. .admin-table {
  987. font-size: 11px;
  988. }
  989. .admin-table th,
  990. .admin-table td {
  991. padding: 6px 8px;
  992. }
  993. }