style.css 33 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577
  1. :root {
  2. /* Light theme variables */
  3. --background-primary-light: #f9f9f9;
  4. --background-secondary-light: #fff;
  5. --background-tertiary-light: #ddd;
  6. --background-accent-light: #4e453fbf;
  7. --background-translucent-light: #FFFFFF80;
  8. --text-primary-light: #333;
  9. --text-secondary-light: #fff;
  10. --border-primary-light: #ddd;
  11. --border-secondary-light: grey;
  12. /* Dark theme variables */
  13. --background-primary-dark: #121212;
  14. --background-secondary-dark: #1e1e1e;
  15. --background-tertiary-dark: #2d2d2d;
  16. --background-accent-dark: #4e453fef;
  17. --background-translucent-dark: rgba(18, 18, 18, 0.5);
  18. --text-primary-dark: #eeeeee;
  19. --text-secondary-dark: #fff;
  20. --border-primary-dark: #404040;
  21. --border-secondary-dark: #666;
  22. /* Add form-specific colors for dark theme */
  23. --input-background-dark: #2d2d2d;
  24. --input-text-dark: #e0e0e0;
  25. --input-border-dark: #404040;
  26. --input-background-light: #ffffff;
  27. --input-text-light: #333333;
  28. --input-border-light: var(--border-primary-light);
  29. /* Common theme variables that don't change */
  30. --theme-primary: #6A9AD9;
  31. --theme-primary-hover: #A0CCF2;
  32. --theme-secondary: #C4B4A0;
  33. --theme-secondary-hover: #4E453F;
  34. --color-info: #6A9AD9CC;
  35. --color-success: #4CAF50CC;
  36. --color-warning: #FF9800CC;
  37. --color-error: #E53935CC;
  38. /* Default to light theme */
  39. --background-primary: var(--background-primary-light);
  40. --background-secondary: var(--background-secondary-light);
  41. --background-tertiary: var(--background-tertiary-light);
  42. --background-accent: var(--background-accent-light);
  43. --background-translucent: var(--background-translucent-light);
  44. --text-primary: var(--text-primary-light);
  45. --text-secondary: var(--text-secondary-light);
  46. --border-primary: var(--border-primary-light);
  47. --border-secondary: var(--border-secondary-light);
  48. --background-info: var(--color-info);
  49. --background-success: var(--color-success);
  50. --background-warning: var(--color-warning);
  51. --background-error: var(--color-error);
  52. --border-accent: var(--theme-primary);
  53. --border-hover: var(--theme-primary-hover);
  54. --shadow-primary: 0 0 20px var(--border-secondary);
  55. --transition-fast: 0.1s ease-in-out;
  56. --transition-medium: 0.250s ease;
  57. --transition-slow: 1s ease;
  58. /* Add to default theme variables */
  59. --input-background: var(--input-background-light);
  60. --input-text: var(--input-text-light);
  61. --input-border: var(--input-border-light);
  62. /* Add dark theme specific colors */
  63. --theme-primary-dark: #585858; /* Main button color in dark mode */
  64. --theme-primary-hover-dark: #686868; /* Button hover color in dark mode */
  65. }
  66. /* Dark theme class */
  67. :root[data-theme="dark"] {
  68. --background-primary: var(--background-primary-dark);
  69. --background-secondary: var(--background-secondary-dark);
  70. --background-tertiary: var(--background-tertiary-dark);
  71. --background-accent: var(--background-accent-dark);
  72. --background-translucent: var(--background-translucent-dark);
  73. --text-primary: var(--text-primary-dark);
  74. --text-secondary: var(--text-secondary-dark);
  75. --border-primary: var(--border-primary-dark);
  76. --border-secondary: var(--border-secondary-dark);
  77. --input-background: var(--input-background-dark);
  78. --input-text: var(--input-text-dark);
  79. --input-border: var(--input-border-dark);
  80. /* Update text colors for common elements */
  81. --theme-secondary-hover: var(--text-primary-dark); /* Updates h1, h2 colors */
  82. /* Override theme colors for dark mode */
  83. --theme-primary: var(--theme-primary-dark);
  84. --theme-primary-hover: var(--theme-primary-hover-dark);
  85. --color-info: #6A9AD9;
  86. --color-success: #4CAF50;
  87. --color-warning: #FF9800;
  88. --color-error: #E53935;
  89. }
  90. :root[data-theme="dark"] {
  91. color: var(--text-primary-dark);
  92. }
  93. /* Fix selection container text in dark mode */
  94. :root[data-theme="dark"] .selection-container {
  95. color: var(--text-primary-dark);
  96. background: var(--theme-primary-dark);
  97. }
  98. /* Ensure custom inputs have proper contrast */
  99. :root[data-theme="dark"] .custom-input {
  100. color: var(--text-primary-dark);
  101. }
  102. /* Add smooth transitions for theme switching */
  103. body * {
  104. transition: background-color var(--transition-fast),
  105. color var(--transition-fast),
  106. border-color var(--transition-fast);
  107. }
  108. @font-face {
  109. font-family: 'Roboto';
  110. src: url('../webfonts/Roboto-VariableFont_wdth,wght.ttf') format('truetype');
  111. font-weight: 100 900; /* Variable range of weights */
  112. font-stretch: 75% 100%; /* Variable width range (optional) */
  113. font-style: normal;
  114. }
  115. /* General
  116. /* General Styling */
  117. body {
  118. margin: 0;
  119. font-family: 'Roboto', sans-serif;
  120. background: var(--background-primary);
  121. display: flex;
  122. flex-direction: column;
  123. position: relative;
  124. }
  125. body * {
  126. box-sizing: border-box;
  127. }
  128. h1, h2 {
  129. margin: 0;
  130. }
  131. header {
  132. position: sticky;
  133. height: 50px;
  134. top: 0;
  135. z-index: 10;
  136. background: var(--background-primary);
  137. display: flex;
  138. justify-content: center;
  139. align-items: center;
  140. }
  141. h1, h2 {
  142. color: var(--theme-secondary-hover);
  143. transition: var(--transition-slow) color;
  144. }
  145. h3 {
  146. margin: 10px 0;
  147. }
  148. /* Inputs */
  149. input, select, textarea {
  150. display: block;
  151. width: 100%;
  152. padding: 10px;
  153. margin-bottom: 10px;
  154. border: 1px solid var(--input-border);
  155. border-radius: 5px;
  156. font-size: 1rem;
  157. background-color: var(--input-background);
  158. color: var(--input-text);
  159. }
  160. /* Custom Input Wrapper */
  161. .custom-input {
  162. display: flex;
  163. align-items: center;
  164. gap: 10px;
  165. font-size: 1rem;
  166. color: var(--text-primary);
  167. cursor: pointer;
  168. flex: 1 1 auto;
  169. }
  170. /* Hide the Native Input */
  171. .custom-input input {
  172. display: none;
  173. }
  174. /* Checkbox and Radio Styles */
  175. .custom-checkbox,
  176. .custom-radio {
  177. display: inline-block;
  178. width: 20px;
  179. height: 20px;
  180. border: 2px solid var(--theme-primary);
  181. background-color: var(--background-secondary);
  182. position: relative;
  183. transition: background-color 0.3s ease, border-color 0.3s ease;
  184. }
  185. /* Checkbox Specific */
  186. .custom-checkbox {
  187. border-radius: 4px;
  188. }
  189. .custom-checkbox::after {
  190. content: '';
  191. width: 10px;
  192. height: 10px;
  193. background-color: var(--theme-primary);
  194. position: absolute;
  195. top: 50%;
  196. left: 50%;
  197. transform: translate(-50%, -50%) scale(0);
  198. transition: transform 0.2s ease-in-out;
  199. }
  200. /* Radio Specific */
  201. .custom-radio {
  202. border-radius: 50%;
  203. }
  204. .custom-radio::after {
  205. content: '';
  206. width: 10px;
  207. height: 10px;
  208. background-color: var(--theme-primary);
  209. position: absolute;
  210. top: 50%;
  211. left: 50%;
  212. transform: translate(-50%, -50%) scale(0);
  213. border-radius: 50%;
  214. transition: transform 0.2s ease-in-out;
  215. }
  216. /* Checked State */
  217. .custom-input input:checked + .custom-checkbox::after,
  218. .custom-input input:checked + .custom-radio::after {
  219. transform: translate(-50%, -50%) scale(1);
  220. }
  221. .custom-input input:checked + .custom-checkbox,
  222. .custom-input input:checked + .custom-radio {
  223. background-color: var(--theme-primary);
  224. border-color: var(--theme-primary-hover);
  225. }
  226. /* Focus State */
  227. .custom-input input:focus-visible + .custom-checkbox,
  228. .custom-input input:focus-visible + .custom-radio {
  229. outline: 2px dashed var(--theme-primary);
  230. outline-offset: 2px;
  231. }
  232. /* Hover Effects */
  233. .custom-checkbox:hover,
  234. .custom-radio:hover {
  235. border-color: var(--theme-primary-hover);
  236. }
  237. /* Scrollable Selection Styles */
  238. .scrollable-selection {
  239. display: flex;
  240. flex-direction: row;
  241. align-items: center;
  242. min-width: 50%;
  243. position: relative;
  244. }
  245. .scroll-arrow {
  246. border: none;
  247. padding: 5px;
  248. width: 100%;
  249. cursor: pointer;
  250. font-size: 1rem;
  251. transition: background-color 0.3s;
  252. }
  253. .scroll-arrow:hover {
  254. background: var(--theme-primary-hover);
  255. }
  256. .selection-container {
  257. overflow: hidden;
  258. height: 50px; /* Adjust based on visible area */
  259. width: 100%;
  260. position: relative;
  261. border: 1px solid var(--border-primary);
  262. background: var(--theme-primary);
  263. color: var(--text-secondary);
  264. border-radius: 5px;
  265. font-weight: bold;
  266. }
  267. .nav-items {
  268. position: absolute;
  269. right: 0;
  270. top: 0;
  271. display: flex;
  272. height: 100%;
  273. flex-direction: column;
  274. justify-content: center;
  275. align-items: center;
  276. }
  277. .selection-container .nav-items > button {
  278. height: 50%;
  279. padding: 0;
  280. width: 100% !important;
  281. }
  282. .selection-container .nav-items > button:hover {
  283. background: var(--text-secondary);
  284. color: var(--theme-primary);
  285. }
  286. .selection-items {
  287. display: flex;
  288. flex-direction: column;
  289. transition: transform 0.3s ease;
  290. padding-right: 30px;
  291. }
  292. .selection-item {
  293. height: 50px;
  294. display: flex;
  295. align-items: center;
  296. justify-content: center;
  297. cursor: pointer;
  298. padding: 5px;
  299. transition: background-color 0.3s ease;
  300. }
  301. .selection-item:hover {
  302. background: var(--theme-primary-hover);
  303. color: var(--text-secondary);
  304. }
  305. /* Buttons */
  306. button {
  307. background: var(--theme-primary);
  308. color: var(--text-secondary);
  309. padding: 10px 15px;
  310. border: none;
  311. font-weight: bold;
  312. border-radius: 5px;
  313. cursor: pointer;
  314. font-size: 1rem;
  315. transition: var(--transition-medium) all;
  316. display: flex;
  317. justify-content: center;
  318. align-items: center;
  319. }
  320. button:not(.no-bg):hover{
  321. background: var(--background-info);
  322. }
  323. button.cancel {
  324. flex-grow: 0;
  325. }
  326. button.cancel:hover {
  327. background: var(--color-error);
  328. }
  329. button.cta:hover {
  330. background: var(--color-success);
  331. }
  332. button.warn:hover {
  333. background: var(--color-warning);
  334. }
  335. button.warning:hover{}
  336. /* App Layout */
  337. .app {
  338. min-height: calc(100vh - 110px);
  339. display: flex;
  340. flex-direction: column;
  341. }
  342. .hidden:not(.sticky) {
  343. display: none !important;
  344. }
  345. /* Tabs */
  346. .tab-content {
  347. display: none;
  348. flex: 1;
  349. overflow-y: auto;
  350. background: var(--background-secondary);
  351. }
  352. .tab-content.active {
  353. display: flex;
  354. position: relative;
  355. flex-direction: column;
  356. }
  357. section {
  358. padding: 15px;
  359. display: flex;
  360. flex-direction: column;
  361. }
  362. section.main {
  363. flex-grow: 1;
  364. }
  365. section.debug {
  366. flex-direction: row;
  367. align-items: flex-end;
  368. justify-content: space-between;
  369. }
  370. section.version {
  371. flex-direction: row;
  372. justify-content: space-between;
  373. flex-wrap: wrap;
  374. }
  375. section#settings-container > section{
  376. padding-left: 0;
  377. padding-right: 0;
  378. }
  379. .version .header {
  380. width: 100%;
  381. }
  382. .version #motor_selection h3 {
  383. width: 100%;
  384. flex-grow: 1;
  385. }
  386. .version #motor_selection {
  387. display: flex;
  388. flex-direction: row;
  389. flex-wrap: wrap;
  390. width: 100%;
  391. }
  392. .version select#manual_motor_type {
  393. margin: 0 20px 0 0;
  394. flex: 1;
  395. }
  396. section.sticky {
  397. position: fixed;
  398. background-color: var(--background-translucent);
  399. backdrop-filter: blur(10px);
  400. bottom: 60px;
  401. border-top: 1px solid var(--border-primary);
  402. box-shadow: var(--shadow-primary);
  403. transform: translateY(0);
  404. transition: var(--transition-medium) transform, var(--transition-medium) height;
  405. visibility: visible;
  406. max-height: 75vh;
  407. width: 100%;
  408. z-index: 10;
  409. }
  410. section.sticky.fullscreen {
  411. position: fixed;
  412. top: 0;
  413. left: 0;
  414. width: 100vw;
  415. max-height: none;
  416. }
  417. section.sticky.hidden {
  418. transform: translateY(100%);
  419. visibility: hidden;
  420. width: 100%;
  421. position: absolute;
  422. overflow:hidden;
  423. height: 0;
  424. padding: 0;
  425. }
  426. section .header {
  427. position: relative;
  428. display: flex;
  429. justify-content: flex-end;
  430. align-items: center;
  431. margin-bottom: 10px;
  432. width: 100%;
  433. }
  434. section .header h2 {
  435. flex-grow: 1;
  436. }
  437. section .header #open-settings-button:hover{
  438. color: var(--theme-primary);
  439. }
  440. /* Close Button Styling */
  441. button.no-bg {
  442. background: none;
  443. border: none;
  444. font-size: 1.5rem;
  445. font-weight: bold;
  446. color: var(--text-primary);
  447. cursor: pointer;
  448. line-height: 1;
  449. padding: 0;
  450. height: 100%;
  451. width: auto;
  452. aspect-ratio: 1 / 1;
  453. display: flex;
  454. justify-content: center;
  455. align-items: center;
  456. margin-left: 10px;
  457. }
  458. .close-button:hover {
  459. color: var(--color-error);
  460. }
  461. .fullscreen-button:hover {
  462. color: var(--color-warning);
  463. }
  464. section .header .add-button {
  465. height: 35px;
  466. width: 35px;
  467. padding: 0;
  468. }
  469. /* Playlist */
  470. .add-to-playlist {
  471. margin-top: 15px;
  472. }
  473. .add-to-playlist button {
  474. margin-bottom: 10px;
  475. }
  476. .add-to-container {
  477. display: flex;
  478. flex-wrap: wrap;
  479. margin-bottom: 20px;
  480. }
  481. #add-to-playlist-container {
  482. display: flex;
  483. flex-wrap: wrap;
  484. }
  485. #add-to-playlist-container h3{
  486. margin: 0 10px 0 0;
  487. align-self: center;
  488. }
  489. #add-to-playlist-container select{
  490. width: auto;
  491. flex-grow: 1;
  492. margin: 0;
  493. }
  494. #add-to-playlist-container .action-buttons {
  495. margin-top: 10px;
  496. }
  497. .playlist-parameters {
  498. display: flex;
  499. flex-direction: column;
  500. gap: 10px;
  501. }
  502. .playlist-parameters .control-group button.small.cancel {
  503. align-self: flex-end;
  504. margin-bottom: 4px;
  505. }
  506. #clear_pattern {
  507. margin: 0;
  508. }
  509. .playlist-parameters .input-group input,
  510. .playlist-parameters .input-group select {
  511. width: 100%; /* Ensure inputs/selects stretch to full width */
  512. padding: 10px;
  513. border: 1px solid var(--border-primary);
  514. border-radius: 5px;
  515. font-size: 1rem;
  516. }
  517. .empty-placeholder {
  518. color: gray;
  519. font-style: italic;
  520. text-align: center;
  521. padding: 10px;
  522. }
  523. /* Style for the filename span */
  524. .filename {
  525. flex-grow: 1; /* Use available space */
  526. font-size: 1rem;
  527. color: var(--text-primary);
  528. margin-right: 10px; /* Space between filename and buttons */
  529. word-wrap: break-word;
  530. width: 100%;
  531. display: flex;
  532. align-items: center;
  533. }
  534. /* File List */
  535. .file-list {
  536. list-style: none;
  537. padding: 0;
  538. margin: 0;
  539. border: 1px solid var(--border-primary);
  540. border-radius: 5px;
  541. overflow-y: auto;
  542. background: var(--background-primary);
  543. flex-grow: 1;
  544. }
  545. .file-list#playlist_items{
  546. margin-bottom: 10px
  547. }
  548. .file-list li {
  549. display: flex;
  550. padding: 10px;
  551. border-bottom: 1px solid var(--border-primary);
  552. cursor: pointer;
  553. transition: background-color var(--transition-medium);
  554. }
  555. .file-list li:hover {
  556. background-color: var(--background-tertiary);
  557. }
  558. .file-list li.selected {
  559. background: var(--theme-primary);
  560. color: var(--text-secondary);
  561. font-weight: bold;
  562. }
  563. .file-list li.selected .filename {
  564. font-weight: bold;
  565. color: var(--text-secondary);
  566. }
  567. .file-list button {
  568. margin-left: 5px;
  569. background: none;
  570. color: black;
  571. font-weight: bold;
  572. height: 40px;
  573. width: 40px;
  574. flex: 0 0 auto;
  575. display: flex;
  576. justify-content: center;
  577. align-items: center;
  578. }
  579. .file-list button:hover:not(:focus) {
  580. background: var(--background-primary);
  581. box-shadow: inset 0 0 4px var(--border-secondary);
  582. }
  583. .file-list button.remove-button {
  584. color: var(--color-error);
  585. }
  586. .title-container {
  587. display: flex;
  588. justify-content: space-between;
  589. align-items: center;
  590. }
  591. .rename-button {
  592. margin-left: 10px;
  593. background: var(--theme-primary-hover);
  594. color: var(--text-secondary);
  595. border: none;
  596. border-radius: 5px;
  597. padding: 5px 10px;
  598. cursor: pointer;
  599. transition: background 0.3s ease;
  600. }
  601. /* Bottom Navigation */
  602. .bottom-nav {
  603. display: flex;
  604. position: sticky;
  605. justify-content: space-around;
  606. bottom: 0;
  607. height: 60px;
  608. width: 100%;
  609. border-top: 1px solid var(--theme-primary);
  610. flex-wrap: wrap;
  611. z-index: 10;
  612. }
  613. .tab-button {
  614. flex: 1;
  615. height: 60px;
  616. padding: 20px 10px;
  617. text-align: center;
  618. font-size: 1rem;
  619. font-weight: bold;
  620. color: var(--text-secondary);
  621. background: none;
  622. border: none;
  623. cursor: pointer;
  624. transition: background 0.3s ease;
  625. background: var(--background-info);
  626. backdrop-filter: blur(2px);
  627. border-radius: 0;
  628. }
  629. .bottom-nav .tab-button.active {
  630. background: rgba(255, 255, 255, 0.75);
  631. color: var(--theme-primary);
  632. }
  633. /* Quick Action Buttons */
  634. .action-buttons {
  635. display: flex;
  636. gap: 10px;
  637. flex-wrap: wrap;
  638. width: 100%;
  639. justify-content: space-between;
  640. }
  641. .action-buttons .scrollable-selection {
  642. width: calc(50% - 10px);
  643. }
  644. .action-buttons.square button {
  645. padding: 5px;
  646. aspect-ratio: 1 / 1;
  647. width: calc(25% - 10px);
  648. flex-direction: column;
  649. justify-content: center;
  650. align-items: center;
  651. }
  652. .action-buttons.square button i{
  653. font-size: 2.5rem;
  654. }
  655. button i + span{
  656. font-size: 1.25rem;
  657. }
  658. button i + span{
  659. margin-left: 5px;
  660. }
  661. .action-buttons.square button i + span{
  662. margin: 3px;
  663. }
  664. button i + span.small {
  665. font-size: 0.75rem;
  666. }
  667. .action-buttons button i + span{
  668. display: block;
  669. }
  670. .action-buttons button.m {
  671. width: calc(50% - 10px);
  672. }
  673. .action-buttons button.l {
  674. width: 100%;
  675. }
  676. .action-buttons button.small {
  677. flex: 0;
  678. flex-basis: calc(25% - 10px);
  679. }
  680. .action-buttons button.cta {
  681. flex-grow: 1;
  682. }
  683. button#debug_button {
  684. width: 40px;
  685. padding: 0;
  686. height: 40px;
  687. background: transparent;
  688. color: var(--text-primary);
  689. font-size: 1.5rem;
  690. margin-left: 40px;
  691. flex: 0 0 auto;
  692. transition: var(--transition-medium) all;
  693. }
  694. button#debug_button:hover,
  695. button#debug_button.active {
  696. box-shadow: inset 0 0 4px var(--border-secondary);
  697. }
  698. #device-tab .dropdown {
  699. width: 50%;
  700. }
  701. #settings-container {
  702. position: absolute;
  703. top: 0;
  704. left: 0;
  705. width: 100%;
  706. height: 100%;
  707. background-color: var(--background-translucent);
  708. backdrop-filter: blur(10px);
  709. z-index: 1000;
  710. overflow-y: auto;
  711. display: none; /* Hidden by default */
  712. flex-direction: column;
  713. }
  714. #settings-container.open{
  715. display: flex;
  716. }
  717. #open-settings-button {
  718. aspect-ratio: auto;
  719. }
  720. #open-settings-button span {
  721. order: -1;
  722. margin-right: 5px;
  723. }
  724. #theme-toggle .fa-sun:not(:hover) {
  725. color: #ffd700;
  726. }
  727. #theme-toggle .fa-moon:not(:hover) {
  728. color: var(--color-info);
  729. }
  730. /* Preview Canvas */
  731. #patternPreviewCanvas {
  732. width: 100%;
  733. max-width: 300px;
  734. aspect-ratio: 1/1;
  735. border: 1px solid var(--border-primary);
  736. background: var(--theme-secondary);
  737. border-radius: 100%;
  738. padding: 15px;
  739. }
  740. #pattern-preview {
  741. display: flex;
  742. flex-direction: column;
  743. align-items: center;
  744. margin-bottom: 20px;
  745. }
  746. #pattern-preview-container.fullscreen #patternPreviewCanvas {
  747. width: initial;
  748. max-width: calc(100vw - 30px);
  749. }
  750. .pre-execution {
  751. width: 100%;
  752. display: flex;
  753. }
  754. .pre-execution h3 {
  755. flex-grow: 1;
  756. margin: 0;
  757. align-content: center;
  758. }
  759. .pre-execution .control-group {
  760. width: auto;
  761. flex-grow: 1;
  762. margin: 0;
  763. }
  764. .pre-execution select {
  765. margin: 0;
  766. }
  767. /* Currently Playing Section Styling */
  768. body.playing .bottom-nav {
  769. height: 200px;
  770. align-items: flex-end;
  771. }
  772. #currently-playing-container {
  773. display: none; /* Hide by default */
  774. align-items: center;
  775. background: var(--background-accent);
  776. color: var(--text-secondary);
  777. transition: all var(--transition-medium);
  778. position: fixed;
  779. bottom: 60px;
  780. left: 0;
  781. right: 0;
  782. z-index: 1000;
  783. }
  784. #currently-playing-container h3,
  785. #currently-playing-container .open-button
  786. {
  787. color: var(--text-secondary);
  788. }
  789. #currently-playing-container .file-info {
  790. display: flex;
  791. flex-direction: column;
  792. align-items: flex-start;
  793. margin-right: auto;
  794. }
  795. #currently-playing-container h3 {
  796. margin: 0;
  797. }
  798. #currently-playing-container h4 {
  799. margin: 0;
  800. color: var(--text-secondary);
  801. opacity: 0.7;
  802. text-align: left;
  803. font-size: 0.9em;
  804. font-weight: normal;
  805. }
  806. body:not(.playing) #currently-playing-container {
  807. display: none;
  808. opacity: 0;
  809. }
  810. #currently-playing-container.open {
  811. max-height: none;
  812. bottom: 60px;
  813. }
  814. body.playing #currently-playing-container:not(.open) {
  815. display: flex;
  816. height: 140px;
  817. overflow: hidden;
  818. flex-direction: row;
  819. flex-wrap: wrap;
  820. bottom: 60px;
  821. opacity: 1;
  822. }
  823. body.playing #currently-playing-container .header{
  824. justify-content: center;
  825. margin-bottom: 0;
  826. }
  827. body.playing #currently-playing-container .header .open-button {
  828. width: 100%;
  829. height: 20px;
  830. padding-top: 10px;
  831. margin: 0;
  832. }
  833. body.playing #currently-playing-preview #currentlyPlayingCanvas {
  834. max-width:100px;
  835. padding: 5px;
  836. }
  837. body.playing #currently-playing-container:not(.open) .header .fullscreen-button,
  838. body.playing #currently-playing-container:not(.open) .header .close-button,
  839. body.playing #currently-playing-container:not(.open) .header h3 {
  840. display: none;
  841. }
  842. body.playing #currently-playing-container:not(.open) #currently-playing-details{
  843. flex-grow: 1;
  844. flex-basis: 50%;
  845. display: flex;
  846. flex-direction: column;
  847. align-items: flex-start;
  848. margin: 0 0 0 10px;
  849. overflow-y: auto;
  850. }
  851. body.playing #currently-playing-container:not(.open) #currently-playing-details .play-buttons {
  852. margin-top: 10px;
  853. align-self: flex-start;
  854. }
  855. body.playing #currently-playing-container:not(.open) .play-buttons button {
  856. width: 50px;
  857. height: 50px;
  858. font-size: 1.5rem;
  859. }
  860. body.playing #currently-playing-container:not(.open) #progress-container {
  861. width: 100%;
  862. }
  863. #currentlyPlayingCanvas {
  864. width: 100%;
  865. max-width: 300px;
  866. aspect-ratio: 1/1;
  867. border: 1px solid var(--border-primary);
  868. background: var(--theme-secondary);
  869. border-radius: 100%;
  870. padding: 10px;
  871. }
  872. #currently-playing-details {
  873. display: flex;
  874. flex-direction: column;
  875. align-items: center;
  876. margin-bottom: 15px;
  877. }
  878. #currently-playing-details p {
  879. margin: 5px 0;
  880. font-size: 1rem;
  881. }
  882. #progress-container {
  883. display: flex;
  884. align-items: center;
  885. justify-content: center;
  886. width: 100%;
  887. flex-wrap: wrap;
  888. }
  889. #play_progress {
  890. width: auto;
  891. flex-grow: 1;
  892. height: 8px;
  893. appearance: none;
  894. background-color: var(--border-primary);
  895. border-radius: 4px;
  896. overflow: hidden;
  897. margin-right: 20px !important; /* Add forced margin to ensure spacing */
  898. }
  899. #play_progress_text {
  900. font-size: 0.9rem;
  901. min-width: 45px; /* Ensure consistent spacing for different percentages */
  902. flex-shrink: 0; /* Prevent text from shrinking */
  903. }
  904. /* Progress Bar Styles */
  905. #play_progress::-webkit-progress-bar {
  906. background-color: var(--border-primary);
  907. }
  908. #play_progress::-webkit-progress-value {
  909. background-color: var(--theme-primary);
  910. transition: width 0.25s ease;
  911. }
  912. /* Add dark mode specific styles */
  913. :root[data-theme="dark"] #play_progress {
  914. background-color: var(--background-tertiary-dark);
  915. }
  916. :root[data-theme="dark"] #play_progress::-webkit-progress-bar {
  917. background-color: var(--background-tertiary-dark);
  918. }
  919. :root[data-theme="dark"] #play_progress::-webkit-progress-value {
  920. background-color: var(--color-success); /* Using success color for better visibility */
  921. }
  922. /* Progress text color in dark mode */
  923. :root[data-theme="dark"] #play_progress_text {
  924. color: var(--text-secondary-dark);
  925. }
  926. .play-buttons {
  927. display: flex;
  928. gap: 20px;
  929. }
  930. .play-buttons button {
  931. width: 75px;
  932. height: 75px;
  933. aspect-ratio: 1/1;
  934. font-size: 3rem;
  935. border: none;
  936. cursor: pointer;
  937. display: flex;
  938. justify-content: center;
  939. }
  940. #pausePlayCurrent {
  941. border-radius: 50%;
  942. }
  943. /* Debug Log */
  944. #status_log {
  945. background: #000;
  946. color: var(--text-secondary);
  947. font-family: monospace;
  948. font-size: 0.9rem;
  949. border-top: 1px solid var(--border-primary);
  950. padding: 10px;
  951. max-height: 200px;
  952. overflow-y: scroll;
  953. display: none;
  954. width: 100%;
  955. }
  956. #status_log p {
  957. margin: 0;
  958. }
  959. .control-group {
  960. display: flex;
  961. margin-bottom: 10px;
  962. flex-wrap: wrap;
  963. width: 100%;
  964. align-items: center;
  965. justify-content: space-between;
  966. gap: 0 10px;
  967. }
  968. .control-group input {
  969. margin-bottom: 0;
  970. }
  971. .control-group h3 {
  972. width: 100%;
  973. }
  974. .control-group .item {
  975. display: flex;
  976. align-items: center;
  977. flex: 1;
  978. }
  979. .control-group .item.cta {
  980. justify-content: flex-end;
  981. }
  982. .control-group .item.column {
  983. flex-direction: column;
  984. text-align: center;
  985. }
  986. .control-group .item label {
  987. padding: 5px;
  988. }
  989. #serial_ports_container > * {
  990. display: inline-block;
  991. }
  992. #serial_ports_container select {
  993. margin: 10px;
  994. flex-basis: 100px;
  995. flex-grow: 0;
  996. }
  997. #serial_ports {
  998. width: auto;
  999. min-width: 200px;
  1000. }
  1001. #serial_status_container {
  1002. margin-bottom: 10px;
  1003. }
  1004. #connection_status_header::before {
  1005. content: '';
  1006. width: 20px;
  1007. height: 20px;
  1008. border-radius: 50%;
  1009. margin-right: 8px;
  1010. background-color: var(--text-primary);
  1011. display: inline-block;
  1012. transition: var(--transition-slow) background-color;
  1013. }
  1014. #connection_status_header.connected::before {
  1015. background-color: var(--color-success);
  1016. }
  1017. #connection_status_header.not-connected::before {
  1018. background-color: var(--color-error);
  1019. }
  1020. #serial_ports_buttons {
  1021. display: flex;
  1022. gap: 10px;
  1023. }
  1024. .status.connected {
  1025. color: var(--color-success);
  1026. font-weight: bold;
  1027. }
  1028. .status.not-connected {
  1029. color: var(--color-error);
  1030. font-weight: bold;
  1031. }
  1032. /* Speed Control Section */
  1033. .speed-control {
  1034. display: flex;
  1035. }
  1036. .speed-control label {
  1037. font-weight: bold;
  1038. font-size: 1rem;
  1039. color: var(--text-primary);
  1040. flex-shrink: 0;
  1041. }
  1042. .speed-control input[type="number"] {
  1043. width: 100px; /* Consistent input width */
  1044. padding: 8px;
  1045. font-size: 1rem;
  1046. border: 1px solid var(--border-primary);
  1047. border-radius: 5px;
  1048. outline: none;
  1049. transition: all 0.3s ease;
  1050. }
  1051. input[type="number"]:focus {
  1052. border-color: var(--theme-primary);
  1053. box-shadow: 0 0 4px var(--background-info);
  1054. }
  1055. #speed_status {
  1056. margin-top: 10px;
  1057. font-size: 0.9rem;
  1058. }
  1059. #serial_ports_container > * {
  1060. display: inline-block;
  1061. }
  1062. #serial_ports_container select {
  1063. margin: 10px;
  1064. flex-basis: 100px;
  1065. flex-grow: 0;
  1066. }
  1067. #serial_ports {
  1068. width: auto;
  1069. min-width: 200px;
  1070. }
  1071. #wled-container {
  1072. flex: 1 1 auto;
  1073. display: flex;
  1074. flex-direction: column;
  1075. }
  1076. #wled_ip {
  1077. margin-right: 10px;
  1078. }
  1079. #wled-frame {
  1080. flex: 1 1 auto;
  1081. width: 100%;
  1082. border: none;
  1083. }
  1084. /* Notification Styles */
  1085. .notification {
  1086. display: flex;
  1087. position: absolute;
  1088. top: 0;
  1089. left: 0;
  1090. font-weight: bold;
  1091. z-index: 1000;
  1092. color: var(--text-secondary);
  1093. width: 100%;
  1094. height: 100%;
  1095. justify-content: center;
  1096. align-items: center;
  1097. backdrop-filter: blur(2px);
  1098. opacity: 0;
  1099. transition: opacity var(--transition-medium);
  1100. cursor: pointer;
  1101. }
  1102. .notification.show {
  1103. opacity: 1; /* Fully visible */
  1104. }
  1105. .notification .close-button {
  1106. color: var(--text-secondary);
  1107. font-size: 1.5rem;
  1108. top: 0;
  1109. right: 0;
  1110. position: absolute;
  1111. }
  1112. /* Notification Types */
  1113. .notification.success { background-color: var(--background-success); }
  1114. .notification.warning { background-color: var(--background-warning); }
  1115. .notification.error { background-color: var(--background-error); }
  1116. .notification.info { background-color: var(--background-info); }
  1117. .footer {
  1118. align-items: center;
  1119. display: flex;
  1120. flex-wrap: wrap;
  1121. justify-content: space-between;
  1122. margin-bottom: 20px;
  1123. width: 100%;
  1124. }
  1125. #github {
  1126. align-content: center;
  1127. display: flex;
  1128. font-size: 0.8em;
  1129. }
  1130. #github img {
  1131. margin: 0 5px
  1132. }
  1133. /* Responsive Design */
  1134. @media (max-width: 1023px) {
  1135. body {
  1136. font-size: 0.9rem;
  1137. }
  1138. .tab-button {
  1139. font-size: 0.9rem;
  1140. }
  1141. .footer {
  1142. display: none;
  1143. }
  1144. button.cancel {
  1145. background: var(--color-error);
  1146. }
  1147. button.cta {
  1148. background: var(--color-success);
  1149. }
  1150. button.warn {
  1151. background: var(--color-warning);
  1152. }
  1153. button.cancel:hover,
  1154. button.warn:hover,
  1155. button.cta:hover {
  1156. background: var(--theme-primary);
  1157. }
  1158. body.playing section.sticky{
  1159. bottom: 200px;
  1160. }
  1161. }
  1162. /* On larger screens, display all tabs in a 3-column grid */
  1163. @media screen and (min-width: 1024px) {
  1164. .app {
  1165. display: grid;
  1166. grid-template-columns: repeat(3, 1fr);
  1167. gap: 0 16px;
  1168. height: calc(100vh - 60px);
  1169. padding: 0 15px;
  1170. }
  1171. #status_log {
  1172. grid-column: span 3;
  1173. align-self: flex-end;
  1174. height: 100%;
  1175. }
  1176. section.sticky {
  1177. position: sticky;
  1178. bottom: 0;
  1179. }
  1180. .bottom-nav .tab-button {
  1181. display: none;
  1182. }
  1183. .bottom-nav {
  1184. border-top: 0;
  1185. }
  1186. /* Show all tabs in grid layout */
  1187. .tab-content {
  1188. display: flex !important; /* Always display tab-content */
  1189. flex-direction: column;
  1190. border: 1px solid var(--border-primary);
  1191. background-color: var(--background-primary);
  1192. border-radius: 8px;
  1193. overflow-y: auto;
  1194. overflow-x: hidden;
  1195. position: relative;
  1196. }
  1197. body.playing .app {
  1198. padding: 15px 0 150px 15px;
  1199. margin-bottom: -140px;
  1200. }
  1201. body.playing .bottom-nav {
  1202. height: 140px;
  1203. }
  1204. body:not(.playing) .bottom-nav {
  1205. display: none;
  1206. }
  1207. body.playing #currently-playing-container.open {
  1208. position: absolute;
  1209. bottom: 0;
  1210. }
  1211. body.playing #currently-playing-container:not(.open) #currently-playing-details {
  1212. flex-direction: row;
  1213. align-items: center;
  1214. }
  1215. #currently-playing-container h3 {
  1216. flex-grow: 1;
  1217. }
  1218. body.playing #currently-playing-container.open .header {
  1219. display: none;
  1220. }
  1221. #open-settings-button span {
  1222. opacity: 0;
  1223. transition: var(--transition-medium) opacity;
  1224. }
  1225. #open-settings-button:hover span {
  1226. opacity: 1;
  1227. }
  1228. }
  1229. /* Add specific styles for dark mode inputs */
  1230. :root[data-theme="dark"] input::placeholder,
  1231. :root[data-theme="dark"] select::placeholder,
  1232. :root[data-theme="dark"] textarea::placeholder {
  1233. color: #999;
  1234. }
  1235. /* Style the file list items in dark mode */
  1236. :root[data-theme="dark"] .file-list {
  1237. background: var(--background-secondary-dark);
  1238. }
  1239. :root[data-theme="dark"] .file-list li {
  1240. color: var(--text-primary-dark);
  1241. }
  1242. :root[data-theme="dark"] .file-list .filename {
  1243. color: var(--text-primary-dark);
  1244. }
  1245. :root[data-theme="dark"] .file-list li:hover {
  1246. background-color: var(--background-tertiary-dark);
  1247. }
  1248. :root[data-theme="dark"] .file-list button {
  1249. color: var(--text-primary-dark);
  1250. }
  1251. /* Update status log colors for dark mode */
  1252. :root[data-theme="dark"] #status_log {
  1253. background: #000000;
  1254. border-color: var(--border-primary-dark);
  1255. }
  1256. /* Update notification backgrounds for dark mode */
  1257. :root[data-theme="dark"] .notification {
  1258. /* Remove this line to keep original colors */
  1259. /* background-color: var(--background-secondary-dark); */
  1260. }
  1261. /* Notification Types - Update opacity for better visibility in dark mode */
  1262. :root[data-theme="dark"] .notification.success { background-color: var(--color-success); }
  1263. :root[data-theme="dark"] .notification.warning { background-color: var(--color-warning); }
  1264. :root[data-theme="dark"] .notification.error { background-color: var(--color-error); }
  1265. :root[data-theme="dark"] .notification.info { background-color: var(--color-info); }
  1266. /* Make notification text white for better contrast */
  1267. :root[data-theme="dark"] .notification {
  1268. color: white;
  1269. }
  1270. /* Update button colors for better visibility in dark mode */
  1271. :root[data-theme="dark"] button.no-bg:not(:hover) {
  1272. color: var(--text-primary-dark);
  1273. }
  1274. :root[data-theme="dark"] .file-list button:hover:not(:focus) {
  1275. background: var(--background-tertiary-dark);
  1276. box-shadow: inset 0 0 4px var(--border-secondary-dark);
  1277. }
  1278. /* Update custom checkbox/radio colors in dark mode */
  1279. :root[data-theme="dark"] .custom-checkbox,
  1280. :root[data-theme="dark"] .custom-radio {
  1281. border-color: var(--theme-primary-dark);
  1282. }
  1283. :root[data-theme="dark"] .custom-checkbox::after,
  1284. :root[data-theme="dark"] .custom-radio::after {
  1285. background-color: var(--theme-primary-dark);
  1286. }
  1287. :root[data-theme="dark"] .custom-input input:checked + .custom-checkbox,
  1288. :root[data-theme="dark"] .custom-input input:checked + .custom-radio {
  1289. background-color: var(--theme-primary-dark);
  1290. border-color: var(--theme-primary-hover-dark);
  1291. }
  1292. /* Update scroll arrow hover in dark mode */
  1293. :root[data-theme="dark"] .scroll-arrow:hover {
  1294. background: var(--theme-primary-hover-dark);
  1295. }
  1296. /* Update tab button hover in dark mode */
  1297. :root[data-theme="dark"] .tab-button {
  1298. background: var(--color-success);
  1299. color: var(--text-secondary);
  1300. }
  1301. :root[data-theme="dark"] .tab-button:hover {
  1302. background: var(--color-success);
  1303. }
  1304. :root[data-theme="dark"] .tab-button.active {
  1305. background: var(--background-secondary);
  1306. color: var(--text-secondary);
  1307. }
  1308. /* Override specific button hover states in dark mode */
  1309. :root[data-theme="dark"] button.cancel:hover {
  1310. background: var(--color-error) !important;
  1311. }
  1312. :root[data-theme="dark"] button.cta:hover {
  1313. background: var(--color-success) !important;
  1314. }
  1315. :root[data-theme="dark"] button.warn:hover {
  1316. background: var(--color-warning) !important;
  1317. }
  1318. /* Update selection container button hover in dark mode */
  1319. :root[data-theme="dark"] .selection-container .nav-items > button:hover {
  1320. background: var(--text-secondary);
  1321. color: var(--theme-primary-dark);
  1322. }