sidepanel.css 17 KB

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