style.css 21 KB

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