sidepanel.css 24 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073
  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: 14px;
  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: 16px;
  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: 6px;
  130. padding: 7px 14px;
  131. font-family: inherit;
  132. font-size: 13px;
  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. .btn-danger {
  151. background: var(--red);
  152. color: #fff;
  153. }
  154. .btn-danger:hover { opacity: 0.9; box-shadow: 0 2px 8px var(--red-soft); }
  155. .run-group {
  156. display: flex;
  157. align-items: center;
  158. gap: 4px;
  159. }
  160. .run-count-input {
  161. width: 42px;
  162. padding: 6px 4px;
  163. text-align: center;
  164. background: var(--bg-base);
  165. border: 1px solid var(--border);
  166. border-radius: var(--radius-sm);
  167. color: var(--text-primary);
  168. font-family: 'JetBrains Mono', monospace;
  169. font-size: 13px;
  170. font-weight: 600;
  171. outline: none;
  172. }
  173. .run-count-input:focus { border-color: var(--blue); }
  174. .run-count-input::-webkit-inner-spin-button { opacity: 0.5; }
  175. .btn-success:disabled, .btn-primary:disabled, .btn-danger:disabled { background: var(--bg-elevated); color: var(--text-muted); cursor: not-allowed; box-shadow: none; }
  176. .run-count-input:disabled { opacity: 0.5; cursor: not-allowed; }
  177. .btn-ghost {
  178. background: transparent;
  179. color: var(--text-secondary);
  180. padding: 6px;
  181. border-radius: var(--radius-sm);
  182. }
  183. .btn-ghost:hover { background: var(--bg-hover); color: var(--text-primary); }
  184. .btn-outline {
  185. background: transparent;
  186. border: 1px solid var(--border);
  187. color: var(--text-secondary);
  188. }
  189. .btn-outline:hover { border-color: var(--blue); color: var(--blue); background: var(--blue-soft); }
  190. .btn-sm { padding: 5px 12px; font-size: 12px; }
  191. .btn-xs { padding: 4px 10px; font-size: 11px; }
  192. /* ============================================================
  193. Data Card
  194. ============================================================ */
  195. #data-section { margin-bottom: 14px; }
  196. .data-card {
  197. background: var(--bg-surface);
  198. border: 1px solid var(--border);
  199. border-radius: var(--radius-md);
  200. padding: 12px 14px;
  201. display: flex;
  202. flex-direction: column;
  203. gap: 9px;
  204. box-shadow: var(--shadow-sm);
  205. }
  206. .section-mini-header {
  207. display: flex;
  208. align-items: center;
  209. justify-content: space-between;
  210. gap: 8px;
  211. }
  212. .section-mini-copy {
  213. min-width: 0;
  214. display: flex;
  215. flex-direction: column;
  216. gap: 2px;
  217. }
  218. .section-mini-actions {
  219. display: flex;
  220. align-items: center;
  221. gap: 6px;
  222. flex-wrap: wrap;
  223. justify-content: flex-end;
  224. }
  225. .section-hint {
  226. color: var(--text-muted);
  227. font-size: 12px;
  228. }
  229. .data-row {
  230. display: flex;
  231. align-items: center;
  232. gap: 8px;
  233. }
  234. .data-check-row {
  235. align-items: flex-start;
  236. }
  237. .data-inline {
  238. display: flex;
  239. align-items: center;
  240. gap: 8px;
  241. flex: 1;
  242. min-width: 0;
  243. }
  244. .input-with-icon {
  245. position: relative;
  246. flex: 1;
  247. min-width: 0;
  248. display: flex;
  249. align-items: center;
  250. }
  251. .data-label {
  252. width: 56px;
  253. font-size: 11px;
  254. font-weight: 700;
  255. color: var(--text-muted);
  256. text-transform: uppercase;
  257. letter-spacing: 0.06em;
  258. flex-shrink: 0;
  259. }
  260. .data-value {
  261. font-size: 13px;
  262. color: var(--text-muted);
  263. min-width: 0;
  264. }
  265. .data-value.has-value { color: var(--text-primary); }
  266. .mono {
  267. font-family: 'JetBrains Mono', 'Consolas', monospace;
  268. font-size: 12px;
  269. }
  270. .truncate {
  271. overflow: hidden;
  272. text-overflow: ellipsis;
  273. white-space: nowrap;
  274. }
  275. .data-input {
  276. flex: 1;
  277. padding: 7px 10px;
  278. background: var(--bg-base);
  279. border: 1px solid var(--border);
  280. border-radius: var(--radius-sm);
  281. color: var(--text-primary);
  282. font-family: 'JetBrains Mono', monospace;
  283. font-size: 13px;
  284. outline: none;
  285. transition: border-color var(--transition), box-shadow var(--transition);
  286. min-width: 0;
  287. }
  288. .data-input::placeholder { color: var(--text-muted); }
  289. .data-input:focus { border-color: var(--blue); box-shadow: 0 0 0 3px var(--blue-soft); }
  290. .data-textarea {
  291. width: 100%;
  292. min-height: 88px;
  293. resize: vertical;
  294. padding: 8px 10px;
  295. background: var(--bg-base);
  296. border: 1px solid var(--border);
  297. border-radius: var(--radius-sm);
  298. color: var(--text-primary);
  299. font-family: 'JetBrains Mono', monospace;
  300. font-size: 12px;
  301. outline: none;
  302. transition: border-color var(--transition), box-shadow var(--transition);
  303. }
  304. .data-textarea::placeholder { color: var(--text-muted); }
  305. .data-textarea:focus { border-color: var(--blue); box-shadow: 0 0 0 3px var(--blue-soft); }
  306. .data-input-with-icon {
  307. padding-right: 38px;
  308. }
  309. .input-icon-btn {
  310. position: absolute;
  311. right: 8px;
  312. width: 24px;
  313. height: 24px;
  314. padding: 0;
  315. display: inline-flex;
  316. align-items: center;
  317. justify-content: center;
  318. border: none;
  319. background: transparent;
  320. color: var(--text-muted);
  321. cursor: pointer;
  322. border-radius: 999px;
  323. transition: color var(--transition), background var(--transition);
  324. }
  325. .input-icon-btn:hover {
  326. color: var(--text-primary);
  327. background: var(--bg-hover);
  328. }
  329. #btn-fetch-email,
  330. #btn-save-settings {
  331. padding-inline: 10px;
  332. flex-shrink: 0;
  333. }
  334. .hotmail-card {
  335. margin-top: 10px;
  336. }
  337. .hotmail-actions-row .data-label {
  338. visibility: hidden;
  339. }
  340. .hotmail-import-row {
  341. align-items: flex-start;
  342. }
  343. .hotmail-import-box {
  344. flex: 1;
  345. display: flex;
  346. flex-direction: column;
  347. gap: 8px;
  348. }
  349. .hotmail-list-shell {
  350. border: 1px solid var(--border-subtle);
  351. border-radius: var(--radius-sm);
  352. background: color-mix(in srgb, var(--bg-base) 82%, transparent);
  353. overflow-y: auto;
  354. overflow-x: hidden;
  355. padding: 2px;
  356. transition: max-height var(--transition), border-color var(--transition), box-shadow var(--transition);
  357. }
  358. .hotmail-list-shell.is-collapsed {
  359. max-height: 236px;
  360. }
  361. .hotmail-list-shell.is-expanded {
  362. max-height: 440px;
  363. }
  364. .hotmail-list-shell::-webkit-scrollbar {
  365. width: 8px;
  366. }
  367. .hotmail-list-shell::-webkit-scrollbar-track {
  368. background: transparent;
  369. }
  370. .hotmail-list-shell::-webkit-scrollbar-thumb {
  371. background: var(--border);
  372. border-radius: 999px;
  373. }
  374. .hotmail-list-shell::-webkit-scrollbar-thumb:hover {
  375. background: var(--text-muted);
  376. }
  377. .hotmail-accounts-list {
  378. display: flex;
  379. flex-direction: column;
  380. gap: 8px;
  381. padding-right: 4px;
  382. }
  383. .hotmail-account-item {
  384. border: 1px solid var(--border);
  385. background: var(--bg-base);
  386. border-radius: var(--radius-sm);
  387. padding: 10px;
  388. display: flex;
  389. flex-direction: column;
  390. gap: 8px;
  391. }
  392. .hotmail-account-item.is-current {
  393. border-color: var(--blue);
  394. box-shadow: 0 0 0 1px var(--blue-glow);
  395. }
  396. .hotmail-account-top {
  397. display: flex;
  398. align-items: center;
  399. justify-content: space-between;
  400. gap: 8px;
  401. }
  402. .hotmail-account-title-row {
  403. min-width: 0;
  404. display: flex;
  405. align-items: center;
  406. gap: 6px;
  407. }
  408. .hotmail-account-email {
  409. font-weight: 600;
  410. color: var(--text-primary);
  411. word-break: break-all;
  412. }
  413. .hotmail-copy-btn {
  414. width: 24px;
  415. height: 24px;
  416. flex: 0 0 auto;
  417. display: inline-flex;
  418. align-items: center;
  419. justify-content: center;
  420. border: none;
  421. border-radius: 999px;
  422. background: transparent;
  423. color: var(--text-muted);
  424. cursor: pointer;
  425. transition: background var(--transition), color var(--transition), transform var(--transition);
  426. }
  427. .hotmail-copy-btn:hover {
  428. background: var(--bg-hover);
  429. color: var(--text-primary);
  430. }
  431. .hotmail-copy-btn:active {
  432. transform: scale(0.96);
  433. }
  434. .hotmail-status-chip {
  435. padding: 2px 8px;
  436. border-radius: 999px;
  437. font-size: 11px;
  438. font-weight: 700;
  439. text-transform: uppercase;
  440. letter-spacing: 0.02em;
  441. }
  442. .hotmail-status-chip.status-authorized {
  443. background: var(--green-soft);
  444. color: var(--green);
  445. }
  446. .hotmail-status-chip.status-used {
  447. background: var(--orange-soft);
  448. color: var(--orange);
  449. }
  450. .hotmail-status-chip.status-disabled {
  451. background: var(--bg-surface);
  452. color: var(--text-secondary);
  453. }
  454. .hotmail-status-chip.status-pending {
  455. background: var(--orange-soft);
  456. color: var(--orange);
  457. }
  458. .hotmail-status-chip.status-error {
  459. background: var(--red-soft);
  460. color: var(--red);
  461. }
  462. .hotmail-account-meta {
  463. display: grid;
  464. grid-template-columns: repeat(2, minmax(0, 1fr));
  465. gap: 6px 10px;
  466. color: var(--text-secondary);
  467. font-size: 12px;
  468. }
  469. .hotmail-account-error {
  470. font-size: 12px;
  471. color: var(--red);
  472. word-break: break-word;
  473. }
  474. .hotmail-account-actions {
  475. display: flex;
  476. flex-wrap: wrap;
  477. gap: 6px;
  478. }
  479. .hotmail-empty {
  480. color: var(--text-muted);
  481. font-size: 12px;
  482. border: 1px dashed var(--border);
  483. border-radius: var(--radius-sm);
  484. padding: 10px;
  485. text-align: center;
  486. }
  487. .data-select {
  488. flex: 1;
  489. padding: 7px 10px;
  490. background: var(--bg-base);
  491. border: 1px solid var(--border);
  492. border-radius: var(--radius-sm);
  493. color: var(--text-primary);
  494. font-family: inherit;
  495. font-size: 13px;
  496. outline: none;
  497. cursor: pointer;
  498. transition: border-color var(--transition);
  499. min-width: 0;
  500. }
  501. .data-select:focus { border-color: var(--blue); box-shadow: 0 0 0 3px var(--blue-soft); }
  502. [data-theme="dark"] .data-select { color-scheme: dark; }
  503. .data-check {
  504. display: flex;
  505. align-items: flex-start;
  506. gap: 8px;
  507. flex: 1;
  508. min-width: 0;
  509. font-size: 12px;
  510. line-height: 1.5;
  511. color: var(--text-secondary);
  512. cursor: pointer;
  513. }
  514. .data-check input[type="checkbox"] {
  515. margin-top: 2px;
  516. accent-color: var(--blue);
  517. cursor: pointer;
  518. flex-shrink: 0;
  519. }
  520. /* Status Bar */
  521. .status-bar {
  522. display: flex;
  523. align-items: center;
  524. gap: 8px;
  525. margin-top: 8px;
  526. padding: 8px 12px;
  527. background: var(--bg-surface);
  528. border: 1px solid var(--border);
  529. border-radius: var(--radius-sm);
  530. font-size: 13px;
  531. font-weight: 500;
  532. color: var(--text-secondary);
  533. box-shadow: var(--shadow-sm);
  534. }
  535. .status-dot {
  536. width: 8px;
  537. height: 8px;
  538. border-radius: 50%;
  539. background: var(--text-muted);
  540. flex-shrink: 0;
  541. transition: background var(--transition);
  542. }
  543. .status-bar.running .status-dot {
  544. background: var(--orange);
  545. animation: pulse 1.5s ease-in-out infinite;
  546. }
  547. .status-bar.running { color: var(--orange); }
  548. .status-bar.completed .status-dot { background: var(--green); }
  549. .status-bar.completed { color: var(--green); }
  550. .status-bar.failed .status-dot { background: var(--red); }
  551. .status-bar.failed { color: var(--red); }
  552. .status-bar.stopped .status-dot { background: var(--cyan); }
  553. .status-bar.stopped { color: var(--cyan); }
  554. .status-bar.paused .status-dot {
  555. background: var(--orange);
  556. animation: pulse 1.5s ease-in-out infinite;
  557. }
  558. .status-bar.paused { color: var(--orange); }
  559. @keyframes pulse {
  560. 0%, 100% { opacity: 1; transform: scale(1); }
  561. 50% { opacity: 0.4; transform: scale(0.85); }
  562. }
  563. /* Auto Continue Bar */
  564. .auto-continue-bar {
  565. margin-top: 8px;
  566. padding: 8px 10px;
  567. background: var(--orange-soft);
  568. border: 1px solid rgba(234, 88, 12, 0.2);
  569. border-radius: var(--radius-sm);
  570. display: flex;
  571. align-items: center;
  572. gap: 8px;
  573. }
  574. .auto-continue-bar svg { color: var(--orange); flex-shrink: 0; }
  575. .auto-hint { font-size: 13px; color: var(--orange); flex: 1; font-weight: 500; }
  576. /* ============================================================
  577. Steps Section
  578. ============================================================ */
  579. #steps-section { margin-bottom: 14px; }
  580. .steps-header {
  581. display: flex;
  582. justify-content: space-between;
  583. align-items: center;
  584. margin-bottom: 8px;
  585. }
  586. .section-label {
  587. font-size: 11px;
  588. font-weight: 700;
  589. color: var(--text-muted);
  590. text-transform: uppercase;
  591. letter-spacing: 0.08em;
  592. }
  593. .steps-progress {
  594. font-family: 'JetBrains Mono', monospace;
  595. font-size: 11px;
  596. font-weight: 600;
  597. color: var(--text-muted);
  598. background: var(--bg-surface);
  599. padding: 2px 8px;
  600. border-radius: 10px;
  601. border: 1px solid var(--border);
  602. }
  603. .steps-list {
  604. display: flex;
  605. flex-direction: column;
  606. gap: 5px;
  607. }
  608. .step-row {
  609. display: flex;
  610. align-items: center;
  611. gap: 8px;
  612. padding: 1px 0;
  613. transition: opacity var(--transition);
  614. }
  615. /* Step Number Indicator */
  616. .step-indicator {
  617. width: 26px;
  618. height: 26px;
  619. border-radius: 50%;
  620. background: var(--bg-surface);
  621. border: 1.5px solid var(--border);
  622. display: flex;
  623. align-items: center;
  624. justify-content: center;
  625. flex-shrink: 0;
  626. transition: all var(--transition);
  627. }
  628. .step-num {
  629. font-size: 11px;
  630. font-weight: 700;
  631. color: var(--text-muted);
  632. transition: color var(--transition);
  633. }
  634. .step-row.running .step-indicator { border-color: var(--orange); background: var(--orange-soft); }
  635. .step-row.running .step-num { color: var(--orange); }
  636. .step-row.running .step-indicator { animation: pulse 1.5s ease-in-out infinite; }
  637. .step-row.completed .step-indicator { border-color: var(--green); background: var(--green-soft); }
  638. .step-row.completed .step-num { color: var(--green); }
  639. .step-row.failed .step-indicator { border-color: var(--red); background: var(--red-soft); }
  640. .step-row.failed .step-num { color: var(--red); }
  641. .step-row.stopped .step-indicator { border-color: var(--cyan); background: rgba(8, 145, 178, 0.08); }
  642. .step-row.stopped .step-num { color: var(--cyan); }
  643. .step-row.manual_completed .step-indicator,
  644. .step-row.skipped .step-indicator { border-color: var(--blue); background: var(--blue-soft); }
  645. .step-row.manual_completed .step-num,
  646. .step-row.skipped .step-num { color: var(--blue); }
  647. /* Step Button */
  648. .step-btn {
  649. flex: 1;
  650. padding: 8px 12px;
  651. font-family: inherit;
  652. font-size: 13px;
  653. font-weight: 500;
  654. color: var(--text-primary);
  655. background: var(--bg-surface);
  656. border: 1px solid var(--border);
  657. border-radius: var(--radius-sm);
  658. cursor: pointer;
  659. text-align: left;
  660. transition: all var(--transition);
  661. box-shadow: var(--shadow-sm);
  662. }
  663. .step-btn:hover:not(:disabled) { background: var(--bg-hover); border-color: var(--blue); }
  664. .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; }
  665. .step-row.running .step-btn { border-color: var(--orange); color: var(--orange); }
  666. .step-row.completed .step-btn { border-color: var(--border-subtle); color: var(--text-secondary); opacity: 0.7; }
  667. .step-row.failed .step-btn { border-color: var(--red); color: var(--red); }
  668. .step-row.stopped .step-btn { border-color: var(--cyan); color: var(--cyan); }
  669. .step-row.manual_completed .step-btn,
  670. .step-row.skipped .step-btn { border-color: rgba(37, 99, 235, 0.25); color: var(--blue); opacity: 0.82; }
  671. .step-actions {
  672. display: flex;
  673. align-items: center;
  674. justify-content: flex-end;
  675. gap: 6px;
  676. width: 48px;
  677. flex-shrink: 0;
  678. }
  679. .step-manual-btn {
  680. width: 20px;
  681. height: 20px;
  682. padding: 0;
  683. display: inline-flex;
  684. align-items: center;
  685. justify-content: center;
  686. border: 1px solid var(--border);
  687. border-radius: 999px;
  688. background: var(--bg-surface);
  689. color: var(--text-muted);
  690. cursor: pointer;
  691. transition: all var(--transition);
  692. }
  693. .step-manual-btn:hover:not(:disabled) {
  694. border-color: var(--blue);
  695. color: var(--blue);
  696. background: var(--blue-soft);
  697. }
  698. .step-manual-btn:disabled {
  699. color: var(--text-muted);
  700. border-color: var(--border-subtle);
  701. background: var(--bg-base);
  702. cursor: not-allowed;
  703. opacity: 0.5;
  704. }
  705. .step-status {
  706. width: 20px;
  707. text-align: center;
  708. font-size: 14px;
  709. font-weight: 700;
  710. flex-shrink: 0;
  711. }
  712. .step-row.completed .step-status { color: var(--green); }
  713. .step-row.failed .step-status { color: var(--red); }
  714. .step-row.stopped .step-status { color: var(--cyan); }
  715. .step-row.manual_completed .step-status,
  716. .step-row.skipped .step-status { color: var(--blue); }
  717. /* ============================================================
  718. Log / Console Section
  719. ============================================================ */
  720. .log-header {
  721. display: flex;
  722. justify-content: space-between;
  723. align-items: center;
  724. margin-bottom: 6px;
  725. }
  726. #log-area {
  727. background: var(--bg-surface);
  728. border: 1px solid var(--border);
  729. border-radius: var(--radius-md);
  730. padding: 10px 12px;
  731. height: 220px;
  732. overflow-y: auto;
  733. font-family: 'JetBrains Mono', 'Consolas', monospace;
  734. font-size: 12px;
  735. line-height: 1.7;
  736. color: var(--text-secondary);
  737. box-shadow: var(--shadow-sm);
  738. }
  739. #log-area::-webkit-scrollbar { width: 5px; }
  740. #log-area::-webkit-scrollbar-track { background: transparent; }
  741. #log-area::-webkit-scrollbar-thumb { background: var(--bg-elevated); border-radius: 4px; }
  742. #log-area::-webkit-scrollbar-thumb:hover { background: var(--text-muted); }
  743. .log-line { padding: 2.5px 0; }
  744. .log-line + .log-line { border-top: 1px solid var(--border-subtle); }
  745. .log-time { color: var(--text-muted); }
  746. .log-level { font-weight: 700; margin: 0 2px; }
  747. .log-level-info { color: var(--blue); }
  748. .log-level-ok { color: var(--green); }
  749. .log-level-warn { color: var(--orange); }
  750. .log-level-error { color: var(--red); }
  751. .log-step-tag {
  752. display: inline-block;
  753. padding: 1px 5px;
  754. border-radius: 3px;
  755. font-weight: 700;
  756. font-size: 11px;
  757. margin-right: 3px;
  758. }
  759. .log-step-tag.step-1 { color: var(--cyan); background: rgba(8, 145, 178, 0.08); }
  760. .log-step-tag.step-2 { color: var(--purple); background: rgba(124, 58, 237, 0.08); }
  761. .log-step-tag.step-3 { color: #b45309; background: rgba(180, 83, 9, 0.06); }
  762. [data-theme="dark"] .log-step-tag.step-3 { color: #fbbf24; background: rgba(251, 191, 36, 0.1); }
  763. .log-step-tag.step-4 { color: var(--orange); background: var(--orange-soft); }
  764. .log-step-tag.step-5 { color: var(--green); background: var(--green-soft); }
  765. .log-step-tag.step-6 { color: var(--cyan); background: rgba(8, 145, 178, 0.08); }
  766. .log-step-tag.step-7 { color: var(--orange); background: var(--orange-soft); }
  767. .log-step-tag.step-8 { color: var(--purple); background: rgba(124, 58, 237, 0.08); }
  768. .log-step-tag.step-9 { color: var(--green); background: var(--green-soft); }
  769. .log-msg { color: var(--text-secondary); }
  770. .log-line.log-ok .log-msg { color: var(--green); font-weight: 500; }
  771. .log-line.log-error .log-msg { color: var(--red); font-weight: 500; }
  772. .log-line.log-warn .log-msg { color: var(--orange); }
  773. /* ============================================================
  774. Animations
  775. ============================================================ */
  776. @keyframes fadeIn {
  777. from { opacity: 0; transform: translateY(3px); }
  778. to { opacity: 1; transform: translateY(0); }
  779. }
  780. .log-line { animation: fadeIn 120ms ease-out; }
  781. /* ============================================================
  782. Modal
  783. ============================================================ */
  784. .modal-overlay {
  785. position: fixed;
  786. inset: 0;
  787. z-index: 1200;
  788. display: flex;
  789. align-items: center;
  790. justify-content: center;
  791. padding: 16px;
  792. background: rgba(15, 17, 23, 0.32);
  793. backdrop-filter: blur(2px);
  794. }
  795. .modal-overlay[hidden] {
  796. display: none !important;
  797. }
  798. .modal-card {
  799. width: min(100%, 320px);
  800. background: var(--bg-base);
  801. border: 1px solid var(--border);
  802. border-radius: 12px;
  803. box-shadow: var(--shadow-md), 0 18px 36px rgba(0, 0, 0, 0.18);
  804. padding: 14px;
  805. }
  806. .modal-header {
  807. display: flex;
  808. align-items: center;
  809. justify-content: space-between;
  810. gap: 10px;
  811. margin-bottom: 10px;
  812. }
  813. .modal-title {
  814. font-size: 14px;
  815. font-weight: 700;
  816. color: var(--text-primary);
  817. }
  818. .modal-close {
  819. width: 26px;
  820. height: 26px;
  821. border: none;
  822. border-radius: 999px;
  823. background: transparent;
  824. color: var(--text-muted);
  825. cursor: pointer;
  826. font-size: 18px;
  827. line-height: 1;
  828. transition: all var(--transition);
  829. }
  830. .modal-close:hover {
  831. background: var(--bg-hover);
  832. color: var(--text-primary);
  833. }
  834. .modal-message {
  835. font-size: 13px;
  836. line-height: 1.55;
  837. color: var(--text-secondary);
  838. margin-bottom: 14px;
  839. }
  840. .modal-actions {
  841. display: flex;
  842. justify-content: flex-end;
  843. gap: 8px;
  844. }
  845. /* ============================================================
  846. Toast Notifications
  847. ============================================================ */
  848. #toast-container {
  849. position: fixed;
  850. top: 12px;
  851. left: 12px;
  852. right: 12px;
  853. z-index: 1000;
  854. display: flex;
  855. flex-direction: column;
  856. gap: 6px;
  857. pointer-events: none;
  858. }
  859. .toast {
  860. display: flex;
  861. align-items: center;
  862. gap: 8px;
  863. padding: 10px 14px;
  864. border-radius: var(--radius-md);
  865. font-size: 13px;
  866. font-weight: 500;
  867. box-shadow: var(--shadow-md), 0 4px 12px rgba(0,0,0,0.1);
  868. pointer-events: auto;
  869. animation: toastIn 250ms ease-out;
  870. border: 1px solid;
  871. }
  872. .toast.toast-exit {
  873. animation: toastOut 200ms ease-in forwards;
  874. }
  875. .toast-error {
  876. background: var(--red-soft);
  877. border-color: var(--red);
  878. color: var(--red);
  879. }
  880. .toast-warn {
  881. background: var(--orange-soft);
  882. border-color: var(--orange);
  883. color: var(--orange);
  884. }
  885. .toast-success {
  886. background: var(--green-soft);
  887. border-color: var(--green);
  888. color: var(--green);
  889. }
  890. .toast-info {
  891. background: var(--blue-soft);
  892. border-color: var(--blue);
  893. color: var(--blue);
  894. }
  895. .toast svg {
  896. flex-shrink: 0;
  897. }
  898. .toast-msg {
  899. flex: 1;
  900. }
  901. .toast-close {
  902. background: none;
  903. border: none;
  904. color: inherit;
  905. opacity: 0.6;
  906. cursor: pointer;
  907. padding: 2px;
  908. font-size: 16px;
  909. line-height: 1;
  910. }
  911. .toast-close:hover { opacity: 1; }
  912. @keyframes toastIn {
  913. from { opacity: 0; transform: translateY(-10px) scale(0.96); }
  914. to { opacity: 1; transform: translateY(0) scale(1); }
  915. }
  916. @keyframes toastOut {
  917. from { opacity: 1; transform: translateY(0) scale(1); }
  918. to { opacity: 0; transform: translateY(-10px) scale(0.96); }
  919. }
  920. @media (prefers-reduced-motion: reduce) {
  921. *, *::before, *::after {
  922. animation-duration: 0.01ms !important;
  923. transition-duration: 0.01ms !important;
  924. }
  925. }