sidepanel.css 28 KB

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