style.css 19 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074
  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 Tabs ===== */
  245. #sidebar-tabs {
  246. display: flex;
  247. border-bottom: 1px solid var(--color-border);
  248. flex-shrink: 0;
  249. }
  250. .sidebar-tab {
  251. flex: 1;
  252. padding: 12px;
  253. border: none;
  254. background: none;
  255. cursor: pointer;
  256. font-size: 13px;
  257. font-weight: 500;
  258. color: var(--color-text-light);
  259. transition: color 0.2s;
  260. border-bottom: 2px solid transparent;
  261. margin-bottom: -1px;
  262. }
  263. .sidebar-tab:hover:not(.active) {
  264. color: var(--color-text);
  265. background: var(--color-bg);
  266. }
  267. .sidebar-tab.active {
  268. color: var(--color-blue);
  269. border-bottom-color: var(--color-blue);
  270. }
  271. /* ===== Sidebar Tab Content ===== */
  272. .sidebar-tab-content {
  273. display: flex;
  274. flex-direction: column;
  275. flex: 1;
  276. overflow: hidden;
  277. }
  278. #browser-tab {
  279. display: flex;
  280. flex-direction: column;
  281. flex: 1;
  282. overflow: hidden;
  283. }
  284. #stats-tab {
  285. flex: 1;
  286. overflow-y: auto;
  287. padding: 12px;
  288. }
  289. /* ===== Breadcrumb ===== */
  290. #breadcrumb {
  291. padding: 8px 12px;
  292. font-size: 13px;
  293. background: var(--color-bg);
  294. border-bottom: 1px solid var(--color-border);
  295. flex-shrink: 0;
  296. white-space: nowrap;
  297. overflow: hidden;
  298. text-overflow: ellipsis;
  299. }
  300. .bc-item {
  301. cursor: pointer;
  302. color: var(--color-blue);
  303. transition: text-decoration 0.1s;
  304. }
  305. .bc-item:hover {
  306. text-decoration: underline;
  307. }
  308. .bc-item:last-child {
  309. color: var(--color-text);
  310. cursor: default;
  311. font-weight: 500;
  312. }
  313. .bc-item:last-child:hover {
  314. text-decoration: none;
  315. }
  316. .bc-sep {
  317. color: var(--color-text-lighter);
  318. margin: 0 4px;
  319. }
  320. /* ===== Browser Actions ===== */
  321. #browser-actions {
  322. display: flex;
  323. gap: 8px;
  324. padding: 8px;
  325. border-bottom: 1px solid var(--color-border);
  326. flex-shrink: 0;
  327. }
  328. .action-btn {
  329. padding: 6px 12px;
  330. border: 1px solid var(--color-blue);
  331. color: var(--color-blue);
  332. background: var(--color-white);
  333. border-radius: var(--radius-sm);
  334. cursor: pointer;
  335. font-size: 13px;
  336. transition: background 0.2s, color 0.2s;
  337. font-weight: 500;
  338. }
  339. .action-btn:hover {
  340. background: var(--color-blue);
  341. color: var(--color-white);
  342. }
  343. /* ===== Browser List ===== */
  344. #browser-list {
  345. flex: 1;
  346. overflow-y: auto;
  347. }
  348. .tree-item.dir-item,
  349. .tree-item.track-item {
  350. display: flex;
  351. align-items: center;
  352. border-bottom: 1px solid var(--color-border-light);
  353. cursor: pointer;
  354. position: relative;
  355. gap: 6px;
  356. transition: background 0.15s;
  357. min-height: 36px;
  358. padding-top: 6px;
  359. padding-bottom: 6px;
  360. padding-right: 8px;
  361. }
  362. /* Legacy selectors kept for compatibility */
  363. .dir-item,
  364. .track-item {
  365. display: flex;
  366. align-items: center;
  367. padding: 8px 12px;
  368. border-bottom: 1px solid var(--color-border-light);
  369. cursor: pointer;
  370. position: relative;
  371. gap: 8px;
  372. transition: background 0.15s;
  373. min-height: 40px;
  374. }
  375. .dir-item:hover,
  376. .track-item:hover {
  377. background: var(--color-bg);
  378. }
  379. /* ===== Expand Button (tree triangle) ===== */
  380. .expand-btn {
  381. flex-shrink: 0;
  382. width: 16px;
  383. height: 16px;
  384. display: inline-flex;
  385. align-items: center;
  386. justify-content: center;
  387. font-size: 10px;
  388. color: var(--color-text-lighter);
  389. transition: transform 0.15s, color 0.15s;
  390. cursor: pointer;
  391. border-radius: 3px;
  392. user-select: none;
  393. }
  394. .expand-btn::before {
  395. content: '▶';
  396. }
  397. .expand-btn.expanded {
  398. transform: rotate(90deg);
  399. color: var(--color-blue);
  400. }
  401. .expand-btn:hover {
  402. color: var(--color-text);
  403. background: var(--color-border-light);
  404. }
  405. /* ===== Selected Dir ===== */
  406. .dir-item.selected {
  407. background: #e8f4fd;
  408. }
  409. .dir-item.selected .item-name {
  410. color: var(--color-blue);
  411. font-weight: 500;
  412. }
  413. .dir-item.selected:hover {
  414. background: #d6ecf8;
  415. }
  416. /* ===== Drag target (folder highlight when dragging track) ===== */
  417. .dir-item.drag-target {
  418. background: #d6ecf8;
  419. outline: 2px dashed var(--color-blue);
  420. outline-offset: -2px;
  421. }
  422. /* ===== Dragging track ===== */
  423. .track-item.dragging {
  424. opacity: 0.4;
  425. }
  426. /* ===== Local (guest) active track ===== */
  427. .track-item.local-active {
  428. background: #e8f4fd;
  429. border-left: 3px solid var(--color-blue);
  430. }
  431. /* ===== Tree loading placeholder ===== */
  432. .tree-loading {
  433. padding-top: 4px;
  434. padding-bottom: 4px;
  435. font-size: 12px;
  436. }
  437. .item-icon {
  438. flex-shrink: 0;
  439. width: 20px;
  440. text-align: center;
  441. font-size: 15px;
  442. }
  443. .item-name {
  444. flex: 1;
  445. font-size: 13px;
  446. overflow: hidden;
  447. text-overflow: ellipsis;
  448. white-space: nowrap;
  449. color: var(--color-text);
  450. }
  451. .item-meta {
  452. font-size: 12px;
  453. color: var(--color-text-light);
  454. flex-shrink: 0;
  455. }
  456. .item-date {
  457. font-size: 11px;
  458. color: var(--color-text-lighter);
  459. flex-shrink: 0;
  460. }
  461. .item-actions {
  462. display: none;
  463. gap: 4px;
  464. flex-shrink: 0;
  465. }
  466. .dir-item:hover .item-actions,
  467. .track-item:hover .item-actions {
  468. display: flex;
  469. }
  470. .item-btn {
  471. background: none;
  472. border: 1px solid #ddd;
  473. border-radius: var(--radius-sm);
  474. cursor: pointer;
  475. padding: 2px 6px;
  476. font-size: 13px;
  477. line-height: 1.4;
  478. transition: background 0.15s;
  479. color: var(--color-text-light);
  480. }
  481. .item-btn:hover {
  482. background: var(--color-border-light);
  483. border-color: #bbb;
  484. }
  485. .empty-list {
  486. color: var(--color-text-lighter);
  487. font-size: 13px;
  488. text-align: center;
  489. padding: 32px 16px;
  490. }
  491. .loading {
  492. color: var(--color-text-light);
  493. text-align: center;
  494. padding: 24px 16px;
  495. font-size: 13px;
  496. }
  497. /* ===== Map Container ===== */
  498. #map-container {
  499. flex: 1;
  500. position: relative;
  501. overflow: hidden;
  502. }
  503. #map {
  504. width: 100%;
  505. height: 100%;
  506. }
  507. .drag-over {
  508. outline: 4px dashed var(--color-blue);
  509. outline-offset: -4px;
  510. }
  511. /* ===== Track Info Panel ===== */
  512. #track-info-panel {
  513. position: absolute;
  514. bottom: 20px;
  515. right: 20px;
  516. background: var(--color-white);
  517. border-radius: var(--radius-lg);
  518. box-shadow: var(--shadow-md);
  519. padding: 16px;
  520. min-width: 280px;
  521. max-width: 400px;
  522. z-index: 1000;
  523. }
  524. /* ===== Elevation Chart ===== */
  525. #elevation-chart-container {
  526. position: relative;
  527. height: 120px;
  528. margin-top: 10px;
  529. border-top: 1px solid var(--color-border-light);
  530. padding-top: 8px;
  531. }
  532. #elevation-canvas {
  533. display: block;
  534. width: 100%;
  535. height: 100%;
  536. cursor: crosshair;
  537. }
  538. #elevation-tooltip {
  539. position: absolute;
  540. top: 0;
  541. left: 0;
  542. background: rgba(44, 62, 80, 0.92);
  543. color: #fff;
  544. padding: 6px 10px;
  545. border-radius: var(--radius-sm);
  546. font-size: 11px;
  547. line-height: 1.55;
  548. pointer-events: none;
  549. white-space: nowrap;
  550. opacity: 0;
  551. transition: opacity 0.12s;
  552. z-index: 10;
  553. }
  554. #elevation-tooltip.visible {
  555. opacity: 1;
  556. }
  557. /* ===== Map hover marker ===== */
  558. .hover-marker {
  559. background: #e74c3c;
  560. border: 3px solid white;
  561. border-radius: 50%;
  562. box-shadow: 0 2px 5px rgba(0, 0, 0, 0.35);
  563. }
  564. /* ===== Map hover tooltip ===== */
  565. .map-tooltip.leaflet-tooltip {
  566. background: rgba(44, 62, 80, 0.92) !important;
  567. color: #fff !important;
  568. border: none !important;
  569. border-radius: var(--radius-sm) !important;
  570. padding: 6px 10px !important;
  571. font-size: 11px !important;
  572. line-height: 1.55;
  573. box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25) !important;
  574. white-space: nowrap;
  575. }
  576. .map-tooltip.leaflet-tooltip::before {
  577. display: none !important;
  578. }
  579. #track-info-panel h3 {
  580. margin-bottom: 8px;
  581. font-size: 14px;
  582. font-weight: 600;
  583. color: var(--color-text);
  584. padding-right: 24px;
  585. }
  586. .info-row {
  587. display: flex;
  588. justify-content: space-between;
  589. font-size: 13px;
  590. padding: 4px 0;
  591. border-bottom: 1px solid var(--color-border-light);
  592. }
  593. .info-row:last-child {
  594. border-bottom: none;
  595. }
  596. .info-row label {
  597. color: var(--color-text-light);
  598. }
  599. .info-row span {
  600. font-weight: 500;
  601. color: var(--color-text);
  602. }
  603. #track-info-close {
  604. position: absolute;
  605. top: 8px;
  606. right: 8px;
  607. background: none;
  608. border: none;
  609. cursor: pointer;
  610. font-size: 20px;
  611. color: var(--color-text-lighter);
  612. line-height: 1;
  613. padding: 2px 4px;
  614. transition: color 0.15s;
  615. }
  616. #track-info-close:hover {
  617. color: var(--color-text);
  618. }
  619. /* ===== Modals ===== */
  620. .modal {
  621. position: fixed;
  622. inset: 0;
  623. background: rgba(0, 0, 0, 0.5);
  624. display: flex;
  625. align-items: center;
  626. justify-content: center;
  627. z-index: 9999;
  628. }
  629. .modal-content {
  630. background: var(--color-white);
  631. border-radius: var(--radius-lg);
  632. padding: 24px;
  633. min-width: 300px;
  634. max-width: 90vw;
  635. max-height: 90vh;
  636. overflow-y: auto;
  637. position: relative;
  638. box-shadow: var(--shadow-lg);
  639. }
  640. .modal-large {
  641. min-width: min(700px, 95vw);
  642. }
  643. .modal-header {
  644. display: flex;
  645. justify-content: space-between;
  646. align-items: center;
  647. margin-bottom: 16px;
  648. }
  649. .modal-header h2 {
  650. font-size: 18px;
  651. font-weight: 600;
  652. color: var(--color-text);
  653. }
  654. .modal-close {
  655. background: none;
  656. border: none;
  657. font-size: 24px;
  658. cursor: pointer;
  659. color: var(--color-text-lighter);
  660. line-height: 1;
  661. padding: 2px 6px;
  662. transition: color 0.15s;
  663. }
  664. .modal-close:hover {
  665. color: var(--color-text);
  666. }
  667. /* ===== Buttons ===== */
  668. .btn-primary {
  669. padding: 8px 16px;
  670. background: var(--color-blue);
  671. color: var(--color-white);
  672. border: none;
  673. border-radius: var(--radius-sm);
  674. cursor: pointer;
  675. font-size: 14px;
  676. font-weight: 500;
  677. transition: background 0.2s;
  678. }
  679. .btn-primary:hover {
  680. background: var(--color-blue-hover);
  681. }
  682. .btn-secondary {
  683. padding: 8px 16px;
  684. background: var(--color-gray);
  685. color: var(--color-white);
  686. border: none;
  687. border-radius: var(--radius-sm);
  688. cursor: pointer;
  689. font-size: 14px;
  690. font-weight: 500;
  691. transition: background 0.2s;
  692. }
  693. .btn-secondary:hover {
  694. background: var(--color-gray-hover);
  695. }
  696. .btn-danger {
  697. padding: 8px 16px;
  698. background: var(--color-red);
  699. color: var(--color-white);
  700. border: none;
  701. border-radius: var(--radius-sm);
  702. cursor: pointer;
  703. font-size: 14px;
  704. font-weight: 500;
  705. transition: background 0.2s;
  706. }
  707. .btn-danger:hover {
  708. background: var(--color-red-hover);
  709. }
  710. .btn-small {
  711. padding: 4px 10px;
  712. font-size: 12px;
  713. border-radius: var(--radius-sm);
  714. cursor: pointer;
  715. border: none;
  716. font-weight: 500;
  717. transition: background 0.2s;
  718. }
  719. .btn-small.btn-primary {
  720. background: var(--color-blue);
  721. color: var(--color-white);
  722. }
  723. .btn-small.btn-primary:hover {
  724. background: var(--color-blue-hover);
  725. }
  726. .btn-small.btn-secondary {
  727. background: var(--color-gray);
  728. color: var(--color-white);
  729. }
  730. .btn-small.btn-secondary:hover {
  731. background: var(--color-gray-hover);
  732. }
  733. .btn-small.btn-danger {
  734. background: var(--color-red);
  735. color: var(--color-white);
  736. }
  737. .btn-small.btn-danger:hover {
  738. background: var(--color-red-hover);
  739. }
  740. /* ===== Upload Toast ===== */
  741. #upload-toast {
  742. position: fixed;
  743. top: 16px;
  744. right: 16px;
  745. background: var(--color-dark);
  746. color: var(--color-white);
  747. padding: 12px 20px;
  748. border-radius: var(--radius-md);
  749. z-index: 99999;
  750. font-size: 14px;
  751. box-shadow: var(--shadow-md);
  752. max-width: 300px;
  753. word-break: break-word;
  754. }
  755. #upload-toast.success {
  756. background: var(--color-green);
  757. }
  758. #upload-toast.error {
  759. background: var(--color-red);
  760. }
  761. /* ===== Stats ===== */
  762. .stats-section {
  763. margin-bottom: 24px;
  764. }
  765. .stats-section h3 {
  766. font-size: 11px;
  767. text-transform: uppercase;
  768. color: var(--color-text-light);
  769. margin-bottom: 12px;
  770. letter-spacing: 0.5px;
  771. font-weight: 600;
  772. }
  773. .stat-row {
  774. display: flex;
  775. align-items: center;
  776. margin-bottom: 6px;
  777. gap: 8px;
  778. }
  779. .stat-row .stat-label {
  780. width: 80px;
  781. font-size: 12px;
  782. color: var(--color-text-light);
  783. flex-shrink: 0;
  784. }
  785. .stat-bar-wrap {
  786. flex: 1;
  787. height: 16px;
  788. background: var(--color-border-light);
  789. border-radius: 8px;
  790. overflow: hidden;
  791. }
  792. .stat-bar {
  793. height: 100%;
  794. background: var(--color-blue);
  795. border-radius: 8px;
  796. transition: width 0.3s ease;
  797. min-width: 2px;
  798. }
  799. .stat-row .stat-value {
  800. width: 80px;
  801. text-align: right;
  802. font-size: 12px;
  803. font-weight: 600;
  804. flex-shrink: 0;
  805. color: var(--color-text);
  806. }
  807. /* ===== Admin Table ===== */
  808. .admin-table {
  809. width: 100%;
  810. border-collapse: collapse;
  811. font-size: 13px;
  812. }
  813. .admin-table th {
  814. background: var(--color-bg);
  815. padding: 10px 12px;
  816. text-align: left;
  817. border-bottom: 2px solid #dee2e6;
  818. font-weight: 600;
  819. color: var(--color-text);
  820. white-space: nowrap;
  821. }
  822. .admin-table td {
  823. padding: 8px 12px;
  824. border-bottom: 1px solid var(--color-border-light);
  825. color: var(--color-text);
  826. vertical-align: middle;
  827. }
  828. .admin-table tr:hover td {
  829. background: var(--color-bg);
  830. }
  831. .admin-table td:last-child {
  832. white-space: nowrap;
  833. display: flex;
  834. gap: 4px;
  835. flex-wrap: wrap;
  836. }
  837. /* ===== Move Dialog ===== */
  838. #move-dir-list {
  839. max-height: 300px;
  840. overflow-y: auto;
  841. border: 1px solid var(--color-border);
  842. border-radius: var(--radius-md);
  843. padding: 4px;
  844. }
  845. .move-dir-item {
  846. padding: 8px 12px;
  847. cursor: pointer;
  848. border-radius: var(--radius-sm);
  849. margin-bottom: 2px;
  850. font-size: 13px;
  851. transition: background 0.15s;
  852. color: var(--color-text);
  853. }
  854. .move-dir-item:hover {
  855. background: var(--color-border-light);
  856. }
  857. .move-dir-item.selected {
  858. background: #e8f4fd;
  859. border: 1px solid var(--color-blue);
  860. color: var(--color-blue);
  861. font-weight: 500;
  862. }
  863. /* ===== Share URL Box ===== */
  864. .share-url-box {
  865. display: flex;
  866. gap: 8px;
  867. margin-top: 8px;
  868. }
  869. .share-url-box input {
  870. flex: 1;
  871. padding: 8px;
  872. border: 1px solid #ddd;
  873. border-radius: var(--radius-sm);
  874. font-size: 13px;
  875. margin-bottom: 0;
  876. color: var(--color-text-light);
  877. background: var(--color-bg);
  878. }
  879. .share-url-box button {
  880. flex-shrink: 0;
  881. padding: 8px 14px;
  882. background: var(--color-blue);
  883. color: var(--color-white);
  884. border: none;
  885. border-radius: var(--radius-sm);
  886. cursor: pointer;
  887. font-size: 13px;
  888. transition: background 0.2s;
  889. }
  890. .share-url-box button:hover {
  891. background: var(--color-blue-hover);
  892. }
  893. /* ===== Responsive ===== */
  894. @media (max-width: 768px) {
  895. #sidebar {
  896. position: absolute;
  897. left: 0;
  898. top: var(--topbar-height);
  899. bottom: 0;
  900. z-index: 500;
  901. box-shadow: var(--shadow-md);
  902. }
  903. #sidebar.collapsed {
  904. width: 0;
  905. }
  906. .modal-large {
  907. min-width: 95vw;
  908. }
  909. #track-info-panel {
  910. bottom: 10px;
  911. right: 10px;
  912. max-width: calc(100vw - 20px);
  913. }
  914. }
  915. @media (max-width: 480px) {
  916. .auth-container {
  917. min-width: unset;
  918. margin: 16px;
  919. padding: 28px 20px;
  920. }
  921. #topbar {
  922. padding: 0 10px;
  923. }
  924. #topbar-title {
  925. font-size: 14px;
  926. }
  927. .admin-table {
  928. font-size: 11px;
  929. }
  930. .admin-table th,
  931. .admin-table td {
  932. padding: 6px 8px;
  933. }
  934. }