index.css 7.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367
  1. @import "tailwindcss";
  2. @import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');
  3. /* Enable class-based dark mode for Tailwind v4 */
  4. @custom-variant dark (&:where(.dark, .dark *));
  5. @theme {
  6. /* Accent colors - use CSS variables for theming */
  7. --color-bambu-green: var(--accent);
  8. --color-bambu-green-light: var(--accent-light);
  9. --color-bambu-green-dark: var(--accent-dark);
  10. /* Theme-aware colors via CSS variables */
  11. --color-bambu-dark: var(--bg-primary);
  12. --color-bambu-dark-secondary: var(--bg-secondary);
  13. --color-bambu-dark-tertiary: var(--bg-tertiary);
  14. --color-bambu-gray: var(--text-muted);
  15. --color-bambu-gray-light: var(--text-secondary);
  16. --color-bambu-gray-dark: var(--text-tertiary);
  17. }
  18. /* ============================================
  19. BASE DEFAULTS
  20. ============================================ */
  21. :root {
  22. /* Default accent color (green) */
  23. --accent: #00ae42;
  24. --accent-light: #00c64d;
  25. --accent-dark: #009438;
  26. /* Default light mode background (neutral) */
  27. --bg-primary: #f5f5f5;
  28. --bg-secondary: #ffffff;
  29. --bg-tertiary: #e5e5e5;
  30. --text-primary: #1a1a1a;
  31. --text-secondary: #4a4a4a;
  32. --text-muted: #6b6b6b;
  33. --text-tertiary: #808080;
  34. --border-color: #d4d4d4;
  35. /* Default style (classic) */
  36. --card-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  37. --glow-color: transparent;
  38. font-family: 'Inter', system-ui, sans-serif;
  39. line-height: 1.5;
  40. font-weight: 400;
  41. font-synthesis: none;
  42. text-rendering: optimizeLegibility;
  43. -webkit-font-smoothing: antialiased;
  44. -moz-osx-font-smoothing: grayscale;
  45. }
  46. /* Dark mode base */
  47. .dark {
  48. --bg-primary: #1a1a1a;
  49. --bg-secondary: #2d2d2d;
  50. --bg-tertiary: #3d3d3d;
  51. --text-primary: #ffffff;
  52. --text-secondary: #a0a0a0;
  53. --text-muted: #808080;
  54. --text-tertiary: #4a4a4a;
  55. --border-color: #3d3d3d;
  56. --card-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
  57. }
  58. /* ============================================
  59. LAYER 1: BACKGROUND PALETTES
  60. ============================================ */
  61. /* Light mode backgrounds */
  62. .bg-neutral {
  63. /* Default - already set in :root */
  64. }
  65. .bg-warm {
  66. --bg-primary: #faf8f5;
  67. --bg-secondary: #fffefa;
  68. --bg-tertiary: #e8e4dd;
  69. --text-primary: #2d2a26;
  70. --text-secondary: #5c5750;
  71. --text-muted: #7a756c;
  72. --text-tertiary: #9a9590;
  73. --border-color: #d8d4cc;
  74. }
  75. .bg-cool {
  76. --bg-primary: #f0f4f8;
  77. --bg-secondary: #ffffff;
  78. --bg-tertiary: #dce4ec;
  79. --text-primary: #1a2530;
  80. --text-secondary: #4a5568;
  81. --text-muted: #6b7a8a;
  82. --text-tertiary: #8a9aaa;
  83. --border-color: #c8d4e0;
  84. }
  85. /* Dark mode backgrounds */
  86. .dark.bg-neutral {
  87. --bg-primary: #1a1a1a;
  88. --bg-secondary: #2d2d2d;
  89. --bg-tertiary: #3d3d3d;
  90. --text-primary: #ffffff;
  91. --text-secondary: #a0a0a0;
  92. --text-muted: #808080;
  93. --text-tertiary: #4a4a4a;
  94. --border-color: #3d3d3d;
  95. }
  96. .dark.bg-warm {
  97. --bg-primary: #1c1a18;
  98. --bg-secondary: #2e2a26;
  99. --bg-tertiary: #3e3a36;
  100. --text-primary: #f5f0ea;
  101. --text-secondary: #b0a898;
  102. --text-muted: #8a8278;
  103. --text-tertiary: #5a5248;
  104. --border-color: #3e3a36;
  105. }
  106. .dark.bg-cool {
  107. --bg-primary: #181c20;
  108. --bg-secondary: #262c32;
  109. --bg-tertiary: #363e46;
  110. --text-primary: #f0f4f8;
  111. --text-secondary: #98a8b8;
  112. --text-muted: #788898;
  113. --text-tertiary: #4a5a6a;
  114. --border-color: #363e46;
  115. }
  116. .dark.bg-oled {
  117. --bg-primary: #000000;
  118. --bg-secondary: #141414;
  119. --bg-tertiary: #1f1f1f;
  120. --text-primary: #ffffff;
  121. --text-secondary: #a0a0a0;
  122. --text-muted: #707070;
  123. --text-tertiary: #404040;
  124. --border-color: #2a2a2a;
  125. }
  126. .dark.bg-slate {
  127. --bg-primary: #0f172a;
  128. --bg-secondary: #1e293b;
  129. --bg-tertiary: #334155;
  130. --text-primary: #f1f5f9;
  131. --text-secondary: #94a3b8;
  132. --text-muted: #64748b;
  133. --text-tertiary: #475569;
  134. --border-color: #334155;
  135. }
  136. .dark.bg-forest {
  137. --bg-primary: #121a16;
  138. --bg-secondary: #1c2a22;
  139. --bg-tertiary: #2a3d30;
  140. --text-primary: #e8f5ec;
  141. --text-secondary: #8aa894;
  142. --text-muted: #6a8874;
  143. --text-tertiary: #4a6854;
  144. --border-color: #2a3d30;
  145. }
  146. /* ============================================
  147. LAYER 2: STYLE EFFECTS
  148. ============================================ */
  149. /* Classic - default, clean minimal shadows */
  150. .style-classic {
  151. /* Uses default shadows from :root and .dark */
  152. }
  153. /* Glow - accent-colored glow effects on cards */
  154. .style-glow {
  155. --card-shadow: 0 2px 8px rgba(0, 0, 0, 0.08), 0 0 25px color-mix(in srgb, var(--accent) 12%, transparent);
  156. }
  157. .dark.style-glow {
  158. --card-shadow: 0 4px 20px rgba(0, 0, 0, 0.5), 0 0 40px color-mix(in srgb, var(--accent) 15%, transparent);
  159. }
  160. /* Vibrant - dramatic deep shadows, more contrast */
  161. .style-vibrant {
  162. --card-shadow: 0 8px 30px rgba(0, 0, 0, 0.15), 0 2px 8px rgba(0, 0, 0, 0.1);
  163. }
  164. .dark.style-vibrant {
  165. --card-shadow: 0 10px 40px rgba(0, 0, 0, 0.6), 0 4px 12px rgba(0, 0, 0, 0.4);
  166. }
  167. /* ============================================
  168. LAYER 3: ACCENT COLORS
  169. ============================================ */
  170. .accent-green {
  171. --accent: #00ae42;
  172. --accent-light: #00c64d;
  173. --accent-dark: #009438;
  174. }
  175. .accent-teal {
  176. --accent: #14b8a6;
  177. --accent-light: #2dd4bf;
  178. --accent-dark: #0d9488;
  179. }
  180. .accent-blue {
  181. --accent: #3b82f6;
  182. --accent-light: #60a5fa;
  183. --accent-dark: #2563eb;
  184. }
  185. .accent-orange {
  186. --accent: #f97316;
  187. --accent-light: #fb923c;
  188. --accent-dark: #ea580c;
  189. }
  190. .accent-purple {
  191. --accent: #8b5cf6;
  192. --accent-light: #a78bfa;
  193. --accent-dark: #7c3aed;
  194. }
  195. .accent-red {
  196. --accent: #ef4444;
  197. --accent-light: #f87171;
  198. --accent-dark: #dc2626;
  199. }
  200. body {
  201. background-color: var(--bg-primary);
  202. color: var(--text-primary);
  203. margin: 0;
  204. min-height: 100vh;
  205. transition: background-color 0.2s ease, color 0.2s ease;
  206. }
  207. #root {
  208. min-height: 100vh;
  209. }
  210. /* Override text-white to be theme-aware */
  211. .text-white {
  212. color: var(--text-primary);
  213. }
  214. /* Smooth transitions for theme changes */
  215. .bg-bambu-dark,
  216. .bg-bambu-dark-secondary,
  217. .bg-bambu-dark-tertiary,
  218. .border-bambu-dark-tertiary {
  219. transition: background-color 0.2s ease, border-color 0.2s ease;
  220. }
  221. /* Toast slide-in animation */
  222. @keyframes slide-in {
  223. from {
  224. transform: translateX(100%);
  225. opacity: 0;
  226. }
  227. to {
  228. transform: translateX(0);
  229. opacity: 1;
  230. }
  231. }
  232. .animate-slide-in {
  233. animation: slide-in 0.2s ease-out;
  234. }
  235. /* Theme-aware icon inversion - only invert in dark mode */
  236. .icon-theme {
  237. opacity: 0.5;
  238. }
  239. .dark .icon-theme {
  240. filter: invert(1);
  241. opacity: 0.4;
  242. }
  243. /* Green-colored icon for active status indicators */
  244. .icon-green {
  245. filter: invert(48%) sepia(89%) saturate(459%) hue-rotate(93deg) brightness(95%) contrast(92%);
  246. opacity: 1;
  247. }
  248. /* Orange/red-colored icon for heating indicators */
  249. .icon-heating {
  250. filter: invert(50%) sepia(100%) saturate(1000%) hue-rotate(360deg) brightness(100%) contrast(100%);
  251. opacity: 1;
  252. }
  253. /* Jogpad theme styling - darken background in dark mode */
  254. .jogpad-theme {
  255. /* Light mode - normal */
  256. }
  257. .dark .jogpad-theme {
  258. filter: brightness(0.35) contrast(1.2);
  259. }
  260. /* Empty AMS slot with diagonal stripes */
  261. .ams-empty-slot {
  262. background: repeating-linear-gradient(
  263. 45deg,
  264. #444,
  265. #444 2px,
  266. #222 2px,
  267. #222 4px
  268. );
  269. }
  270. .dark .ams-empty-slot {
  271. background: repeating-linear-gradient(
  272. 45deg,
  273. #555,
  274. #555 2px,
  275. #333 2px,
  276. #333 4px
  277. );
  278. }
  279. /* Touch manipulation to prevent zoom on double-tap */
  280. .touch-manipulation {
  281. touch-action: manipulation;
  282. }
  283. /* Safe area insets for notched devices */
  284. .safe-area-bottom {
  285. padding-bottom: env(safe-area-inset-bottom, 0);
  286. }
  287. .safe-area-top {
  288. padding-top: env(safe-area-inset-top, 0);
  289. }
  290. /* Hide scrollbar but keep functionality */
  291. .scrollbar-hide {
  292. -ms-overflow-style: none;
  293. scrollbar-width: none;
  294. }
  295. .scrollbar-hide::-webkit-scrollbar {
  296. display: none;
  297. }
  298. /* Mobile drawer animation */
  299. @keyframes slide-in-left {
  300. from {
  301. transform: translateX(-100%);
  302. }
  303. to {
  304. transform: translateX(0);
  305. }
  306. }
  307. .animate-slide-in-left {
  308. animation: slide-in-left 0.3s ease-out;
  309. }
  310. /* Card shadows - uses theme-specific shadow */
  311. .card-shadow {
  312. box-shadow: var(--card-shadow);
  313. }