sidepanel.css 14 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549
  1. /* ============================================================
  2. MultiPage Automation — Side Panel
  3. Design: Swiss Modernism + Developer Tool
  4. Font: Inter (UI) + JetBrains Mono (code)
  5. Themes: Light (default) + Dark (toggle)
  6. ============================================================ */
  7. /* ---- Light Theme (default) ---- */
  8. :root {
  9. --bg-base: #ffffff;
  10. --bg-surface: #f7f8fa;
  11. --bg-elevated: #eef0f4;
  12. --bg-hover: #e4e7ec;
  13. --bg-active: #dce0e8;
  14. --border: #d8dce3;
  15. --border-subtle: #e8ecf1;
  16. --text-primary: #1a1d24;
  17. --text-secondary: #5c6370;
  18. --text-muted: #9ca3af;
  19. --blue: #2563eb;
  20. --blue-soft: rgba(37, 99, 235, 0.08);
  21. --blue-glow: rgba(37, 99, 235, 0.12);
  22. --green: #16a34a;
  23. --green-soft: rgba(22, 163, 74, 0.08);
  24. --orange: #ea580c;
  25. --orange-soft: rgba(234, 88, 12, 0.08);
  26. --red: #dc2626;
  27. --red-soft: rgba(220, 38, 38, 0.08);
  28. --cyan: #0891b2;
  29. --purple: #7c3aed;
  30. --shadow-sm: 0 1px 2px rgba(0,0,0,0.04);
  31. --shadow-md: 0 2px 6px rgba(0,0,0,0.06);
  32. --radius-sm: 6px;
  33. --radius-md: 8px;
  34. --transition: 150ms ease;
  35. }
  36. /* ---- Dark Theme ---- */
  37. [data-theme="dark"] {
  38. --bg-base: #0f1117;
  39. --bg-surface: #181a21;
  40. --bg-elevated: #21242d;
  41. --bg-hover: #2a2e38;
  42. --bg-active: #323844;
  43. --border: #2a2e38;
  44. --border-subtle: #21242d;
  45. --text-primary: #e4e6eb;
  46. --text-secondary: #8b919e;
  47. --text-muted: #565c6a;
  48. --blue: #3b82f6;
  49. --blue-soft: rgba(59, 130, 246, 0.12);
  50. --blue-glow: rgba(59, 130, 246, 0.18);
  51. --green: #22c55e;
  52. --green-soft: rgba(34, 197, 94, 0.12);
  53. --orange: #f97316;
  54. --orange-soft: rgba(249, 115, 22, 0.12);
  55. --red: #ef4444;
  56. --red-soft: rgba(239, 68, 68, 0.12);
  57. --cyan: #06b6d4;
  58. --purple: #a78bfa;
  59. --shadow-sm: 0 1px 2px rgba(0,0,0,0.2);
  60. --shadow-md: 0 2px 8px rgba(0,0,0,0.3);
  61. }
  62. * { margin: 0; padding: 0; box-sizing: border-box; }
  63. body {
  64. font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  65. font-size: 13px;
  66. color: var(--text-primary);
  67. background: var(--bg-base);
  68. padding: 12px;
  69. width: 100%;
  70. min-height: 100vh;
  71. -webkit-font-smoothing: antialiased;
  72. transition: background var(--transition), color var(--transition);
  73. }
  74. /* ============================================================
  75. Header
  76. ============================================================ */
  77. header {
  78. display: flex;
  79. justify-content: space-between;
  80. align-items: center;
  81. margin-bottom: 14px;
  82. padding-bottom: 12px;
  83. border-bottom: 1px solid var(--border-subtle);
  84. }
  85. .header-left {
  86. display: flex;
  87. align-items: center;
  88. gap: 8px;
  89. }
  90. .header-left svg { color: var(--blue); }
  91. .header-left h1 {
  92. font-size: 14px;
  93. font-weight: 700;
  94. letter-spacing: -0.02em;
  95. color: var(--text-primary);
  96. }
  97. .header-btns {
  98. display: flex;
  99. align-items: center;
  100. gap: 4px;
  101. }
  102. /* ============================================================
  103. Theme Toggle
  104. ============================================================ */
  105. .theme-toggle {
  106. width: 30px;
  107. height: 30px;
  108. border: none;
  109. background: transparent;
  110. color: var(--text-muted);
  111. border-radius: var(--radius-sm);
  112. cursor: pointer;
  113. display: flex;
  114. align-items: center;
  115. justify-content: center;
  116. transition: all var(--transition);
  117. }
  118. .theme-toggle:hover { background: var(--bg-hover); color: var(--text-primary); }
  119. .theme-toggle .icon-moon { display: block; }
  120. .theme-toggle .icon-sun { display: none; }
  121. [data-theme="dark"] .theme-toggle .icon-moon { display: none; }
  122. [data-theme="dark"] .theme-toggle .icon-sun { display: block; }
  123. /* ============================================================
  124. Buttons
  125. ============================================================ */
  126. .btn {
  127. display: inline-flex;
  128. align-items: center;
  129. gap: 5px;
  130. padding: 6px 12px;
  131. font-family: inherit;
  132. font-size: 12px;
  133. font-weight: 600;
  134. border: 1px solid transparent;
  135. border-radius: var(--radius-sm);
  136. cursor: pointer;
  137. transition: all var(--transition);
  138. white-space: nowrap;
  139. }
  140. .btn-primary {
  141. background: var(--blue);
  142. color: #fff;
  143. }
  144. .btn-primary:hover { opacity: 0.9; box-shadow: 0 2px 8px var(--blue-glow); }
  145. .btn-success {
  146. background: var(--green);
  147. color: #fff;
  148. }
  149. .btn-success:hover { opacity: 0.9; box-shadow: 0 2px 8px var(--green-soft); }
  150. .run-group {
  151. display: flex;
  152. align-items: center;
  153. gap: 4px;
  154. }
  155. .run-count-input {
  156. width: 38px;
  157. padding: 5px 4px;
  158. text-align: center;
  159. background: var(--bg-base);
  160. border: 1px solid var(--border);
  161. border-radius: var(--radius-sm);
  162. color: var(--text-primary);
  163. font-family: 'JetBrains Mono', monospace;
  164. font-size: 12px;
  165. font-weight: 600;
  166. outline: none;
  167. }
  168. .run-count-input:focus { border-color: var(--blue); }
  169. .run-count-input::-webkit-inner-spin-button { opacity: 0.5; }
  170. .btn-success:disabled { background: var(--bg-elevated); color: var(--text-muted); cursor: not-allowed; box-shadow: none; }
  171. .btn-ghost {
  172. background: transparent;
  173. color: var(--text-secondary);
  174. padding: 6px;
  175. border-radius: var(--radius-sm);
  176. }
  177. .btn-ghost:hover { background: var(--bg-hover); color: var(--text-primary); }
  178. .btn-outline {
  179. background: transparent;
  180. border: 1px solid var(--border);
  181. color: var(--text-secondary);
  182. }
  183. .btn-outline:hover { border-color: var(--blue); color: var(--blue); background: var(--blue-soft); }
  184. .btn-sm { padding: 4px 10px; font-size: 11px; }
  185. .btn-xs { padding: 3px 8px; font-size: 10px; }
  186. /* ============================================================
  187. Data Card
  188. ============================================================ */
  189. #data-section { margin-bottom: 14px; }
  190. .data-card {
  191. background: var(--bg-surface);
  192. border: 1px solid var(--border);
  193. border-radius: var(--radius-md);
  194. padding: 10px 12px;
  195. display: flex;
  196. flex-direction: column;
  197. gap: 7px;
  198. box-shadow: var(--shadow-sm);
  199. }
  200. .data-row {
  201. display: flex;
  202. align-items: center;
  203. gap: 8px;
  204. }
  205. .data-label {
  206. width: 54px;
  207. font-size: 10px;
  208. font-weight: 700;
  209. color: var(--text-muted);
  210. text-transform: uppercase;
  211. letter-spacing: 0.06em;
  212. flex-shrink: 0;
  213. }
  214. .data-value {
  215. font-size: 11px;
  216. color: var(--text-muted);
  217. min-width: 0;
  218. }
  219. .data-value.has-value { color: var(--text-primary); }
  220. .mono {
  221. font-family: 'JetBrains Mono', 'Consolas', monospace;
  222. font-size: 10.5px;
  223. }
  224. .truncate {
  225. overflow: hidden;
  226. text-overflow: ellipsis;
  227. white-space: nowrap;
  228. }
  229. .data-input {
  230. flex: 1;
  231. padding: 5px 8px;
  232. background: var(--bg-base);
  233. border: 1px solid var(--border);
  234. border-radius: var(--radius-sm);
  235. color: var(--text-primary);
  236. font-family: 'JetBrains Mono', monospace;
  237. font-size: 11px;
  238. outline: none;
  239. transition: border-color var(--transition), box-shadow var(--transition);
  240. min-width: 0;
  241. }
  242. .data-input::placeholder { color: var(--text-muted); }
  243. .data-input:focus { border-color: var(--blue); box-shadow: 0 0 0 3px var(--blue-soft); }
  244. .data-select {
  245. flex: 1;
  246. padding: 5px 8px;
  247. background: var(--bg-base);
  248. border: 1px solid var(--border);
  249. border-radius: var(--radius-sm);
  250. color: var(--text-primary);
  251. font-family: inherit;
  252. font-size: 11px;
  253. outline: none;
  254. cursor: pointer;
  255. transition: border-color var(--transition);
  256. min-width: 0;
  257. }
  258. .data-select:focus { border-color: var(--blue); box-shadow: 0 0 0 3px var(--blue-soft); }
  259. [data-theme="dark"] .data-select { color-scheme: dark; }
  260. /* Status Bar */
  261. .status-bar {
  262. display: flex;
  263. align-items: center;
  264. gap: 8px;
  265. margin-top: 8px;
  266. padding: 6px 10px;
  267. background: var(--bg-surface);
  268. border: 1px solid var(--border);
  269. border-radius: var(--radius-sm);
  270. font-size: 11px;
  271. font-weight: 500;
  272. color: var(--text-secondary);
  273. box-shadow: var(--shadow-sm);
  274. }
  275. .status-dot {
  276. width: 7px;
  277. height: 7px;
  278. border-radius: 50%;
  279. background: var(--text-muted);
  280. flex-shrink: 0;
  281. transition: background var(--transition);
  282. }
  283. .status-bar.running .status-dot {
  284. background: var(--orange);
  285. animation: pulse 1.5s ease-in-out infinite;
  286. }
  287. .status-bar.running { color: var(--orange); }
  288. .status-bar.completed .status-dot { background: var(--green); }
  289. .status-bar.completed { color: var(--green); }
  290. .status-bar.failed .status-dot { background: var(--red); }
  291. .status-bar.failed { color: var(--red); }
  292. @keyframes pulse {
  293. 0%, 100% { opacity: 1; transform: scale(1); }
  294. 50% { opacity: 0.4; transform: scale(0.85); }
  295. }
  296. /* Auto Continue Bar */
  297. .auto-continue-bar {
  298. margin-top: 8px;
  299. padding: 8px 10px;
  300. background: var(--orange-soft);
  301. border: 1px solid rgba(234, 88, 12, 0.2);
  302. border-radius: var(--radius-sm);
  303. display: flex;
  304. align-items: center;
  305. gap: 8px;
  306. }
  307. .auto-continue-bar svg { color: var(--orange); flex-shrink: 0; }
  308. .auto-hint { font-size: 11px; color: var(--orange); flex: 1; font-weight: 500; }
  309. /* ============================================================
  310. Steps Section
  311. ============================================================ */
  312. #steps-section { margin-bottom: 14px; }
  313. .steps-header {
  314. display: flex;
  315. justify-content: space-between;
  316. align-items: center;
  317. margin-bottom: 8px;
  318. }
  319. .section-label {
  320. font-size: 10px;
  321. font-weight: 700;
  322. color: var(--text-muted);
  323. text-transform: uppercase;
  324. letter-spacing: 0.08em;
  325. }
  326. .steps-progress {
  327. font-family: 'JetBrains Mono', monospace;
  328. font-size: 10px;
  329. font-weight: 600;
  330. color: var(--text-muted);
  331. background: var(--bg-surface);
  332. padding: 2px 8px;
  333. border-radius: 10px;
  334. border: 1px solid var(--border);
  335. }
  336. .steps-list {
  337. display: flex;
  338. flex-direction: column;
  339. gap: 3px;
  340. }
  341. .step-row {
  342. display: flex;
  343. align-items: center;
  344. gap: 8px;
  345. padding: 1px 0;
  346. transition: opacity var(--transition);
  347. }
  348. /* Step Number Indicator */
  349. .step-indicator {
  350. width: 22px;
  351. height: 22px;
  352. border-radius: 50%;
  353. background: var(--bg-surface);
  354. border: 1.5px solid var(--border);
  355. display: flex;
  356. align-items: center;
  357. justify-content: center;
  358. flex-shrink: 0;
  359. transition: all var(--transition);
  360. }
  361. .step-num {
  362. font-size: 10px;
  363. font-weight: 700;
  364. color: var(--text-muted);
  365. transition: color var(--transition);
  366. }
  367. .step-row.running .step-indicator { border-color: var(--orange); background: var(--orange-soft); }
  368. .step-row.running .step-num { color: var(--orange); }
  369. .step-row.running .step-indicator { animation: pulse 1.5s ease-in-out infinite; }
  370. .step-row.completed .step-indicator { border-color: var(--green); background: var(--green-soft); }
  371. .step-row.completed .step-num { color: var(--green); }
  372. .step-row.failed .step-indicator { border-color: var(--red); background: var(--red-soft); }
  373. .step-row.failed .step-num { color: var(--red); }
  374. /* Step Button */
  375. .step-btn {
  376. flex: 1;
  377. padding: 6px 10px;
  378. font-family: inherit;
  379. font-size: 12px;
  380. font-weight: 500;
  381. color: var(--text-primary);
  382. background: var(--bg-surface);
  383. border: 1px solid var(--border);
  384. border-radius: var(--radius-sm);
  385. cursor: pointer;
  386. text-align: left;
  387. transition: all var(--transition);
  388. box-shadow: var(--shadow-sm);
  389. }
  390. .step-btn:hover:not(:disabled) { background: var(--bg-hover); border-color: var(--blue); }
  391. .step-btn:disabled { color: var(--text-muted); background: var(--bg-base); border-color: var(--border-subtle); cursor: not-allowed; opacity: 0.45; box-shadow: none; }
  392. .step-row.running .step-btn { border-color: var(--orange); color: var(--orange); }
  393. .step-row.completed .step-btn { border-color: var(--border-subtle); color: var(--text-secondary); opacity: 0.7; }
  394. .step-row.failed .step-btn { border-color: var(--red); color: var(--red); }
  395. .step-status {
  396. width: 18px;
  397. text-align: center;
  398. font-size: 12px;
  399. font-weight: 700;
  400. flex-shrink: 0;
  401. }
  402. .step-row.completed .step-status { color: var(--green); }
  403. .step-row.failed .step-status { color: var(--red); }
  404. /* ============================================================
  405. Log / Console Section
  406. ============================================================ */
  407. .log-header {
  408. display: flex;
  409. justify-content: space-between;
  410. align-items: center;
  411. margin-bottom: 6px;
  412. }
  413. #log-area {
  414. background: var(--bg-surface);
  415. border: 1px solid var(--border);
  416. border-radius: var(--radius-md);
  417. padding: 8px 10px;
  418. height: 220px;
  419. overflow-y: auto;
  420. font-family: 'JetBrains Mono', 'Consolas', monospace;
  421. font-size: 10.5px;
  422. line-height: 1.7;
  423. color: var(--text-secondary);
  424. box-shadow: var(--shadow-sm);
  425. }
  426. #log-area::-webkit-scrollbar { width: 5px; }
  427. #log-area::-webkit-scrollbar-track { background: transparent; }
  428. #log-area::-webkit-scrollbar-thumb { background: var(--bg-elevated); border-radius: 4px; }
  429. #log-area::-webkit-scrollbar-thumb:hover { background: var(--text-muted); }
  430. .log-line { padding: 1.5px 0; }
  431. .log-line + .log-line { border-top: 1px solid var(--border-subtle); }
  432. .log-time { color: var(--text-muted); }
  433. .log-level { font-weight: 700; margin: 0 2px; }
  434. .log-level-info { color: var(--blue); }
  435. .log-level-ok { color: var(--green); }
  436. .log-level-warn { color: var(--orange); }
  437. .log-level-error { color: var(--red); }
  438. .log-step-tag {
  439. display: inline-block;
  440. padding: 0 4px;
  441. border-radius: 3px;
  442. font-weight: 700;
  443. font-size: 9.5px;
  444. margin-right: 3px;
  445. }
  446. .log-step-tag.step-1 { color: var(--cyan); background: rgba(8, 145, 178, 0.08); }
  447. .log-step-tag.step-2 { color: var(--purple); background: rgba(124, 58, 237, 0.08); }
  448. .log-step-tag.step-3 { color: #b45309; background: rgba(180, 83, 9, 0.06); }
  449. [data-theme="dark"] .log-step-tag.step-3 { color: #fbbf24; background: rgba(251, 191, 36, 0.1); }
  450. .log-step-tag.step-4 { color: var(--orange); background: var(--orange-soft); }
  451. .log-step-tag.step-5 { color: var(--green); background: var(--green-soft); }
  452. .log-step-tag.step-6 { color: var(--cyan); background: rgba(8, 145, 178, 0.08); }
  453. .log-step-tag.step-7 { color: var(--orange); background: var(--orange-soft); }
  454. .log-step-tag.step-8 { color: var(--purple); background: rgba(124, 58, 237, 0.08); }
  455. .log-step-tag.step-9 { color: var(--green); background: var(--green-soft); }
  456. .log-msg { color: var(--text-secondary); }
  457. .log-line.log-ok .log-msg { color: var(--green); font-weight: 500; }
  458. .log-line.log-error .log-msg { color: var(--red); font-weight: 500; }
  459. .log-line.log-warn .log-msg { color: var(--orange); }
  460. /* ============================================================
  461. Animations
  462. ============================================================ */
  463. @keyframes fadeIn {
  464. from { opacity: 0; transform: translateY(3px); }
  465. to { opacity: 1; transform: translateY(0); }
  466. }
  467. .log-line { animation: fadeIn 120ms ease-out; }
  468. @media (prefers-reduced-motion: reduce) {
  469. *, *::before, *::after {
  470. animation-duration: 0.01ms !important;
  471. transition-duration: 0.01ms !important;
  472. }
  473. }