style.css 20 KB

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