sidepanel.css 21 KB

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