style.css 19 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098
  1. /* ===== CSS Variables ===== */
  2. :root {
  3. --color-dark: #2c3e50;
  4. --color-blue: #3498db;
  5. --color-blue-hover: #2980b9;
  6. --color-green: #27ae60;
  7. --color-red: #e74c3c;
  8. --color-red-hover: #c0392b;
  9. --color-gray: #95a5a6;
  10. --color-gray-hover: #7f8c8d;
  11. --color-border: #e0e3e7;
  12. --color-border-light: #f0f0f0;
  13. --color-bg: #f8f9fa;
  14. --color-white: #ffffff;
  15. --color-text: #2c3e50;
  16. --color-text-light: #666666;
  17. --color-text-lighter: #999999;
  18. --sidebar-width: 320px;
  19. --topbar-height: 48px;
  20. --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.1);
  21. --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.15);
  22. --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.2);
  23. --radius-sm: 4px;
  24. --radius-md: 6px;
  25. --radius-lg: 8px;
  26. --radius-xl: 12px;
  27. }
  28. /* ===== Reset ===== */
  29. *, *::before, *::after {
  30. box-sizing: border-box;
  31. margin: 0;
  32. padding: 0;
  33. }
  34. /* ===== Base ===== */
  35. body {
  36. font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  37. display: flex;
  38. flex-direction: column;
  39. height: 100vh;
  40. overflow: hidden;
  41. color: var(--color-text);
  42. font-size: 14px;
  43. line-height: 1.5;
  44. }
  45. /* ===== Auth Page ===== */
  46. #auth-page {
  47. position: fixed;
  48. inset: 0;
  49. display: flex;
  50. align-items: center;
  51. justify-content: center;
  52. background: linear-gradient(135deg, var(--color-dark) 0%, var(--color-blue) 100%);
  53. z-index: 10000;
  54. }
  55. .auth-container {
  56. background: var(--color-white);
  57. padding: 40px;
  58. border-radius: var(--radius-xl);
  59. box-shadow: var(--shadow-lg);
  60. min-width: 360px;
  61. width: 100%;
  62. max-width: 420px;
  63. }
  64. .auth-container h1 {
  65. text-align: center;
  66. margin-bottom: 24px;
  67. color: var(--color-dark);
  68. font-size: 24px;
  69. font-weight: 700;
  70. }
  71. .auth-tabs {
  72. display: flex;
  73. margin-bottom: 20px;
  74. border-radius: var(--radius-md);
  75. overflow: hidden;
  76. border: 1px solid var(--color-border);
  77. }
  78. .auth-tab {
  79. flex: 1;
  80. padding: 10px;
  81. border: none;
  82. border-right: 1px solid var(--color-border);
  83. cursor: pointer;
  84. background: var(--color-white);
  85. color: var(--color-text-light);
  86. font-size: 14px;
  87. font-weight: 500;
  88. transition: background 0.2s, color 0.2s;
  89. }
  90. .auth-tab:last-child {
  91. border-right: none;
  92. }
  93. .auth-tab:hover:not(.active) {
  94. background: var(--color-bg);
  95. }
  96. .auth-tab.active {
  97. background: var(--color-blue);
  98. color: var(--color-white);
  99. }
  100. /* ===== Form Inputs ===== */
  101. input[type="text"],
  102. input[type="password"],
  103. input[type="email"] {
  104. display: block;
  105. width: 100%;
  106. padding: 10px 12px;
  107. border: 1px solid #ddd;
  108. border-radius: var(--radius-md);
  109. margin-bottom: 12px;
  110. font-size: 14px;
  111. outline: none;
  112. transition: border-color 0.2s;
  113. color: var(--color-text);
  114. background: var(--color-white);
  115. }
  116. input[type="text"]:focus,
  117. input[type="password"]:focus,
  118. input[type="email"]:focus {
  119. border-color: var(--color-blue);
  120. box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
  121. }
  122. form button[type="submit"] {
  123. display: block;
  124. width: 100%;
  125. padding: 12px;
  126. background: var(--color-blue);
  127. color: var(--color-white);
  128. border: none;
  129. border-radius: var(--radius-md);
  130. cursor: pointer;
  131. font-size: 16px;
  132. font-weight: 500;
  133. transition: background 0.2s;
  134. margin-top: 4px;
  135. }
  136. form button[type="submit"]:hover {
  137. background: var(--color-blue-hover);
  138. }
  139. #login-form,
  140. #register-form {
  141. display: flex;
  142. flex-direction: column;
  143. }
  144. /* ===== Messages ===== */
  145. .error-msg {
  146. color: var(--color-red);
  147. font-size: 13px;
  148. margin-bottom: 12px;
  149. padding: 8px 12px;
  150. background: #fdf0ef;
  151. border-radius: var(--radius-sm);
  152. border-left: 3px solid var(--color-red);
  153. }
  154. .success-msg {
  155. color: var(--color-green);
  156. font-size: 13px;
  157. margin-bottom: 12px;
  158. padding: 8px 12px;
  159. background: #eafaf1;
  160. border-radius: var(--radius-sm);
  161. border-left: 3px solid var(--color-green);
  162. }
  163. /* ===== Topbar ===== */
  164. #topbar {
  165. height: var(--topbar-height);
  166. background: var(--color-dark);
  167. color: var(--color-white);
  168. display: flex;
  169. align-items: center;
  170. justify-content: space-between;
  171. padding: 0 16px;
  172. flex-shrink: 0;
  173. z-index: 100;
  174. }
  175. #topbar-left {
  176. display: flex;
  177. align-items: center;
  178. gap: 12px;
  179. }
  180. #topbar-right {
  181. display: flex;
  182. align-items: center;
  183. gap: 8px;
  184. }
  185. #topbar-title {
  186. font-size: 16px;
  187. font-weight: 600;
  188. letter-spacing: 0.3px;
  189. }
  190. #topbar-user {
  191. font-size: 13px;
  192. color: rgba(255, 255, 255, 0.75);
  193. margin-right: 4px;
  194. }
  195. /* ===== Icon & Topbar Buttons ===== */
  196. .icon-btn,
  197. .topbar-btn {
  198. background: transparent;
  199. border: 1px solid rgba(255, 255, 255, 0.3);
  200. color: var(--color-white);
  201. padding: 6px 12px;
  202. border-radius: var(--radius-sm);
  203. cursor: pointer;
  204. font-size: 14px;
  205. transition: background 0.2s, border-color 0.2s;
  206. line-height: 1;
  207. }
  208. .icon-btn:hover,
  209. .topbar-btn:hover {
  210. background: rgba(255, 255, 255, 0.1);
  211. border-color: rgba(255, 255, 255, 0.5);
  212. }
  213. .icon-btn {
  214. font-size: 18px;
  215. padding: 4px 10px;
  216. }
  217. /* ===== App Container ===== */
  218. #app {
  219. flex: 1;
  220. flex-direction: column;
  221. overflow: hidden;
  222. }
  223. /* ===== Main Content ===== */
  224. #main-content {
  225. display: flex;
  226. flex: 1;
  227. overflow: hidden;
  228. }
  229. /* ===== Sidebar ===== */
  230. #sidebar {
  231. width: var(--sidebar-width);
  232. background: var(--color-white);
  233. border-right: 1px solid var(--color-border);
  234. display: flex;
  235. flex-direction: column;
  236. flex-shrink: 0;
  237. transition: width 0.2s ease;
  238. overflow: hidden;
  239. }
  240. #sidebar.collapsed {
  241. width: 0;
  242. border-right: none;
  243. }
  244. #sidebar.resizing {
  245. transition: none;
  246. }
  247. /* ===== Sidebar Resize Handle ===== */
  248. #sidebar-resize-handle {
  249. width: 5px;
  250. flex-shrink: 0;
  251. cursor: col-resize;
  252. background: transparent;
  253. position: relative;
  254. z-index: 10;
  255. transition: background 0.15s;
  256. }
  257. #sidebar-resize-handle:hover,
  258. #sidebar-resize-handle.dragging {
  259. background: var(--color-blue);
  260. }
  261. #sidebar.collapsed + #sidebar-resize-handle {
  262. display: none;
  263. }
  264. /* ===== Sidebar Tabs ===== */
  265. #sidebar-tabs {
  266. display: flex;
  267. border-bottom: 1px solid var(--color-border);
  268. flex-shrink: 0;
  269. }
  270. .sidebar-tab {
  271. flex: 1;
  272. padding: 12px;
  273. border: none;
  274. background: none;
  275. cursor: pointer;
  276. font-size: 13px;
  277. font-weight: 500;
  278. color: var(--color-text-light);
  279. transition: color 0.2s;
  280. border-bottom: 2px solid transparent;
  281. margin-bottom: -1px;
  282. }
  283. .sidebar-tab:hover:not(.active) {
  284. color: var(--color-text);
  285. background: var(--color-bg);
  286. }
  287. .sidebar-tab.active {
  288. color: var(--color-blue);
  289. border-bottom-color: var(--color-blue);
  290. }
  291. /* ===== Sidebar Tab Content ===== */
  292. .sidebar-tab-content {
  293. display: flex;
  294. flex-direction: column;
  295. flex: 1;
  296. overflow: hidden;
  297. }
  298. #browser-tab {
  299. display: flex;
  300. flex-direction: column;
  301. flex: 1;
  302. overflow: hidden;
  303. }
  304. #stats-tab {
  305. flex: 1;
  306. overflow-y: auto;
  307. padding: 12px;
  308. }
  309. /* ===== Breadcrumb ===== */
  310. #breadcrumb {
  311. padding: 8px 12px;
  312. font-size: 13px;
  313. background: var(--color-bg);
  314. border-bottom: 1px solid var(--color-border);
  315. flex-shrink: 0;
  316. white-space: nowrap;
  317. overflow: hidden;
  318. text-overflow: ellipsis;
  319. }
  320. .bc-item {
  321. cursor: pointer;
  322. color: var(--color-blue);
  323. transition: text-decoration 0.1s;
  324. }
  325. .bc-item:hover {
  326. text-decoration: underline;
  327. }
  328. .bc-item:last-child {
  329. color: var(--color-text);
  330. cursor: default;
  331. font-weight: 500;
  332. }
  333. .bc-item:last-child:hover {
  334. text-decoration: none;
  335. }
  336. .bc-sep {
  337. color: var(--color-text-lighter);
  338. margin: 0 4px;
  339. }
  340. /* ===== Browser Actions ===== */
  341. #browser-actions {
  342. display: flex;
  343. gap: 8px;
  344. padding: 8px;
  345. border-bottom: 1px solid var(--color-border);
  346. flex-shrink: 0;
  347. }
  348. .action-btn {
  349. padding: 6px 12px;
  350. border: 1px solid var(--color-blue);
  351. color: var(--color-blue);
  352. background: var(--color-white);
  353. border-radius: var(--radius-sm);
  354. cursor: pointer;
  355. font-size: 13px;
  356. transition: background 0.2s, color 0.2s;
  357. font-weight: 500;
  358. }
  359. .action-btn:hover {
  360. background: var(--color-blue);
  361. color: var(--color-white);
  362. }
  363. /* ===== Browser List ===== */
  364. #browser-list {
  365. flex: 1;
  366. overflow-y: auto;
  367. }
  368. .tree-item.dir-item,
  369. .tree-item.track-item {
  370. display: flex;
  371. align-items: center;
  372. border-bottom: 1px solid var(--color-border-light);
  373. cursor: pointer;
  374. position: relative;
  375. gap: 6px;
  376. transition: background 0.15s;
  377. min-height: 36px;
  378. padding-top: 6px;
  379. padding-bottom: 6px;
  380. padding-right: 8px;
  381. }
  382. /* Legacy selectors kept for compatibility */
  383. .dir-item,
  384. .track-item {
  385. display: flex;
  386. align-items: center;
  387. padding: 8px 12px;
  388. border-bottom: 1px solid var(--color-border-light);
  389. cursor: pointer;
  390. position: relative;
  391. gap: 8px;
  392. transition: background 0.15s;
  393. min-height: 40px;
  394. }
  395. .dir-item:hover,
  396. .track-item:hover {
  397. background: var(--color-bg);
  398. }
  399. /* ===== Expand Button (tree triangle) ===== */
  400. .expand-btn {
  401. flex-shrink: 0;
  402. width: 16px;
  403. height: 16px;
  404. display: inline-flex;
  405. align-items: center;
  406. justify-content: center;
  407. font-size: 10px;
  408. color: var(--color-text-lighter);
  409. transition: transform 0.15s, color 0.15s;
  410. cursor: pointer;
  411. border-radius: 3px;
  412. user-select: none;
  413. }
  414. .expand-btn::before {
  415. content: '▶';
  416. }
  417. .expand-btn.expanded {
  418. transform: rotate(90deg);
  419. color: var(--color-blue);
  420. }
  421. .expand-btn:hover {
  422. color: var(--color-text);
  423. background: var(--color-border-light);
  424. }
  425. /* ===== Selected Dir ===== */
  426. .dir-item.selected {
  427. background: #e8f4fd;
  428. }
  429. .dir-item.selected .item-name {
  430. color: var(--color-blue);
  431. font-weight: 500;
  432. }
  433. .dir-item.selected:hover {
  434. background: #d6ecf8;
  435. }
  436. /* ===== Drag target (folder highlight when dragging track) ===== */
  437. .dir-item.drag-target {
  438. background: #d6ecf8;
  439. outline: 2px dashed var(--color-blue);
  440. outline-offset: -2px;
  441. }
  442. /* ===== Dragging track ===== */
  443. .track-item.dragging {
  444. opacity: 0.4;
  445. }
  446. /* ===== Local (guest) active track ===== */
  447. .track-item.local-active {
  448. background: #e8f4fd;
  449. border-left: 3px solid var(--color-blue);
  450. }
  451. /* ===== Tree loading placeholder ===== */
  452. .tree-loading {
  453. padding-top: 4px;
  454. padding-bottom: 4px;
  455. font-size: 12px;
  456. }
  457. .item-icon {
  458. flex-shrink: 0;
  459. width: 20px;
  460. text-align: center;
  461. font-size: 15px;
  462. }
  463. .item-name {
  464. flex: 1;
  465. font-size: 13px;
  466. overflow: hidden;
  467. text-overflow: ellipsis;
  468. white-space: nowrap;
  469. color: var(--color-text);
  470. }
  471. .item-meta {
  472. font-size: 12px;
  473. color: var(--color-text-light);
  474. flex-shrink: 0;
  475. }
  476. .item-date {
  477. font-size: 11px;
  478. color: var(--color-text-lighter);
  479. flex-shrink: 0;
  480. }
  481. .item-actions {
  482. display: none;
  483. gap: 4px;
  484. flex-shrink: 0;
  485. }
  486. .dir-item:hover .item-actions,
  487. .track-item:hover .item-actions {
  488. display: flex;
  489. }
  490. .item-btn {
  491. background: none;
  492. border: 1px solid #ddd;
  493. border-radius: var(--radius-sm);
  494. cursor: pointer;
  495. padding: 2px 6px;
  496. font-size: 13px;
  497. line-height: 1.4;
  498. transition: background 0.15s;
  499. color: var(--color-text-light);
  500. }
  501. .item-btn:hover {
  502. background: var(--color-border-light);
  503. border-color: #bbb;
  504. }
  505. .empty-list {
  506. color: var(--color-text-lighter);
  507. font-size: 13px;
  508. text-align: center;
  509. padding: 32px 16px;
  510. }
  511. .loading {
  512. color: var(--color-text-light);
  513. text-align: center;
  514. padding: 24px 16px;
  515. font-size: 13px;
  516. }
  517. /* ===== Map Container ===== */
  518. #map-container {
  519. flex: 1;
  520. position: relative;
  521. overflow: hidden;
  522. }
  523. #map {
  524. width: 100%;
  525. height: 100%;
  526. }
  527. .drag-over {
  528. outline: 4px dashed var(--color-blue);
  529. outline-offset: -4px;
  530. }
  531. /* ===== Track Info Panel ===== */
  532. #track-info-panel {
  533. position: absolute;
  534. bottom: 20px;
  535. right: 20px;
  536. background: var(--color-white);
  537. border-radius: var(--radius-lg);
  538. box-shadow: var(--shadow-md);
  539. padding: 16px;
  540. min-width: 280px;
  541. max-width: 400px;
  542. z-index: 1000;
  543. }
  544. /* ===== Elevation Chart ===== */
  545. #elevation-chart-container {
  546. position: relative;
  547. height: 120px;
  548. margin-top: 10px;
  549. border-top: 1px solid var(--color-border-light);
  550. padding-top: 8px;
  551. }
  552. #elevation-canvas {
  553. display: block;
  554. width: 100%;
  555. height: 100%;
  556. cursor: crosshair;
  557. }
  558. #elevation-tooltip {
  559. position: absolute;
  560. top: 0;
  561. left: 0;
  562. background: rgba(44, 62, 80, 0.92);
  563. color: #fff;
  564. padding: 6px 10px;
  565. border-radius: var(--radius-sm);
  566. font-size: 11px;
  567. line-height: 1.55;
  568. pointer-events: none;
  569. white-space: nowrap;
  570. opacity: 0;
  571. transition: opacity 0.12s;
  572. z-index: 10;
  573. }
  574. #elevation-tooltip.visible {
  575. opacity: 1;
  576. }
  577. /* ===== Map hover marker ===== */
  578. .hover-marker {
  579. background: #e74c3c;
  580. border: 3px solid white;
  581. border-radius: 50%;
  582. box-shadow: 0 2px 5px rgba(0, 0, 0, 0.35);
  583. }
  584. /* ===== Map hover tooltip ===== */
  585. .map-tooltip.leaflet-tooltip {
  586. background: rgba(44, 62, 80, 0.92) !important;
  587. color: #fff !important;
  588. border: none !important;
  589. border-radius: var(--radius-sm) !important;
  590. padding: 6px 10px !important;
  591. font-size: 11px !important;
  592. line-height: 1.55;
  593. box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25) !important;
  594. white-space: nowrap;
  595. }
  596. .map-tooltip.leaflet-tooltip::before {
  597. display: none !important;
  598. }
  599. #track-info-panel h3 {
  600. margin-bottom: 8px;
  601. font-size: 14px;
  602. font-weight: 600;
  603. color: var(--color-text);
  604. padding-right: 24px;
  605. }
  606. .info-row {
  607. display: flex;
  608. justify-content: space-between;
  609. font-size: 13px;
  610. padding: 4px 0;
  611. border-bottom: 1px solid var(--color-border-light);
  612. }
  613. .info-row:last-child {
  614. border-bottom: none;
  615. }
  616. .info-row label {
  617. color: var(--color-text-light);
  618. }
  619. .info-row span {
  620. font-weight: 500;
  621. color: var(--color-text);
  622. }
  623. #track-info-close {
  624. position: absolute;
  625. top: 8px;
  626. right: 8px;
  627. background: none;
  628. border: none;
  629. cursor: pointer;
  630. font-size: 20px;
  631. color: var(--color-text-lighter);
  632. line-height: 1;
  633. padding: 2px 4px;
  634. transition: color 0.15s;
  635. }
  636. #track-info-close:hover {
  637. color: var(--color-text);
  638. }
  639. /* ===== Modals ===== */
  640. .modal {
  641. position: fixed;
  642. inset: 0;
  643. background: rgba(0, 0, 0, 0.5);
  644. display: flex;
  645. align-items: center;
  646. justify-content: center;
  647. z-index: 9999;
  648. }
  649. .modal-content {
  650. background: var(--color-white);
  651. border-radius: var(--radius-lg);
  652. padding: 24px;
  653. min-width: 300px;
  654. max-width: 90vw;
  655. max-height: 90vh;
  656. overflow-y: auto;
  657. position: relative;
  658. box-shadow: var(--shadow-lg);
  659. }
  660. .modal-large {
  661. min-width: min(700px, 95vw);
  662. }
  663. .modal-header {
  664. display: flex;
  665. justify-content: space-between;
  666. align-items: center;
  667. margin-bottom: 16px;
  668. }
  669. .modal-header h2 {
  670. font-size: 18px;
  671. font-weight: 600;
  672. color: var(--color-text);
  673. }
  674. .modal-close {
  675. background: none;
  676. border: none;
  677. font-size: 24px;
  678. cursor: pointer;
  679. color: var(--color-text-lighter);
  680. line-height: 1;
  681. padding: 2px 6px;
  682. transition: color 0.15s;
  683. }
  684. .modal-close:hover {
  685. color: var(--color-text);
  686. }
  687. /* ===== Buttons ===== */
  688. .btn-primary {
  689. padding: 8px 16px;
  690. background: var(--color-blue);
  691. color: var(--color-white);
  692. border: none;
  693. border-radius: var(--radius-sm);
  694. cursor: pointer;
  695. font-size: 14px;
  696. font-weight: 500;
  697. transition: background 0.2s;
  698. }
  699. .btn-primary:hover {
  700. background: var(--color-blue-hover);
  701. }
  702. .btn-secondary {
  703. padding: 8px 16px;
  704. background: var(--color-gray);
  705. color: var(--color-white);
  706. border: none;
  707. border-radius: var(--radius-sm);
  708. cursor: pointer;
  709. font-size: 14px;
  710. font-weight: 500;
  711. transition: background 0.2s;
  712. }
  713. .btn-secondary:hover {
  714. background: var(--color-gray-hover);
  715. }
  716. .btn-danger {
  717. padding: 8px 16px;
  718. background: var(--color-red);
  719. color: var(--color-white);
  720. border: none;
  721. border-radius: var(--radius-sm);
  722. cursor: pointer;
  723. font-size: 14px;
  724. font-weight: 500;
  725. transition: background 0.2s;
  726. }
  727. .btn-danger:hover {
  728. background: var(--color-red-hover);
  729. }
  730. .btn-small {
  731. padding: 4px 10px;
  732. font-size: 12px;
  733. border-radius: var(--radius-sm);
  734. cursor: pointer;
  735. border: none;
  736. font-weight: 500;
  737. transition: background 0.2s;
  738. }
  739. .btn-small.btn-primary {
  740. background: var(--color-blue);
  741. color: var(--color-white);
  742. }
  743. .btn-small.btn-primary:hover {
  744. background: var(--color-blue-hover);
  745. }
  746. .btn-small.btn-secondary {
  747. background: var(--color-gray);
  748. color: var(--color-white);
  749. }
  750. .btn-small.btn-secondary:hover {
  751. background: var(--color-gray-hover);
  752. }
  753. .btn-small.btn-danger {
  754. background: var(--color-red);
  755. color: var(--color-white);
  756. }
  757. .btn-small.btn-danger:hover {
  758. background: var(--color-red-hover);
  759. }
  760. /* ===== Upload Toast ===== */
  761. #upload-toast {
  762. position: fixed;
  763. top: 16px;
  764. right: 16px;
  765. background: var(--color-dark);
  766. color: var(--color-white);
  767. padding: 12px 20px;
  768. border-radius: var(--radius-md);
  769. z-index: 99999;
  770. font-size: 14px;
  771. box-shadow: var(--shadow-md);
  772. max-width: 300px;
  773. word-break: break-word;
  774. }
  775. #upload-toast.success {
  776. background: var(--color-green);
  777. }
  778. #upload-toast.error {
  779. background: var(--color-red);
  780. }
  781. /* ===== Stats ===== */
  782. .stats-section {
  783. margin-bottom: 24px;
  784. }
  785. .stats-section h3 {
  786. font-size: 11px;
  787. text-transform: uppercase;
  788. color: var(--color-text-light);
  789. margin-bottom: 12px;
  790. letter-spacing: 0.5px;
  791. font-weight: 600;
  792. }
  793. .stat-row {
  794. display: flex;
  795. align-items: center;
  796. margin-bottom: 6px;
  797. gap: 8px;
  798. }
  799. .stat-row .stat-label {
  800. width: 80px;
  801. font-size: 12px;
  802. color: var(--color-text-light);
  803. flex-shrink: 0;
  804. }
  805. .stat-bar-wrap {
  806. flex: 1;
  807. height: 16px;
  808. background: var(--color-border-light);
  809. border-radius: 8px;
  810. overflow: hidden;
  811. }
  812. .stat-bar {
  813. height: 100%;
  814. background: var(--color-blue);
  815. border-radius: 8px;
  816. transition: width 0.3s ease;
  817. min-width: 2px;
  818. }
  819. .stat-row .stat-value {
  820. width: 80px;
  821. text-align: right;
  822. font-size: 12px;
  823. font-weight: 600;
  824. flex-shrink: 0;
  825. color: var(--color-text);
  826. }
  827. /* ===== Admin Table ===== */
  828. .admin-table {
  829. width: 100%;
  830. border-collapse: collapse;
  831. font-size: 13px;
  832. }
  833. .admin-table th {
  834. background: var(--color-bg);
  835. padding: 10px 12px;
  836. text-align: left;
  837. border-bottom: 2px solid #dee2e6;
  838. font-weight: 600;
  839. color: var(--color-text);
  840. white-space: nowrap;
  841. }
  842. .admin-table td {
  843. padding: 8px 12px;
  844. border-bottom: 1px solid var(--color-border-light);
  845. color: var(--color-text);
  846. vertical-align: middle;
  847. }
  848. .admin-table tr:hover td {
  849. background: var(--color-bg);
  850. }
  851. .admin-table td:last-child {
  852. white-space: nowrap;
  853. display: flex;
  854. gap: 4px;
  855. flex-wrap: wrap;
  856. }
  857. /* ===== Move Dialog ===== */
  858. #move-dir-list {
  859. max-height: 300px;
  860. overflow-y: auto;
  861. border: 1px solid var(--color-border);
  862. border-radius: var(--radius-md);
  863. padding: 4px;
  864. }
  865. .move-dir-item {
  866. padding: 8px 12px;
  867. cursor: pointer;
  868. border-radius: var(--radius-sm);
  869. margin-bottom: 2px;
  870. font-size: 13px;
  871. transition: background 0.15s;
  872. color: var(--color-text);
  873. }
  874. .move-dir-item:hover {
  875. background: var(--color-border-light);
  876. }
  877. .move-dir-item.selected {
  878. background: #e8f4fd;
  879. border: 1px solid var(--color-blue);
  880. color: var(--color-blue);
  881. font-weight: 500;
  882. }
  883. /* ===== Share URL Box ===== */
  884. .share-url-box {
  885. display: flex;
  886. gap: 8px;
  887. margin-top: 8px;
  888. }
  889. .share-url-box input {
  890. flex: 1;
  891. padding: 8px;
  892. border: 1px solid #ddd;
  893. border-radius: var(--radius-sm);
  894. font-size: 13px;
  895. margin-bottom: 0;
  896. color: var(--color-text-light);
  897. background: var(--color-bg);
  898. }
  899. .share-url-box button {
  900. flex-shrink: 0;
  901. padding: 8px 14px;
  902. background: var(--color-blue);
  903. color: var(--color-white);
  904. border: none;
  905. border-radius: var(--radius-sm);
  906. cursor: pointer;
  907. font-size: 13px;
  908. transition: background 0.2s;
  909. }
  910. .share-url-box button:hover {
  911. background: var(--color-blue-hover);
  912. }
  913. /* ===== Responsive ===== */
  914. @media (max-width: 768px) {
  915. #sidebar {
  916. position: absolute;
  917. left: 0;
  918. top: var(--topbar-height);
  919. bottom: 0;
  920. z-index: 500;
  921. box-shadow: var(--shadow-md);
  922. }
  923. #sidebar.collapsed {
  924. width: 0;
  925. }
  926. .modal-large {
  927. min-width: 95vw;
  928. }
  929. #track-info-panel {
  930. bottom: 10px;
  931. right: 10px;
  932. max-width: calc(100vw - 20px);
  933. }
  934. }
  935. @media (max-width: 480px) {
  936. .auth-container {
  937. min-width: unset;
  938. margin: 16px;
  939. padding: 28px 20px;
  940. }
  941. #topbar {
  942. padding: 0 10px;
  943. }
  944. #topbar-title {
  945. font-size: 14px;
  946. }
  947. .admin-table {
  948. font-size: 11px;
  949. }
  950. .admin-table th,
  951. .admin-table td {
  952. padding: 6px 8px;
  953. }
  954. }