sidepanel.css 28 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271
  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-actions {
  284. display: flex;
  285. align-items: center;
  286. gap: 6px;
  287. flex-wrap: wrap;
  288. justify-content: flex-end;
  289. }
  290. .section-hint {
  291. color: var(--text-muted);
  292. font-size: 12px;
  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. #btn-fetch-email,
  432. #btn-save-settings {
  433. padding-inline: 10px;
  434. flex-shrink: 0;
  435. }
  436. .hotmail-card {
  437. margin-top: 10px;
  438. }
  439. .hotmail-actions-row .data-label {
  440. visibility: hidden;
  441. }
  442. .hotmail-import-row {
  443. align-items: flex-start;
  444. }
  445. .hotmail-import-box {
  446. flex: 1;
  447. display: flex;
  448. flex-direction: column;
  449. gap: 8px;
  450. }
  451. .hotmail-list-shell {
  452. border: 1px solid var(--border-subtle);
  453. border-radius: var(--radius-sm);
  454. background: color-mix(in srgb, var(--bg-base) 82%, transparent);
  455. overflow-y: auto;
  456. overflow-x: hidden;
  457. padding: 2px;
  458. transition: max-height var(--transition), border-color var(--transition), box-shadow var(--transition);
  459. }
  460. .hotmail-list-shell.is-collapsed {
  461. max-height: 236px;
  462. }
  463. .hotmail-list-shell.is-expanded {
  464. max-height: 440px;
  465. }
  466. .hotmail-list-shell::-webkit-scrollbar {
  467. width: 8px;
  468. }
  469. .hotmail-list-shell::-webkit-scrollbar-track {
  470. background: transparent;
  471. }
  472. .hotmail-list-shell::-webkit-scrollbar-thumb {
  473. background: var(--border);
  474. border-radius: 999px;
  475. }
  476. .hotmail-list-shell::-webkit-scrollbar-thumb:hover {
  477. background: var(--text-muted);
  478. }
  479. .hotmail-accounts-list {
  480. display: flex;
  481. flex-direction: column;
  482. gap: 8px;
  483. padding-right: 4px;
  484. }
  485. .hotmail-account-item {
  486. border: 1px solid var(--border);
  487. background: var(--bg-base);
  488. border-radius: var(--radius-sm);
  489. padding: 10px;
  490. display: flex;
  491. flex-direction: column;
  492. gap: 8px;
  493. }
  494. .hotmail-account-item.is-current {
  495. border-color: var(--blue);
  496. box-shadow: 0 0 0 1px var(--blue-glow);
  497. }
  498. .hotmail-account-top {
  499. display: flex;
  500. align-items: center;
  501. justify-content: space-between;
  502. gap: 8px;
  503. }
  504. .hotmail-account-title-row {
  505. min-width: 0;
  506. display: flex;
  507. align-items: center;
  508. gap: 6px;
  509. }
  510. .hotmail-account-email {
  511. font-weight: 600;
  512. color: var(--text-primary);
  513. word-break: break-all;
  514. }
  515. .hotmail-copy-btn {
  516. width: 24px;
  517. height: 24px;
  518. flex: 0 0 auto;
  519. display: inline-flex;
  520. align-items: center;
  521. justify-content: center;
  522. border: none;
  523. border-radius: 999px;
  524. background: transparent;
  525. color: var(--text-muted);
  526. cursor: pointer;
  527. transition: background var(--transition), color var(--transition), transform var(--transition);
  528. }
  529. .hotmail-copy-btn:hover {
  530. background: var(--bg-hover);
  531. color: var(--text-primary);
  532. }
  533. .hotmail-copy-btn:active {
  534. transform: scale(0.96);
  535. }
  536. .hotmail-status-chip {
  537. padding: 2px 8px;
  538. border-radius: 999px;
  539. font-size: 11px;
  540. font-weight: 700;
  541. text-transform: uppercase;
  542. letter-spacing: 0.02em;
  543. }
  544. .hotmail-status-chip.status-authorized {
  545. background: var(--green-soft);
  546. color: var(--green);
  547. }
  548. .hotmail-status-chip.status-used {
  549. background: var(--orange-soft);
  550. color: var(--orange);
  551. }
  552. .hotmail-status-chip.status-disabled {
  553. background: var(--bg-surface);
  554. color: var(--text-secondary);
  555. }
  556. .hotmail-status-chip.status-pending {
  557. background: var(--orange-soft);
  558. color: var(--orange);
  559. }
  560. .hotmail-status-chip.status-error {
  561. background: var(--red-soft);
  562. color: var(--red);
  563. }
  564. .hotmail-account-meta {
  565. display: grid;
  566. grid-template-columns: repeat(2, minmax(0, 1fr));
  567. gap: 6px 10px;
  568. color: var(--text-secondary);
  569. font-size: 12px;
  570. }
  571. .hotmail-account-error {
  572. font-size: 12px;
  573. color: var(--red);
  574. word-break: break-word;
  575. }
  576. .hotmail-account-actions {
  577. display: flex;
  578. flex-wrap: wrap;
  579. gap: 6px;
  580. }
  581. .hotmail-empty {
  582. color: var(--text-muted);
  583. font-size: 12px;
  584. border: 1px dashed var(--border);
  585. border-radius: var(--radius-sm);
  586. padding: 10px;
  587. text-align: center;
  588. }
  589. .data-select {
  590. flex: 1;
  591. padding: 7px 10px;
  592. background: var(--bg-base);
  593. border: 1px solid var(--border);
  594. border-radius: var(--radius-sm);
  595. color: var(--text-primary);
  596. font-family: inherit;
  597. font-size: 13px;
  598. outline: none;
  599. cursor: pointer;
  600. transition: border-color var(--transition);
  601. min-width: 0;
  602. }
  603. .data-select:focus { border-color: var(--blue); box-shadow: 0 0 0 3px var(--blue-soft); }
  604. [data-theme="dark"] .data-select { color-scheme: dark; }
  605. .data-check {
  606. display: flex;
  607. align-items: flex-start;
  608. gap: 8px;
  609. flex: 1;
  610. min-width: 0;
  611. font-size: 12px;
  612. line-height: 1.5;
  613. color: var(--text-secondary);
  614. cursor: pointer;
  615. }
  616. .data-check input[type="checkbox"] {
  617. margin-top: 2px;
  618. accent-color: var(--blue);
  619. cursor: pointer;
  620. flex-shrink: 0;
  621. }
  622. .auto-delay-inline {
  623. justify-content: space-between;
  624. gap: 12px;
  625. }
  626. .auto-delay-check {
  627. flex: 0 1 auto;
  628. }
  629. .auto-delay-controls {
  630. display: flex;
  631. align-items: center;
  632. gap: 8px;
  633. flex-shrink: 0;
  634. }
  635. .auto-delay-input {
  636. width: 72px;
  637. flex: 0 0 auto;
  638. text-align: center;
  639. }
  640. .data-unit {
  641. font-size: 12px;
  642. font-weight: 600;
  643. color: var(--text-muted);
  644. flex-shrink: 0;
  645. }
  646. /* Status Bar */
  647. .status-bar {
  648. display: flex;
  649. align-items: center;
  650. gap: 8px;
  651. margin-top: 8px;
  652. padding: 8px 12px;
  653. background: var(--bg-surface);
  654. border: 1px solid var(--border);
  655. border-radius: var(--radius-sm);
  656. font-size: 13px;
  657. font-weight: 500;
  658. color: var(--text-secondary);
  659. box-shadow: var(--shadow-sm);
  660. }
  661. .status-dot {
  662. width: 8px;
  663. height: 8px;
  664. border-radius: 50%;
  665. background: var(--text-muted);
  666. flex-shrink: 0;
  667. transition: background var(--transition);
  668. }
  669. .status-bar.running .status-dot {
  670. background: var(--orange);
  671. animation: pulse 1.5s ease-in-out infinite;
  672. }
  673. .status-bar.running { color: var(--orange); }
  674. .status-bar.completed .status-dot { background: var(--green); }
  675. .status-bar.completed { color: var(--green); }
  676. .status-bar.failed .status-dot { background: var(--red); }
  677. .status-bar.failed { color: var(--red); }
  678. .status-bar.stopped .status-dot { background: var(--cyan); }
  679. .status-bar.stopped { color: var(--cyan); }
  680. .status-bar.paused .status-dot {
  681. background: var(--orange);
  682. animation: pulse 1.5s ease-in-out infinite;
  683. }
  684. .status-bar.paused { color: var(--orange); }
  685. .status-bar.scheduled .status-dot {
  686. background: var(--blue);
  687. animation: pulse 1.5s ease-in-out infinite;
  688. }
  689. .status-bar.scheduled { color: var(--blue); }
  690. @keyframes pulse {
  691. 0%, 100% { opacity: 1; transform: scale(1); }
  692. 50% { opacity: 0.4; transform: scale(0.85); }
  693. }
  694. /* Auto Continue Bar */
  695. .auto-continue-bar {
  696. margin-top: 8px;
  697. padding: 8px 10px;
  698. background: var(--orange-soft);
  699. border: 1px solid rgba(234, 88, 12, 0.2);
  700. border-radius: var(--radius-sm);
  701. display: flex;
  702. align-items: center;
  703. gap: 8px;
  704. }
  705. .auto-continue-bar svg { color: var(--orange); flex-shrink: 0; }
  706. .auto-hint { font-size: 13px; color: var(--orange); flex: 1; font-weight: 500; }
  707. .auto-schedule-bar {
  708. margin-top: 8px;
  709. padding: 10px;
  710. background: var(--blue-soft);
  711. border: 1px solid rgba(37, 99, 235, 0.2);
  712. border-radius: var(--radius-sm);
  713. display: flex;
  714. align-items: center;
  715. flex-wrap: wrap;
  716. gap: 10px;
  717. }
  718. .auto-schedule-bar svg {
  719. color: var(--blue);
  720. flex-shrink: 0;
  721. }
  722. .auto-schedule-copy {
  723. display: flex;
  724. flex-direction: column;
  725. gap: 2px;
  726. flex: 1;
  727. min-width: 0;
  728. }
  729. .auto-schedule-title {
  730. font-size: 13px;
  731. font-weight: 700;
  732. color: var(--blue);
  733. }
  734. .auto-schedule-meta {
  735. font-size: 12px;
  736. line-height: 1.5;
  737. color: var(--text-secondary);
  738. }
  739. .auto-schedule-actions {
  740. display: flex;
  741. align-items: center;
  742. flex-wrap: wrap;
  743. gap: 8px;
  744. flex-shrink: 0;
  745. }
  746. /* ============================================================
  747. Steps Section
  748. ============================================================ */
  749. #steps-section { margin-bottom: 14px; }
  750. .steps-header {
  751. display: flex;
  752. justify-content: space-between;
  753. align-items: center;
  754. margin-bottom: 8px;
  755. }
  756. .section-label {
  757. font-size: 11px;
  758. font-weight: 700;
  759. color: var(--text-muted);
  760. text-transform: uppercase;
  761. letter-spacing: 0.08em;
  762. }
  763. .steps-progress {
  764. font-family: 'JetBrains Mono', monospace;
  765. font-size: 11px;
  766. font-weight: 600;
  767. color: var(--text-muted);
  768. background: var(--bg-surface);
  769. padding: 2px 8px;
  770. border-radius: 10px;
  771. border: 1px solid var(--border);
  772. }
  773. .steps-list {
  774. display: flex;
  775. flex-direction: column;
  776. gap: 5px;
  777. }
  778. .step-row {
  779. display: flex;
  780. align-items: center;
  781. gap: 8px;
  782. padding: 1px 0;
  783. transition: opacity var(--transition);
  784. }
  785. /* Step Number Indicator */
  786. .step-indicator {
  787. width: 26px;
  788. height: 26px;
  789. border-radius: 50%;
  790. background: var(--bg-surface);
  791. border: 1.5px solid var(--border);
  792. display: flex;
  793. align-items: center;
  794. justify-content: center;
  795. flex-shrink: 0;
  796. transition: all var(--transition);
  797. }
  798. .step-num {
  799. font-size: 11px;
  800. font-weight: 700;
  801. color: var(--text-muted);
  802. transition: color var(--transition);
  803. }
  804. .step-row.running .step-indicator { border-color: var(--orange); background: var(--orange-soft); }
  805. .step-row.running .step-num { color: var(--orange); }
  806. .step-row.running .step-indicator { animation: pulse 1.5s ease-in-out infinite; }
  807. .step-row.completed .step-indicator { border-color: var(--green); background: var(--green-soft); }
  808. .step-row.completed .step-num { color: var(--green); }
  809. .step-row.failed .step-indicator { border-color: var(--red); background: var(--red-soft); }
  810. .step-row.failed .step-num { color: var(--red); }
  811. .step-row.stopped .step-indicator { border-color: var(--cyan); background: rgba(8, 145, 178, 0.08); }
  812. .step-row.stopped .step-num { color: var(--cyan); }
  813. .step-row.manual_completed .step-indicator,
  814. .step-row.skipped .step-indicator { border-color: var(--blue); background: var(--blue-soft); }
  815. .step-row.manual_completed .step-num,
  816. .step-row.skipped .step-num { color: var(--blue); }
  817. /* Step Button */
  818. .step-btn {
  819. flex: 1;
  820. padding: 8px 12px;
  821. font-family: inherit;
  822. font-size: 13px;
  823. font-weight: 500;
  824. color: var(--text-primary);
  825. background: var(--bg-surface);
  826. border: 1px solid var(--border);
  827. border-radius: var(--radius-sm);
  828. cursor: pointer;
  829. text-align: left;
  830. transition: all var(--transition);
  831. box-shadow: var(--shadow-sm);
  832. }
  833. .step-btn:hover:not(:disabled) { background: var(--bg-hover); border-color: var(--blue); }
  834. .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; }
  835. .step-row.running .step-btn { border-color: var(--orange); color: var(--orange); }
  836. .step-row.completed .step-btn { border-color: var(--border-subtle); color: var(--text-secondary); opacity: 0.7; }
  837. .step-row.failed .step-btn { border-color: var(--red); color: var(--red); }
  838. .step-row.stopped .step-btn { border-color: var(--cyan); color: var(--cyan); }
  839. .step-row.manual_completed .step-btn,
  840. .step-row.skipped .step-btn { border-color: rgba(37, 99, 235, 0.25); color: var(--blue); opacity: 0.82; }
  841. .step-actions {
  842. display: flex;
  843. align-items: center;
  844. justify-content: flex-end;
  845. gap: 6px;
  846. width: 48px;
  847. flex-shrink: 0;
  848. }
  849. .step-manual-btn {
  850. width: 20px;
  851. height: 20px;
  852. padding: 0;
  853. display: inline-flex;
  854. align-items: center;
  855. justify-content: center;
  856. border: 1px solid var(--border);
  857. border-radius: 999px;
  858. background: var(--bg-surface);
  859. color: var(--text-muted);
  860. cursor: pointer;
  861. transition: all var(--transition);
  862. }
  863. .step-manual-btn:hover:not(:disabled) {
  864. border-color: var(--blue);
  865. color: var(--blue);
  866. background: var(--blue-soft);
  867. }
  868. .step-manual-btn:disabled {
  869. color: var(--text-muted);
  870. border-color: var(--border-subtle);
  871. background: var(--bg-base);
  872. cursor: not-allowed;
  873. opacity: 0.5;
  874. }
  875. .step-status {
  876. width: 20px;
  877. text-align: center;
  878. font-size: 14px;
  879. font-weight: 700;
  880. flex-shrink: 0;
  881. }
  882. .step-row.completed .step-status { color: var(--green); }
  883. .step-row.failed .step-status { color: var(--red); }
  884. .step-row.stopped .step-status { color: var(--cyan); }
  885. .step-row.manual_completed .step-status,
  886. .step-row.skipped .step-status { color: var(--blue); }
  887. /* ============================================================
  888. Log / Console Section
  889. ============================================================ */
  890. .log-header {
  891. display: flex;
  892. justify-content: space-between;
  893. align-items: center;
  894. margin-bottom: 6px;
  895. }
  896. #log-area {
  897. background: var(--bg-surface);
  898. border: 1px solid var(--border);
  899. border-radius: var(--radius-md);
  900. padding: 10px 12px;
  901. height: 220px;
  902. overflow-y: auto;
  903. font-family: 'JetBrains Mono', 'Consolas', monospace;
  904. font-size: 12px;
  905. line-height: 1.7;
  906. color: var(--text-secondary);
  907. box-shadow: var(--shadow-sm);
  908. }
  909. #log-area::-webkit-scrollbar { width: 5px; }
  910. #log-area::-webkit-scrollbar-track { background: transparent; }
  911. #log-area::-webkit-scrollbar-thumb { background: var(--bg-elevated); border-radius: 4px; }
  912. #log-area::-webkit-scrollbar-thumb:hover { background: var(--text-muted); }
  913. .log-line { padding: 2.5px 0; }
  914. .log-line + .log-line { border-top: 1px solid var(--border-subtle); }
  915. .log-time { color: var(--text-muted); }
  916. .log-level { font-weight: 700; margin: 0 2px; }
  917. .log-level-info { color: var(--blue); }
  918. .log-level-ok { color: var(--green); }
  919. .log-level-warn { color: var(--orange); }
  920. .log-level-error { color: var(--red); }
  921. .log-step-tag {
  922. display: inline-block;
  923. padding: 1px 5px;
  924. border-radius: 3px;
  925. font-weight: 700;
  926. font-size: 11px;
  927. margin-right: 3px;
  928. }
  929. .log-step-tag.step-1 { color: var(--cyan); background: rgba(8, 145, 178, 0.08); }
  930. .log-step-tag.step-2 { color: var(--purple); background: rgba(124, 58, 237, 0.08); }
  931. .log-step-tag.step-3 { color: #b45309; background: rgba(180, 83, 9, 0.06); }
  932. [data-theme="dark"] .log-step-tag.step-3 { color: #fbbf24; background: rgba(251, 191, 36, 0.1); }
  933. .log-step-tag.step-4 { color: var(--orange); background: var(--orange-soft); }
  934. .log-step-tag.step-5 { color: var(--green); background: var(--green-soft); }
  935. .log-step-tag.step-6 { color: var(--cyan); background: rgba(8, 145, 178, 0.08); }
  936. .log-step-tag.step-7 { color: var(--orange); background: var(--orange-soft); }
  937. .log-step-tag.step-8 { color: var(--purple); background: rgba(124, 58, 237, 0.08); }
  938. .log-step-tag.step-9 { color: var(--green); background: var(--green-soft); }
  939. .log-msg { color: var(--text-secondary); }
  940. .log-line.log-ok .log-msg { color: var(--green); font-weight: 500; }
  941. .log-line.log-error .log-msg { color: var(--red); font-weight: 500; }
  942. .log-line.log-warn .log-msg { color: var(--orange); }
  943. /* ============================================================
  944. Animations
  945. ============================================================ */
  946. @keyframes fadeIn {
  947. from { opacity: 0; transform: translateY(3px); }
  948. to { opacity: 1; transform: translateY(0); }
  949. }
  950. .log-line { animation: fadeIn 120ms ease-out; }
  951. /* ============================================================
  952. Modal
  953. ============================================================ */
  954. .modal-overlay {
  955. position: fixed;
  956. inset: 0;
  957. z-index: 1200;
  958. display: flex;
  959. align-items: center;
  960. justify-content: center;
  961. padding: 16px;
  962. background: rgba(15, 17, 23, 0.32);
  963. backdrop-filter: blur(2px);
  964. }
  965. .modal-overlay[hidden] {
  966. display: none !important;
  967. }
  968. .modal-card {
  969. width: min(100%, 320px);
  970. background: var(--bg-base);
  971. border: 1px solid var(--border);
  972. border-radius: 12px;
  973. box-shadow: var(--shadow-md), 0 18px 36px rgba(0, 0, 0, 0.18);
  974. padding: 14px;
  975. }
  976. .modal-header {
  977. display: flex;
  978. align-items: center;
  979. justify-content: space-between;
  980. gap: 10px;
  981. margin-bottom: 10px;
  982. }
  983. .modal-title {
  984. font-size: 14px;
  985. font-weight: 700;
  986. color: var(--text-primary);
  987. }
  988. .modal-close {
  989. width: 26px;
  990. height: 26px;
  991. border: none;
  992. border-radius: 999px;
  993. background: transparent;
  994. color: var(--text-muted);
  995. cursor: pointer;
  996. font-size: 18px;
  997. line-height: 1;
  998. transition: all var(--transition);
  999. }
  1000. .modal-close:hover {
  1001. background: var(--bg-hover);
  1002. color: var(--text-primary);
  1003. }
  1004. .modal-message {
  1005. font-size: 13px;
  1006. line-height: 1.55;
  1007. color: var(--text-secondary);
  1008. margin-bottom: 14px;
  1009. }
  1010. .modal-actions {
  1011. display: flex;
  1012. justify-content: flex-end;
  1013. gap: 8px;
  1014. }
  1015. /* ============================================================
  1016. Toast Notifications
  1017. ============================================================ */
  1018. #toast-container {
  1019. position: fixed;
  1020. bottom: 12px;
  1021. left: 12px;
  1022. right: 12px;
  1023. z-index: 1000;
  1024. display: flex;
  1025. flex-direction: column;
  1026. gap: 6px;
  1027. pointer-events: none;
  1028. }
  1029. .toast {
  1030. display: flex;
  1031. align-items: center;
  1032. gap: 8px;
  1033. padding: 10px 14px;
  1034. border-radius: var(--radius-md);
  1035. font-size: 13px;
  1036. font-weight: 500;
  1037. box-shadow: var(--shadow-md), 0 4px 12px rgba(0,0,0,0.1);
  1038. pointer-events: auto;
  1039. animation: toastIn 250ms ease-out;
  1040. border: 1px solid;
  1041. }
  1042. .toast.toast-exit {
  1043. animation: toastOut 200ms ease-in forwards;
  1044. }
  1045. .toast-error {
  1046. background: var(--red-soft);
  1047. border-color: var(--red);
  1048. color: var(--red);
  1049. }
  1050. .toast-warn {
  1051. background: var(--orange-soft);
  1052. border-color: var(--orange);
  1053. color: var(--orange);
  1054. }
  1055. .toast-success {
  1056. background: var(--green-soft);
  1057. border-color: var(--green);
  1058. color: var(--green);
  1059. }
  1060. .toast-info {
  1061. background: var(--blue-soft);
  1062. border-color: var(--blue);
  1063. color: var(--blue);
  1064. }
  1065. .toast svg {
  1066. flex-shrink: 0;
  1067. }
  1068. .toast-msg {
  1069. flex: 1;
  1070. }
  1071. .toast-close {
  1072. background: none;
  1073. border: none;
  1074. color: inherit;
  1075. opacity: 0.6;
  1076. cursor: pointer;
  1077. padding: 2px;
  1078. font-size: 16px;
  1079. line-height: 1;
  1080. }
  1081. .toast-close:hover { opacity: 1; }
  1082. @keyframes toastIn {
  1083. from { opacity: 0; transform: translateY(-10px) scale(0.96); }
  1084. to { opacity: 1; transform: translateY(0) scale(1); }
  1085. }
  1086. @keyframes toastOut {
  1087. from { opacity: 1; transform: translateY(0) scale(1); }
  1088. to { opacity: 0; transform: translateY(-10px) scale(0.96); }
  1089. }
  1090. @media (prefers-reduced-motion: reduce) {
  1091. *, *::before, *::after {
  1092. animation-duration: 0.01ms !important;
  1093. transition-duration: 0.01ms !important;
  1094. }
  1095. }