style.css 21 KB

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