sidepanel.css 27 KB

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