sidepanel.css 19 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772
  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. padding-inline: 10px;
  292. }
  293. #btn-save-settings {
  294. min-width: 58px;
  295. padding-inline: 10px;
  296. }
  297. .data-select {
  298. flex: 1;
  299. padding: 7px 10px;
  300. background: var(--bg-base);
  301. border: 1px solid var(--border);
  302. border-radius: var(--radius-sm);
  303. color: var(--text-primary);
  304. font-family: inherit;
  305. font-size: 13px;
  306. outline: none;
  307. cursor: pointer;
  308. transition: border-color var(--transition);
  309. min-width: 0;
  310. }
  311. .data-select:focus { border-color: var(--blue); box-shadow: 0 0 0 3px var(--blue-soft); }
  312. [data-theme="dark"] .data-select { color-scheme: dark; }
  313. .data-check {
  314. display: flex;
  315. align-items: flex-start;
  316. gap: 8px;
  317. flex: 1;
  318. min-width: 0;
  319. font-size: 12px;
  320. line-height: 1.5;
  321. color: var(--text-secondary);
  322. cursor: pointer;
  323. }
  324. .data-check input[type="checkbox"] {
  325. margin-top: 2px;
  326. accent-color: var(--blue);
  327. cursor: pointer;
  328. flex-shrink: 0;
  329. }
  330. /* Status Bar */
  331. .status-bar {
  332. display: flex;
  333. align-items: center;
  334. gap: 8px;
  335. margin-top: 8px;
  336. padding: 8px 12px;
  337. background: var(--bg-surface);
  338. border: 1px solid var(--border);
  339. border-radius: var(--radius-sm);
  340. font-size: 13px;
  341. font-weight: 500;
  342. color: var(--text-secondary);
  343. box-shadow: var(--shadow-sm);
  344. }
  345. .status-dot {
  346. width: 8px;
  347. height: 8px;
  348. border-radius: 50%;
  349. background: var(--text-muted);
  350. flex-shrink: 0;
  351. transition: background var(--transition);
  352. }
  353. .status-bar.running .status-dot {
  354. background: var(--orange);
  355. animation: pulse 1.5s ease-in-out infinite;
  356. }
  357. .status-bar.running { color: var(--orange); }
  358. .status-bar.completed .status-dot { background: var(--green); }
  359. .status-bar.completed { color: var(--green); }
  360. .status-bar.failed .status-dot { background: var(--red); }
  361. .status-bar.failed { color: var(--red); }
  362. .status-bar.stopped .status-dot { background: var(--cyan); }
  363. .status-bar.stopped { color: var(--cyan); }
  364. .status-bar.paused .status-dot {
  365. background: var(--orange);
  366. animation: pulse 1.5s ease-in-out infinite;
  367. }
  368. .status-bar.paused { color: var(--orange); }
  369. @keyframes pulse {
  370. 0%, 100% { opacity: 1; transform: scale(1); }
  371. 50% { opacity: 0.4; transform: scale(0.85); }
  372. }
  373. /* Auto Continue Bar */
  374. .auto-continue-bar {
  375. margin-top: 8px;
  376. padding: 8px 10px;
  377. background: var(--orange-soft);
  378. border: 1px solid rgba(234, 88, 12, 0.2);
  379. border-radius: var(--radius-sm);
  380. display: flex;
  381. align-items: center;
  382. gap: 8px;
  383. }
  384. .auto-continue-bar svg { color: var(--orange); flex-shrink: 0; }
  385. .auto-hint { font-size: 13px; color: var(--orange); flex: 1; font-weight: 500; }
  386. /* ============================================================
  387. Steps Section
  388. ============================================================ */
  389. #steps-section { margin-bottom: 14px; }
  390. .steps-header {
  391. display: flex;
  392. justify-content: space-between;
  393. align-items: center;
  394. margin-bottom: 8px;
  395. }
  396. .section-label {
  397. font-size: 11px;
  398. font-weight: 700;
  399. color: var(--text-muted);
  400. text-transform: uppercase;
  401. letter-spacing: 0.08em;
  402. }
  403. .steps-progress {
  404. font-family: 'JetBrains Mono', monospace;
  405. font-size: 11px;
  406. font-weight: 600;
  407. color: var(--text-muted);
  408. background: var(--bg-surface);
  409. padding: 2px 8px;
  410. border-radius: 10px;
  411. border: 1px solid var(--border);
  412. }
  413. .steps-list {
  414. display: flex;
  415. flex-direction: column;
  416. gap: 5px;
  417. }
  418. .step-row {
  419. display: flex;
  420. align-items: center;
  421. gap: 8px;
  422. padding: 1px 0;
  423. transition: opacity var(--transition);
  424. }
  425. /* Step Number Indicator */
  426. .step-indicator {
  427. width: 26px;
  428. height: 26px;
  429. border-radius: 50%;
  430. background: var(--bg-surface);
  431. border: 1.5px solid var(--border);
  432. display: flex;
  433. align-items: center;
  434. justify-content: center;
  435. flex-shrink: 0;
  436. transition: all var(--transition);
  437. }
  438. .step-num {
  439. font-size: 11px;
  440. font-weight: 700;
  441. color: var(--text-muted);
  442. transition: color var(--transition);
  443. }
  444. .step-row.running .step-indicator { border-color: var(--orange); background: var(--orange-soft); }
  445. .step-row.running .step-num { color: var(--orange); }
  446. .step-row.running .step-indicator { animation: pulse 1.5s ease-in-out infinite; }
  447. .step-row.completed .step-indicator { border-color: var(--green); background: var(--green-soft); }
  448. .step-row.completed .step-num { color: var(--green); }
  449. .step-row.failed .step-indicator { border-color: var(--red); background: var(--red-soft); }
  450. .step-row.failed .step-num { color: var(--red); }
  451. .step-row.stopped .step-indicator { border-color: var(--cyan); background: rgba(8, 145, 178, 0.08); }
  452. .step-row.stopped .step-num { color: var(--cyan); }
  453. .step-row.manual_completed .step-indicator { border-color: var(--blue); background: var(--blue-soft); }
  454. .step-row.manual_completed .step-num { color: var(--blue); }
  455. /* Step Button */
  456. .step-btn {
  457. flex: 1;
  458. padding: 8px 12px;
  459. font-family: inherit;
  460. font-size: 13px;
  461. font-weight: 500;
  462. color: var(--text-primary);
  463. background: var(--bg-surface);
  464. border: 1px solid var(--border);
  465. border-radius: var(--radius-sm);
  466. cursor: pointer;
  467. text-align: left;
  468. transition: all var(--transition);
  469. box-shadow: var(--shadow-sm);
  470. }
  471. .step-btn:hover:not(:disabled) { background: var(--bg-hover); border-color: var(--blue); }
  472. .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; }
  473. .step-row.running .step-btn { border-color: var(--orange); color: var(--orange); }
  474. .step-row.completed .step-btn { border-color: var(--border-subtle); color: var(--text-secondary); opacity: 0.7; }
  475. .step-row.failed .step-btn { border-color: var(--red); color: var(--red); }
  476. .step-row.stopped .step-btn { border-color: var(--cyan); color: var(--cyan); }
  477. .step-row.manual_completed .step-btn { border-color: rgba(37, 99, 235, 0.25); color: var(--blue); opacity: 0.82; }
  478. .step-actions {
  479. display: flex;
  480. align-items: center;
  481. justify-content: flex-end;
  482. gap: 6px;
  483. width: 48px;
  484. flex-shrink: 0;
  485. }
  486. .step-manual-btn {
  487. width: 20px;
  488. height: 20px;
  489. padding: 0;
  490. display: inline-flex;
  491. align-items: center;
  492. justify-content: center;
  493. border: 1px solid var(--border);
  494. border-radius: 999px;
  495. background: var(--bg-surface);
  496. color: var(--text-muted);
  497. cursor: pointer;
  498. transition: all var(--transition);
  499. }
  500. .step-manual-btn:hover:not(:disabled) {
  501. border-color: var(--blue);
  502. color: var(--blue);
  503. background: var(--blue-soft);
  504. }
  505. .step-manual-btn:disabled {
  506. color: var(--text-muted);
  507. border-color: var(--border-subtle);
  508. background: var(--bg-base);
  509. cursor: not-allowed;
  510. opacity: 0.5;
  511. }
  512. .step-status {
  513. width: 20px;
  514. text-align: center;
  515. font-size: 14px;
  516. font-weight: 700;
  517. flex-shrink: 0;
  518. }
  519. .step-row.completed .step-status { color: var(--green); }
  520. .step-row.failed .step-status { color: var(--red); }
  521. .step-row.stopped .step-status { color: var(--cyan); }
  522. .step-row.manual_completed .step-status { color: var(--blue); }
  523. /* ============================================================
  524. Log / Console Section
  525. ============================================================ */
  526. .log-header {
  527. display: flex;
  528. justify-content: space-between;
  529. align-items: center;
  530. margin-bottom: 6px;
  531. }
  532. #log-area {
  533. background: var(--bg-surface);
  534. border: 1px solid var(--border);
  535. border-radius: var(--radius-md);
  536. padding: 10px 12px;
  537. height: 220px;
  538. overflow-y: auto;
  539. font-family: 'JetBrains Mono', 'Consolas', monospace;
  540. font-size: 12px;
  541. line-height: 1.7;
  542. color: var(--text-secondary);
  543. box-shadow: var(--shadow-sm);
  544. }
  545. #log-area::-webkit-scrollbar { width: 5px; }
  546. #log-area::-webkit-scrollbar-track { background: transparent; }
  547. #log-area::-webkit-scrollbar-thumb { background: var(--bg-elevated); border-radius: 4px; }
  548. #log-area::-webkit-scrollbar-thumb:hover { background: var(--text-muted); }
  549. .log-line { padding: 2.5px 0; }
  550. .log-line + .log-line { border-top: 1px solid var(--border-subtle); }
  551. .log-time { color: var(--text-muted); }
  552. .log-level { font-weight: 700; margin: 0 2px; }
  553. .log-level-info { color: var(--blue); }
  554. .log-level-ok { color: var(--green); }
  555. .log-level-warn { color: var(--orange); }
  556. .log-level-error { color: var(--red); }
  557. .log-step-tag {
  558. display: inline-block;
  559. padding: 1px 5px;
  560. border-radius: 3px;
  561. font-weight: 700;
  562. font-size: 11px;
  563. margin-right: 3px;
  564. }
  565. .log-step-tag.step-1 { color: var(--cyan); background: rgba(8, 145, 178, 0.08); }
  566. .log-step-tag.step-2 { color: var(--purple); background: rgba(124, 58, 237, 0.08); }
  567. .log-step-tag.step-3 { color: #b45309; background: rgba(180, 83, 9, 0.06); }
  568. [data-theme="dark"] .log-step-tag.step-3 { color: #fbbf24; background: rgba(251, 191, 36, 0.1); }
  569. .log-step-tag.step-4 { color: var(--orange); background: var(--orange-soft); }
  570. .log-step-tag.step-5 { color: var(--green); background: var(--green-soft); }
  571. .log-step-tag.step-6 { color: var(--cyan); background: rgba(8, 145, 178, 0.08); }
  572. .log-step-tag.step-7 { color: var(--orange); background: var(--orange-soft); }
  573. .log-step-tag.step-8 { color: var(--purple); background: rgba(124, 58, 237, 0.08); }
  574. .log-step-tag.step-9 { color: var(--green); background: var(--green-soft); }
  575. .log-msg { color: var(--text-secondary); }
  576. .log-line.log-ok .log-msg { color: var(--green); font-weight: 500; }
  577. .log-line.log-error .log-msg { color: var(--red); font-weight: 500; }
  578. .log-line.log-warn .log-msg { color: var(--orange); }
  579. /* ============================================================
  580. Animations
  581. ============================================================ */
  582. @keyframes fadeIn {
  583. from { opacity: 0; transform: translateY(3px); }
  584. to { opacity: 1; transform: translateY(0); }
  585. }
  586. .log-line { animation: fadeIn 120ms ease-out; }
  587. /* ============================================================
  588. Toast Notifications
  589. ============================================================ */
  590. #toast-container {
  591. position: fixed;
  592. top: 12px;
  593. left: 12px;
  594. right: 12px;
  595. z-index: 1000;
  596. display: flex;
  597. flex-direction: column;
  598. gap: 6px;
  599. pointer-events: none;
  600. }
  601. .toast {
  602. display: flex;
  603. align-items: center;
  604. gap: 8px;
  605. padding: 10px 14px;
  606. border-radius: var(--radius-md);
  607. font-size: 13px;
  608. font-weight: 500;
  609. box-shadow: var(--shadow-md), 0 4px 12px rgba(0,0,0,0.1);
  610. pointer-events: auto;
  611. animation: toastIn 250ms ease-out;
  612. border: 1px solid;
  613. }
  614. .toast.toast-exit {
  615. animation: toastOut 200ms ease-in forwards;
  616. }
  617. .toast-error {
  618. background: var(--red-soft);
  619. border-color: var(--red);
  620. color: var(--red);
  621. }
  622. .toast-warn {
  623. background: var(--orange-soft);
  624. border-color: var(--orange);
  625. color: var(--orange);
  626. }
  627. .toast-success {
  628. background: var(--green-soft);
  629. border-color: var(--green);
  630. color: var(--green);
  631. }
  632. .toast-info {
  633. background: var(--blue-soft);
  634. border-color: var(--blue);
  635. color: var(--blue);
  636. }
  637. .toast svg {
  638. flex-shrink: 0;
  639. }
  640. .toast-msg {
  641. flex: 1;
  642. }
  643. .toast-close {
  644. background: none;
  645. border: none;
  646. color: inherit;
  647. opacity: 0.6;
  648. cursor: pointer;
  649. padding: 2px;
  650. font-size: 16px;
  651. line-height: 1;
  652. }
  653. .toast-close:hover { opacity: 1; }
  654. @keyframes toastIn {
  655. from { opacity: 0; transform: translateY(-10px) scale(0.96); }
  656. to { opacity: 1; transform: translateY(0) scale(1); }
  657. }
  658. @keyframes toastOut {
  659. from { opacity: 1; transform: translateY(0) scale(1); }
  660. to { opacity: 0; transform: translateY(-10px) scale(0.96); }
  661. }
  662. @media (prefers-reduced-motion: reduce) {
  663. *, *::before, *::after {
  664. animation-duration: 0.01ms !important;
  665. transition-duration: 0.01ms !important;
  666. }
  667. }