sidepanel.css 26 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153
  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. .auto-delay-inline {
  521. justify-content: space-between;
  522. gap: 12px;
  523. }
  524. .auto-delay-check {
  525. flex: 0 1 auto;
  526. }
  527. .auto-delay-controls {
  528. display: flex;
  529. align-items: center;
  530. gap: 8px;
  531. flex-shrink: 0;
  532. }
  533. .auto-delay-input {
  534. width: 72px;
  535. flex: 0 0 auto;
  536. text-align: center;
  537. }
  538. .data-unit {
  539. font-size: 12px;
  540. font-weight: 600;
  541. color: var(--text-muted);
  542. flex-shrink: 0;
  543. }
  544. /* Status Bar */
  545. .status-bar {
  546. display: flex;
  547. align-items: center;
  548. gap: 8px;
  549. margin-top: 8px;
  550. padding: 8px 12px;
  551. background: var(--bg-surface);
  552. border: 1px solid var(--border);
  553. border-radius: var(--radius-sm);
  554. font-size: 13px;
  555. font-weight: 500;
  556. color: var(--text-secondary);
  557. box-shadow: var(--shadow-sm);
  558. }
  559. .status-dot {
  560. width: 8px;
  561. height: 8px;
  562. border-radius: 50%;
  563. background: var(--text-muted);
  564. flex-shrink: 0;
  565. transition: background var(--transition);
  566. }
  567. .status-bar.running .status-dot {
  568. background: var(--orange);
  569. animation: pulse 1.5s ease-in-out infinite;
  570. }
  571. .status-bar.running { color: var(--orange); }
  572. .status-bar.completed .status-dot { background: var(--green); }
  573. .status-bar.completed { color: var(--green); }
  574. .status-bar.failed .status-dot { background: var(--red); }
  575. .status-bar.failed { color: var(--red); }
  576. .status-bar.stopped .status-dot { background: var(--cyan); }
  577. .status-bar.stopped { color: var(--cyan); }
  578. .status-bar.paused .status-dot {
  579. background: var(--orange);
  580. animation: pulse 1.5s ease-in-out infinite;
  581. }
  582. .status-bar.paused { color: var(--orange); }
  583. .status-bar.scheduled .status-dot {
  584. background: var(--blue);
  585. animation: pulse 1.5s ease-in-out infinite;
  586. }
  587. .status-bar.scheduled { color: var(--blue); }
  588. @keyframes pulse {
  589. 0%, 100% { opacity: 1; transform: scale(1); }
  590. 50% { opacity: 0.4; transform: scale(0.85); }
  591. }
  592. /* Auto Continue Bar */
  593. .auto-continue-bar {
  594. margin-top: 8px;
  595. padding: 8px 10px;
  596. background: var(--orange-soft);
  597. border: 1px solid rgba(234, 88, 12, 0.2);
  598. border-radius: var(--radius-sm);
  599. display: flex;
  600. align-items: center;
  601. gap: 8px;
  602. }
  603. .auto-continue-bar svg { color: var(--orange); flex-shrink: 0; }
  604. .auto-hint { font-size: 13px; color: var(--orange); flex: 1; font-weight: 500; }
  605. .auto-schedule-bar {
  606. margin-top: 8px;
  607. padding: 10px;
  608. background: var(--blue-soft);
  609. border: 1px solid rgba(37, 99, 235, 0.2);
  610. border-radius: var(--radius-sm);
  611. display: flex;
  612. align-items: center;
  613. flex-wrap: wrap;
  614. gap: 10px;
  615. }
  616. .auto-schedule-bar svg {
  617. color: var(--blue);
  618. flex-shrink: 0;
  619. }
  620. .auto-schedule-copy {
  621. display: flex;
  622. flex-direction: column;
  623. gap: 2px;
  624. flex: 1;
  625. min-width: 0;
  626. }
  627. .auto-schedule-title {
  628. font-size: 13px;
  629. font-weight: 700;
  630. color: var(--blue);
  631. }
  632. .auto-schedule-meta {
  633. font-size: 12px;
  634. line-height: 1.5;
  635. color: var(--text-secondary);
  636. }
  637. .auto-schedule-actions {
  638. display: flex;
  639. align-items: center;
  640. flex-wrap: wrap;
  641. gap: 8px;
  642. flex-shrink: 0;
  643. }
  644. /* ============================================================
  645. Steps Section
  646. ============================================================ */
  647. #steps-section { margin-bottom: 14px; }
  648. .steps-header {
  649. display: flex;
  650. justify-content: space-between;
  651. align-items: center;
  652. margin-bottom: 8px;
  653. }
  654. .section-label {
  655. font-size: 11px;
  656. font-weight: 700;
  657. color: var(--text-muted);
  658. text-transform: uppercase;
  659. letter-spacing: 0.08em;
  660. }
  661. .steps-progress {
  662. font-family: 'JetBrains Mono', monospace;
  663. font-size: 11px;
  664. font-weight: 600;
  665. color: var(--text-muted);
  666. background: var(--bg-surface);
  667. padding: 2px 8px;
  668. border-radius: 10px;
  669. border: 1px solid var(--border);
  670. }
  671. .steps-list {
  672. display: flex;
  673. flex-direction: column;
  674. gap: 5px;
  675. }
  676. .step-row {
  677. display: flex;
  678. align-items: center;
  679. gap: 8px;
  680. padding: 1px 0;
  681. transition: opacity var(--transition);
  682. }
  683. /* Step Number Indicator */
  684. .step-indicator {
  685. width: 26px;
  686. height: 26px;
  687. border-radius: 50%;
  688. background: var(--bg-surface);
  689. border: 1.5px solid var(--border);
  690. display: flex;
  691. align-items: center;
  692. justify-content: center;
  693. flex-shrink: 0;
  694. transition: all var(--transition);
  695. }
  696. .step-num {
  697. font-size: 11px;
  698. font-weight: 700;
  699. color: var(--text-muted);
  700. transition: color var(--transition);
  701. }
  702. .step-row.running .step-indicator { border-color: var(--orange); background: var(--orange-soft); }
  703. .step-row.running .step-num { color: var(--orange); }
  704. .step-row.running .step-indicator { animation: pulse 1.5s ease-in-out infinite; }
  705. .step-row.completed .step-indicator { border-color: var(--green); background: var(--green-soft); }
  706. .step-row.completed .step-num { color: var(--green); }
  707. .step-row.failed .step-indicator { border-color: var(--red); background: var(--red-soft); }
  708. .step-row.failed .step-num { color: var(--red); }
  709. .step-row.stopped .step-indicator { border-color: var(--cyan); background: rgba(8, 145, 178, 0.08); }
  710. .step-row.stopped .step-num { color: var(--cyan); }
  711. .step-row.manual_completed .step-indicator,
  712. .step-row.skipped .step-indicator { border-color: var(--blue); background: var(--blue-soft); }
  713. .step-row.manual_completed .step-num,
  714. .step-row.skipped .step-num { color: var(--blue); }
  715. /* Step Button */
  716. .step-btn {
  717. flex: 1;
  718. padding: 8px 12px;
  719. font-family: inherit;
  720. font-size: 13px;
  721. font-weight: 500;
  722. color: var(--text-primary);
  723. background: var(--bg-surface);
  724. border: 1px solid var(--border);
  725. border-radius: var(--radius-sm);
  726. cursor: pointer;
  727. text-align: left;
  728. transition: all var(--transition);
  729. box-shadow: var(--shadow-sm);
  730. }
  731. .step-btn:hover:not(:disabled) { background: var(--bg-hover); border-color: var(--blue); }
  732. .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; }
  733. .step-row.running .step-btn { border-color: var(--orange); color: var(--orange); }
  734. .step-row.completed .step-btn { border-color: var(--border-subtle); color: var(--text-secondary); opacity: 0.7; }
  735. .step-row.failed .step-btn { border-color: var(--red); color: var(--red); }
  736. .step-row.stopped .step-btn { border-color: var(--cyan); color: var(--cyan); }
  737. .step-row.manual_completed .step-btn,
  738. .step-row.skipped .step-btn { border-color: rgba(37, 99, 235, 0.25); color: var(--blue); opacity: 0.82; }
  739. .step-actions {
  740. display: flex;
  741. align-items: center;
  742. justify-content: flex-end;
  743. gap: 6px;
  744. width: 48px;
  745. flex-shrink: 0;
  746. }
  747. .step-manual-btn {
  748. width: 20px;
  749. height: 20px;
  750. padding: 0;
  751. display: inline-flex;
  752. align-items: center;
  753. justify-content: center;
  754. border: 1px solid var(--border);
  755. border-radius: 999px;
  756. background: var(--bg-surface);
  757. color: var(--text-muted);
  758. cursor: pointer;
  759. transition: all var(--transition);
  760. }
  761. .step-manual-btn:hover:not(:disabled) {
  762. border-color: var(--blue);
  763. color: var(--blue);
  764. background: var(--blue-soft);
  765. }
  766. .step-manual-btn:disabled {
  767. color: var(--text-muted);
  768. border-color: var(--border-subtle);
  769. background: var(--bg-base);
  770. cursor: not-allowed;
  771. opacity: 0.5;
  772. }
  773. .step-status {
  774. width: 20px;
  775. text-align: center;
  776. font-size: 14px;
  777. font-weight: 700;
  778. flex-shrink: 0;
  779. }
  780. .step-row.completed .step-status { color: var(--green); }
  781. .step-row.failed .step-status { color: var(--red); }
  782. .step-row.stopped .step-status { color: var(--cyan); }
  783. .step-row.manual_completed .step-status,
  784. .step-row.skipped .step-status { color: var(--blue); }
  785. /* ============================================================
  786. Log / Console Section
  787. ============================================================ */
  788. .log-header {
  789. display: flex;
  790. justify-content: space-between;
  791. align-items: center;
  792. margin-bottom: 6px;
  793. }
  794. #log-area {
  795. background: var(--bg-surface);
  796. border: 1px solid var(--border);
  797. border-radius: var(--radius-md);
  798. padding: 10px 12px;
  799. height: 220px;
  800. overflow-y: auto;
  801. font-family: 'JetBrains Mono', 'Consolas', monospace;
  802. font-size: 12px;
  803. line-height: 1.7;
  804. color: var(--text-secondary);
  805. box-shadow: var(--shadow-sm);
  806. }
  807. #log-area::-webkit-scrollbar { width: 5px; }
  808. #log-area::-webkit-scrollbar-track { background: transparent; }
  809. #log-area::-webkit-scrollbar-thumb { background: var(--bg-elevated); border-radius: 4px; }
  810. #log-area::-webkit-scrollbar-thumb:hover { background: var(--text-muted); }
  811. .log-line { padding: 2.5px 0; }
  812. .log-line + .log-line { border-top: 1px solid var(--border-subtle); }
  813. .log-time { color: var(--text-muted); }
  814. .log-level { font-weight: 700; margin: 0 2px; }
  815. .log-level-info { color: var(--blue); }
  816. .log-level-ok { color: var(--green); }
  817. .log-level-warn { color: var(--orange); }
  818. .log-level-error { color: var(--red); }
  819. .log-step-tag {
  820. display: inline-block;
  821. padding: 1px 5px;
  822. border-radius: 3px;
  823. font-weight: 700;
  824. font-size: 11px;
  825. margin-right: 3px;
  826. }
  827. .log-step-tag.step-1 { color: var(--cyan); background: rgba(8, 145, 178, 0.08); }
  828. .log-step-tag.step-2 { color: var(--purple); background: rgba(124, 58, 237, 0.08); }
  829. .log-step-tag.step-3 { color: #b45309; background: rgba(180, 83, 9, 0.06); }
  830. [data-theme="dark"] .log-step-tag.step-3 { color: #fbbf24; background: rgba(251, 191, 36, 0.1); }
  831. .log-step-tag.step-4 { color: var(--orange); background: var(--orange-soft); }
  832. .log-step-tag.step-5 { color: var(--green); background: var(--green-soft); }
  833. .log-step-tag.step-6 { color: var(--cyan); background: rgba(8, 145, 178, 0.08); }
  834. .log-step-tag.step-7 { color: var(--orange); background: var(--orange-soft); }
  835. .log-step-tag.step-8 { color: var(--purple); background: rgba(124, 58, 237, 0.08); }
  836. .log-step-tag.step-9 { color: var(--green); background: var(--green-soft); }
  837. .log-msg { color: var(--text-secondary); }
  838. .log-line.log-ok .log-msg { color: var(--green); font-weight: 500; }
  839. .log-line.log-error .log-msg { color: var(--red); font-weight: 500; }
  840. .log-line.log-warn .log-msg { color: var(--orange); }
  841. /* ============================================================
  842. Animations
  843. ============================================================ */
  844. @keyframes fadeIn {
  845. from { opacity: 0; transform: translateY(3px); }
  846. to { opacity: 1; transform: translateY(0); }
  847. }
  848. .log-line { animation: fadeIn 120ms ease-out; }
  849. /* ============================================================
  850. Modal
  851. ============================================================ */
  852. .modal-overlay {
  853. position: fixed;
  854. inset: 0;
  855. z-index: 1200;
  856. display: flex;
  857. align-items: center;
  858. justify-content: center;
  859. padding: 16px;
  860. background: rgba(15, 17, 23, 0.32);
  861. backdrop-filter: blur(2px);
  862. }
  863. .modal-overlay[hidden] {
  864. display: none !important;
  865. }
  866. .modal-card {
  867. width: min(100%, 320px);
  868. background: var(--bg-base);
  869. border: 1px solid var(--border);
  870. border-radius: 12px;
  871. box-shadow: var(--shadow-md), 0 18px 36px rgba(0, 0, 0, 0.18);
  872. padding: 14px;
  873. }
  874. .modal-header {
  875. display: flex;
  876. align-items: center;
  877. justify-content: space-between;
  878. gap: 10px;
  879. margin-bottom: 10px;
  880. }
  881. .modal-title {
  882. font-size: 14px;
  883. font-weight: 700;
  884. color: var(--text-primary);
  885. }
  886. .modal-close {
  887. width: 26px;
  888. height: 26px;
  889. border: none;
  890. border-radius: 999px;
  891. background: transparent;
  892. color: var(--text-muted);
  893. cursor: pointer;
  894. font-size: 18px;
  895. line-height: 1;
  896. transition: all var(--transition);
  897. }
  898. .modal-close:hover {
  899. background: var(--bg-hover);
  900. color: var(--text-primary);
  901. }
  902. .modal-message {
  903. font-size: 13px;
  904. line-height: 1.55;
  905. color: var(--text-secondary);
  906. margin-bottom: 14px;
  907. }
  908. .modal-actions {
  909. display: flex;
  910. justify-content: flex-end;
  911. gap: 8px;
  912. }
  913. /* ============================================================
  914. Toast Notifications
  915. ============================================================ */
  916. #toast-container {
  917. position: fixed;
  918. bottom: 12px;
  919. left: 12px;
  920. right: 12px;
  921. z-index: 1000;
  922. display: flex;
  923. flex-direction: column;
  924. gap: 6px;
  925. pointer-events: none;
  926. }
  927. .toast {
  928. display: flex;
  929. align-items: center;
  930. gap: 8px;
  931. padding: 10px 14px;
  932. border-radius: var(--radius-md);
  933. font-size: 13px;
  934. font-weight: 500;
  935. box-shadow: var(--shadow-md), 0 4px 12px rgba(0,0,0,0.1);
  936. pointer-events: auto;
  937. animation: toastIn 250ms ease-out;
  938. border: 1px solid;
  939. }
  940. .toast.toast-exit {
  941. animation: toastOut 200ms ease-in forwards;
  942. }
  943. .toast-error {
  944. background: var(--red-soft);
  945. border-color: var(--red);
  946. color: var(--red);
  947. }
  948. .toast-warn {
  949. background: var(--orange-soft);
  950. border-color: var(--orange);
  951. color: var(--orange);
  952. }
  953. .toast-success {
  954. background: var(--green-soft);
  955. border-color: var(--green);
  956. color: var(--green);
  957. }
  958. .toast-info {
  959. background: var(--blue-soft);
  960. border-color: var(--blue);
  961. color: var(--blue);
  962. }
  963. .toast svg {
  964. flex-shrink: 0;
  965. }
  966. .toast-msg {
  967. flex: 1;
  968. }
  969. .toast-close {
  970. background: none;
  971. border: none;
  972. color: inherit;
  973. opacity: 0.6;
  974. cursor: pointer;
  975. padding: 2px;
  976. font-size: 16px;
  977. line-height: 1;
  978. }
  979. .toast-close:hover { opacity: 1; }
  980. @keyframes toastIn {
  981. from { opacity: 0; transform: translateY(-10px) scale(0.96); }
  982. to { opacity: 1; transform: translateY(0) scale(1); }
  983. }
  984. @keyframes toastOut {
  985. from { opacity: 1; transform: translateY(0) scale(1); }
  986. to { opacity: 0; transform: translateY(-10px) scale(0.96); }
  987. }
  988. @media (prefers-reduced-motion: reduce) {
  989. *, *::before, *::after {
  990. animation-duration: 0.01ms !important;
  991. transition-duration: 0.01ms !important;
  992. }
  993. }