sidepanel.css 26 KB

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