sidepanel.css 17 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669
  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-inline {
  212. display: flex;
  213. align-items: center;
  214. gap: 8px;
  215. flex: 1;
  216. min-width: 0;
  217. }
  218. .data-label {
  219. width: 56px;
  220. font-size: 11px;
  221. font-weight: 700;
  222. color: var(--text-muted);
  223. text-transform: uppercase;
  224. letter-spacing: 0.06em;
  225. flex-shrink: 0;
  226. }
  227. .data-value {
  228. font-size: 13px;
  229. color: var(--text-muted);
  230. min-width: 0;
  231. }
  232. .data-value.has-value { color: var(--text-primary); }
  233. .mono {
  234. font-family: 'JetBrains Mono', 'Consolas', monospace;
  235. font-size: 12px;
  236. }
  237. .truncate {
  238. overflow: hidden;
  239. text-overflow: ellipsis;
  240. white-space: nowrap;
  241. }
  242. .data-input {
  243. flex: 1;
  244. padding: 7px 10px;
  245. background: var(--bg-base);
  246. border: 1px solid var(--border);
  247. border-radius: var(--radius-sm);
  248. color: var(--text-primary);
  249. font-family: 'JetBrains Mono', monospace;
  250. font-size: 13px;
  251. outline: none;
  252. transition: border-color var(--transition), box-shadow var(--transition);
  253. min-width: 0;
  254. }
  255. .data-input::placeholder { color: var(--text-muted); }
  256. .data-input:focus { border-color: var(--blue); box-shadow: 0 0 0 3px var(--blue-soft); }
  257. #btn-fetch-email {
  258. padding-inline: 10px;
  259. }
  260. #btn-toggle-password {
  261. min-width: 58px;
  262. padding-inline: 10px;
  263. }
  264. .data-select {
  265. flex: 1;
  266. padding: 7px 10px;
  267. background: var(--bg-base);
  268. border: 1px solid var(--border);
  269. border-radius: var(--radius-sm);
  270. color: var(--text-primary);
  271. font-family: inherit;
  272. font-size: 13px;
  273. outline: none;
  274. cursor: pointer;
  275. transition: border-color var(--transition);
  276. min-width: 0;
  277. }
  278. .data-select:focus { border-color: var(--blue); box-shadow: 0 0 0 3px var(--blue-soft); }
  279. [data-theme="dark"] .data-select { color-scheme: dark; }
  280. /* Status Bar */
  281. .status-bar {
  282. display: flex;
  283. align-items: center;
  284. gap: 8px;
  285. margin-top: 8px;
  286. padding: 8px 12px;
  287. background: var(--bg-surface);
  288. border: 1px solid var(--border);
  289. border-radius: var(--radius-sm);
  290. font-size: 13px;
  291. font-weight: 500;
  292. color: var(--text-secondary);
  293. box-shadow: var(--shadow-sm);
  294. }
  295. .status-dot {
  296. width: 8px;
  297. height: 8px;
  298. border-radius: 50%;
  299. background: var(--text-muted);
  300. flex-shrink: 0;
  301. transition: background var(--transition);
  302. }
  303. .status-bar.running .status-dot {
  304. background: var(--orange);
  305. animation: pulse 1.5s ease-in-out infinite;
  306. }
  307. .status-bar.running { color: var(--orange); }
  308. .status-bar.completed .status-dot { background: var(--green); }
  309. .status-bar.completed { color: var(--green); }
  310. .status-bar.failed .status-dot { background: var(--red); }
  311. .status-bar.failed { color: var(--red); }
  312. .status-bar.stopped .status-dot { background: var(--cyan); }
  313. .status-bar.stopped { color: var(--cyan); }
  314. @keyframes pulse {
  315. 0%, 100% { opacity: 1; transform: scale(1); }
  316. 50% { opacity: 0.4; transform: scale(0.85); }
  317. }
  318. /* Auto Continue Bar */
  319. .auto-continue-bar {
  320. margin-top: 8px;
  321. padding: 8px 10px;
  322. background: var(--orange-soft);
  323. border: 1px solid rgba(234, 88, 12, 0.2);
  324. border-radius: var(--radius-sm);
  325. display: flex;
  326. align-items: center;
  327. gap: 8px;
  328. }
  329. .auto-continue-bar svg { color: var(--orange); flex-shrink: 0; }
  330. .auto-hint { font-size: 13px; color: var(--orange); flex: 1; font-weight: 500; }
  331. /* ============================================================
  332. Steps Section
  333. ============================================================ */
  334. #steps-section { margin-bottom: 14px; }
  335. .steps-header {
  336. display: flex;
  337. justify-content: space-between;
  338. align-items: center;
  339. margin-bottom: 8px;
  340. }
  341. .section-label {
  342. font-size: 11px;
  343. font-weight: 700;
  344. color: var(--text-muted);
  345. text-transform: uppercase;
  346. letter-spacing: 0.08em;
  347. }
  348. .steps-progress {
  349. font-family: 'JetBrains Mono', monospace;
  350. font-size: 11px;
  351. font-weight: 600;
  352. color: var(--text-muted);
  353. background: var(--bg-surface);
  354. padding: 2px 8px;
  355. border-radius: 10px;
  356. border: 1px solid var(--border);
  357. }
  358. .steps-list {
  359. display: flex;
  360. flex-direction: column;
  361. gap: 5px;
  362. }
  363. .step-row {
  364. display: flex;
  365. align-items: center;
  366. gap: 8px;
  367. padding: 1px 0;
  368. transition: opacity var(--transition);
  369. }
  370. /* Step Number Indicator */
  371. .step-indicator {
  372. width: 26px;
  373. height: 26px;
  374. border-radius: 50%;
  375. background: var(--bg-surface);
  376. border: 1.5px solid var(--border);
  377. display: flex;
  378. align-items: center;
  379. justify-content: center;
  380. flex-shrink: 0;
  381. transition: all var(--transition);
  382. }
  383. .step-num {
  384. font-size: 11px;
  385. font-weight: 700;
  386. color: var(--text-muted);
  387. transition: color var(--transition);
  388. }
  389. .step-row.running .step-indicator { border-color: var(--orange); background: var(--orange-soft); }
  390. .step-row.running .step-num { color: var(--orange); }
  391. .step-row.running .step-indicator { animation: pulse 1.5s ease-in-out infinite; }
  392. .step-row.completed .step-indicator { border-color: var(--green); background: var(--green-soft); }
  393. .step-row.completed .step-num { color: var(--green); }
  394. .step-row.failed .step-indicator { border-color: var(--red); background: var(--red-soft); }
  395. .step-row.failed .step-num { color: var(--red); }
  396. .step-row.stopped .step-indicator { border-color: var(--cyan); background: rgba(8, 145, 178, 0.08); }
  397. .step-row.stopped .step-num { color: var(--cyan); }
  398. /* Step Button */
  399. .step-btn {
  400. flex: 1;
  401. padding: 8px 12px;
  402. font-family: inherit;
  403. font-size: 13px;
  404. font-weight: 500;
  405. color: var(--text-primary);
  406. background: var(--bg-surface);
  407. border: 1px solid var(--border);
  408. border-radius: var(--radius-sm);
  409. cursor: pointer;
  410. text-align: left;
  411. transition: all var(--transition);
  412. box-shadow: var(--shadow-sm);
  413. }
  414. .step-btn:hover:not(:disabled) { background: var(--bg-hover); border-color: var(--blue); }
  415. .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; }
  416. .step-row.running .step-btn { border-color: var(--orange); color: var(--orange); }
  417. .step-row.completed .step-btn { border-color: var(--border-subtle); color: var(--text-secondary); opacity: 0.7; }
  418. .step-row.failed .step-btn { border-color: var(--red); color: var(--red); }
  419. .step-row.stopped .step-btn { border-color: var(--cyan); color: var(--cyan); }
  420. .step-status {
  421. width: 20px;
  422. text-align: center;
  423. font-size: 14px;
  424. font-weight: 700;
  425. flex-shrink: 0;
  426. }
  427. .step-row.completed .step-status { color: var(--green); }
  428. .step-row.failed .step-status { color: var(--red); }
  429. .step-row.stopped .step-status { color: var(--cyan); }
  430. /* ============================================================
  431. Log / Console Section
  432. ============================================================ */
  433. .log-header {
  434. display: flex;
  435. justify-content: space-between;
  436. align-items: center;
  437. margin-bottom: 6px;
  438. }
  439. #log-area {
  440. background: var(--bg-surface);
  441. border: 1px solid var(--border);
  442. border-radius: var(--radius-md);
  443. padding: 10px 12px;
  444. height: 220px;
  445. overflow-y: auto;
  446. font-family: 'JetBrains Mono', 'Consolas', monospace;
  447. font-size: 12px;
  448. line-height: 1.7;
  449. color: var(--text-secondary);
  450. box-shadow: var(--shadow-sm);
  451. }
  452. #log-area::-webkit-scrollbar { width: 5px; }
  453. #log-area::-webkit-scrollbar-track { background: transparent; }
  454. #log-area::-webkit-scrollbar-thumb { background: var(--bg-elevated); border-radius: 4px; }
  455. #log-area::-webkit-scrollbar-thumb:hover { background: var(--text-muted); }
  456. .log-line { padding: 2.5px 0; }
  457. .log-line + .log-line { border-top: 1px solid var(--border-subtle); }
  458. .log-time { color: var(--text-muted); }
  459. .log-level { font-weight: 700; margin: 0 2px; }
  460. .log-level-info { color: var(--blue); }
  461. .log-level-ok { color: var(--green); }
  462. .log-level-warn { color: var(--orange); }
  463. .log-level-error { color: var(--red); }
  464. .log-step-tag {
  465. display: inline-block;
  466. padding: 1px 5px;
  467. border-radius: 3px;
  468. font-weight: 700;
  469. font-size: 11px;
  470. margin-right: 3px;
  471. }
  472. .log-step-tag.step-1 { color: var(--cyan); background: rgba(8, 145, 178, 0.08); }
  473. .log-step-tag.step-2 { color: var(--purple); background: rgba(124, 58, 237, 0.08); }
  474. .log-step-tag.step-3 { color: #b45309; background: rgba(180, 83, 9, 0.06); }
  475. [data-theme="dark"] .log-step-tag.step-3 { color: #fbbf24; background: rgba(251, 191, 36, 0.1); }
  476. .log-step-tag.step-4 { color: var(--orange); background: var(--orange-soft); }
  477. .log-step-tag.step-5 { color: var(--green); background: var(--green-soft); }
  478. .log-step-tag.step-6 { color: var(--cyan); background: rgba(8, 145, 178, 0.08); }
  479. .log-step-tag.step-7 { color: var(--orange); background: var(--orange-soft); }
  480. .log-step-tag.step-8 { color: var(--purple); background: rgba(124, 58, 237, 0.08); }
  481. .log-step-tag.step-9 { color: var(--green); background: var(--green-soft); }
  482. .log-msg { color: var(--text-secondary); }
  483. .log-line.log-ok .log-msg { color: var(--green); font-weight: 500; }
  484. .log-line.log-error .log-msg { color: var(--red); font-weight: 500; }
  485. .log-line.log-warn .log-msg { color: var(--orange); }
  486. /* ============================================================
  487. Animations
  488. ============================================================ */
  489. @keyframes fadeIn {
  490. from { opacity: 0; transform: translateY(3px); }
  491. to { opacity: 1; transform: translateY(0); }
  492. }
  493. .log-line { animation: fadeIn 120ms ease-out; }
  494. /* ============================================================
  495. Toast Notifications
  496. ============================================================ */
  497. #toast-container {
  498. position: fixed;
  499. top: 12px;
  500. left: 12px;
  501. right: 12px;
  502. z-index: 1000;
  503. display: flex;
  504. flex-direction: column;
  505. gap: 6px;
  506. pointer-events: none;
  507. }
  508. .toast {
  509. display: flex;
  510. align-items: center;
  511. gap: 8px;
  512. padding: 10px 14px;
  513. border-radius: var(--radius-md);
  514. font-size: 13px;
  515. font-weight: 500;
  516. box-shadow: var(--shadow-md), 0 4px 12px rgba(0,0,0,0.1);
  517. pointer-events: auto;
  518. animation: toastIn 250ms ease-out;
  519. border: 1px solid;
  520. }
  521. .toast.toast-exit {
  522. animation: toastOut 200ms ease-in forwards;
  523. }
  524. .toast-error {
  525. background: var(--red-soft);
  526. border-color: var(--red);
  527. color: var(--red);
  528. }
  529. .toast-warn {
  530. background: var(--orange-soft);
  531. border-color: var(--orange);
  532. color: var(--orange);
  533. }
  534. .toast-success {
  535. background: var(--green-soft);
  536. border-color: var(--green);
  537. color: var(--green);
  538. }
  539. .toast-info {
  540. background: var(--blue-soft);
  541. border-color: var(--blue);
  542. color: var(--blue);
  543. }
  544. .toast svg {
  545. flex-shrink: 0;
  546. }
  547. .toast-msg {
  548. flex: 1;
  549. }
  550. .toast-close {
  551. background: none;
  552. border: none;
  553. color: inherit;
  554. opacity: 0.6;
  555. cursor: pointer;
  556. padding: 2px;
  557. font-size: 16px;
  558. line-height: 1;
  559. }
  560. .toast-close:hover { opacity: 1; }
  561. @keyframes toastIn {
  562. from { opacity: 0; transform: translateY(-10px) scale(0.96); }
  563. to { opacity: 1; transform: translateY(0) scale(1); }
  564. }
  565. @keyframes toastOut {
  566. from { opacity: 1; transform: translateY(0) scale(1); }
  567. to { opacity: 0; transform: translateY(-10px) scale(0.96); }
  568. }
  569. @media (prefers-reduced-motion: reduce) {
  570. *, *::before, *::after {
  571. animation-duration: 0.01ms !important;
  572. transition-duration: 0.01ms !important;
  573. }
  574. }