style.css 8.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445
  1. :root {
  2. --brand-primary: #2f3541;
  3. --brand-primary-dark: #242a33;
  4. --brand-danger: #cf2e2e;
  5. --brand-danger-dark: #b12727;
  6. --brand-accent: #cac300;
  7. --brand-dark: #1b1b1b;
  8. --brand-text: #f5f7fb;
  9. --brand-muted: #c7ccd6;
  10. --brand-surface: #2f3541;
  11. --brand-surface-alt: #3a4150;
  12. --brand-bg: #28292a;
  13. --brand-border: #3b4252;
  14. }
  15. /* Base Primitives */
  16. * {
  17. box-sizing: border-box;
  18. margin: 0;
  19. padding: 0;
  20. }
  21. body {
  22. background-color: var(--brand-bg);
  23. color: var(--brand-text);
  24. font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  25. line-height: 1.6;
  26. }
  27. a {
  28. color: var(--brand-accent);
  29. text-decoration: none;
  30. }
  31. a:hover {
  32. color: #e0d700;
  33. }
  34. .container {
  35. max-width: 1200px;
  36. margin: 0 auto;
  37. padding: 0 20px;
  38. }
  39. body.admin-page .container {
  40. max-width: none;
  41. }
  42. main {
  43. min-height: calc(100vh - 200px);
  44. padding: 2rem 0;
  45. }
  46. /* Typography Helpers */
  47. .text-center {
  48. text-align: center;
  49. }
  50. /* Header & Navigation */
  51. .site-header {
  52. background-color: var(--brand-primary);
  53. color: #ffffff;
  54. padding: 1rem 0;
  55. box-shadow: 0 2px 6px rgba(0,0,0,0.18);
  56. }
  57. .header-inner {
  58. display: flex;
  59. align-items: center;
  60. justify-content: space-between;
  61. gap: 1.5rem;
  62. }
  63. .brand {
  64. display: inline-flex;
  65. align-items: center;
  66. gap: 1rem;
  67. color: #ffffff;
  68. }
  69. .brand-info {
  70. display: flex;
  71. flex-direction: column;
  72. }
  73. .brand-title {
  74. font-size: 1.3rem;
  75. font-weight: 700;
  76. letter-spacing: 0.02em;
  77. }
  78. .brand-subtitle {
  79. font-size: 0.9rem;
  80. font-weight: 500;
  81. opacity: 0.9;
  82. }
  83. .brand-logo {
  84. height: 52px;
  85. filter: drop-shadow(0 2px 4px rgba(0,0,0,0.25));
  86. }
  87. .site-nav {
  88. display: flex;
  89. gap: 1rem;
  90. }
  91. .site-nav a {
  92. color: #ffffff;
  93. font-weight: 600;
  94. letter-spacing: 0.02em;
  95. }
  96. .site-nav a:hover {
  97. color: var(--brand-accent);
  98. }
  99. /* Forms & Buttons */
  100. .btn {
  101. display: inline-block;
  102. background-color: var(--brand-danger);
  103. color: #ffffff;
  104. padding: 0.5rem 1rem;
  105. border: none;
  106. border-radius: 4px;
  107. font-family: inherit;
  108. font-size: 1rem;
  109. font-weight: 600;
  110. cursor: pointer;
  111. transition: background-color 0.3s;
  112. text-align: center;
  113. }
  114. .btn:hover {
  115. background-color: var(--brand-danger-dark);
  116. color: #ffffff;
  117. }
  118. .btn-secondary {
  119. background-color: transparent;
  120. border: 1px solid var(--brand-border);
  121. color: var(--brand-text);
  122. }
  123. .btn-secondary:hover {
  124. background-color: var(--brand-surface-alt);
  125. }
  126. .btn-small {
  127. padding: 0.25rem 0.5rem;
  128. font-size: 0.85rem;
  129. }
  130. .btn-block {
  131. display: block;
  132. width: 100%;
  133. }
  134. .form-group {
  135. margin-bottom: 1rem;
  136. display: flex;
  137. flex-direction: column;
  138. }
  139. .form-group label {
  140. margin-bottom: 0.5rem;
  141. font-weight: 600;
  142. }
  143. .form-group input,
  144. .form-group textarea,
  145. .form-group select {
  146. background-color: var(--brand-surface-alt);
  147. border: 1px solid var(--brand-border);
  148. color: var(--brand-text);
  149. padding: 0.5rem;
  150. border-radius: 4px;
  151. font-family: inherit;
  152. font-size: 1rem;
  153. width: 100%;
  154. }
  155. .form-group input:focus,
  156. .form-group textarea:focus,
  157. .form-group select:focus {
  158. outline: none;
  159. border-color: var(--brand-accent);
  160. box-shadow: 0 0 0 3px rgba(202, 195, 0, 0.2);
  161. }
  162. /* Panels / Cards */
  163. .panel {
  164. background-color: var(--brand-surface);
  165. border: 1px solid var(--brand-border);
  166. border-radius: 8px;
  167. box-shadow: 0 2px 4px rgba(0,0,0,0.35);
  168. padding: 1.5rem;
  169. margin-bottom: 1.5rem;
  170. }
  171. /* Entities / Products grid (Can be used for forms listings) */
  172. .products-grid {
  173. display: grid;
  174. grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  175. gap: 1.5rem;
  176. }
  177. .product-card {
  178. background-color: var(--brand-surface);
  179. border-radius: 8px;
  180. box-shadow: 0 2px 8px rgba(0,0,0,0.4);
  181. transition: transform 0.3s, box-shadow 0.3s;
  182. overflow: hidden;
  183. border: 1px solid var(--brand-border);
  184. }
  185. .product-card:hover {
  186. transform: translateY(-5px);
  187. box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  188. }
  189. .product-card-content {
  190. padding: 1rem;
  191. }
  192. .card-title {
  193. font-size: 1.1rem;
  194. font-weight: 600;
  195. margin-bottom: 0.5rem;
  196. }
  197. /* Tables */
  198. table {
  199. width: 100%;
  200. border-collapse: collapse;
  201. background-color: var(--brand-surface);
  202. box-shadow: 0 2px 4px rgba(0,0,0,0.35);
  203. border-radius: 8px;
  204. overflow: hidden;
  205. }
  206. th, td {
  207. padding: 1rem;
  208. text-align: left;
  209. border-bottom: 1px solid var(--brand-border);
  210. }
  211. th {
  212. background-color: var(--brand-primary);
  213. color: #ffffff;
  214. font-weight: 600;
  215. }
  216. tr:hover td {
  217. background-color: var(--brand-surface-alt);
  218. }
  219. .table-responsive {
  220. overflow-x: auto;
  221. margin-bottom: 1.5rem;
  222. border-radius: 8px;
  223. }
  224. /* Alerts */
  225. .alert {
  226. background-color: var(--brand-surface);
  227. padding: 1rem;
  228. border-radius: 4px;
  229. margin-bottom: 1rem;
  230. border-left: 4px solid var(--brand-border);
  231. }
  232. .alert-success {
  233. border-left-color: var(--brand-accent);
  234. }
  235. .alert-error {
  236. border-left-color: var(--brand-danger);
  237. }
  238. .alert-info {
  239. border-left-color: #ffffff;
  240. }
  241. /* Status Pills */
  242. .status {
  243. display: inline-block;
  244. padding: 0.1rem 0.6rem;
  245. border-radius: 999px;
  246. font-size: 0.85rem;
  247. font-weight: 600;
  248. letter-spacing: 0.02em;
  249. border: 1px solid;
  250. }
  251. .status-open {
  252. color: var(--brand-accent);
  253. border-color: var(--brand-accent);
  254. }
  255. .status-picked {
  256. color: #ffffff;
  257. border-color: #ffffff;
  258. }
  259. /* Utilities */
  260. .mt-1 { margin-top: 0.5rem; }
  261. .mt-2 { margin-top: 1rem; }
  262. .mt-3 { margin-top: 1.5rem; }
  263. .mb-1 { margin-bottom: 0.5rem; }
  264. .mb-2 { margin-bottom: 1rem; }
  265. .mb-3 { margin-bottom: 1.5rem; }
  266. /* Responsive Adjustments */
  267. @media (max-width: 768px) {
  268. .header-inner {
  269. flex-direction: column;
  270. align-items: flex-start;
  271. }
  272. .site-nav {
  273. flex-wrap: wrap;
  274. }
  275. .brand-logo {
  276. height: 46px;
  277. }
  278. .products-grid {
  279. grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  280. gap: 1rem;
  281. }
  282. th, td {
  283. padding: 0.75rem;
  284. }
  285. /* Responsive Table Card Mode for Admin */
  286. body.admin-page table.responsive-table {
  287. display: block;
  288. box-shadow: none;
  289. background: transparent;
  290. }
  291. body.admin-page table.responsive-table thead {
  292. display: none;
  293. }
  294. body.admin-page table.responsive-table tbody,
  295. body.admin-page table.responsive-table tr,
  296. body.admin-page table.responsive-table td {
  297. display: block;
  298. width: 100%;
  299. }
  300. body.admin-page table.responsive-table tr {
  301. background-color: var(--brand-surface);
  302. margin-bottom: 1rem;
  303. border-radius: 8px;
  304. border: 1px solid var(--brand-border);
  305. box-shadow: 0 2px 4px rgba(0,0,0,0.35);
  306. }
  307. body.admin-page table.responsive-table td {
  308. text-align: right;
  309. padding-left: 50%;
  310. position: relative;
  311. border-bottom: 1px solid var(--brand-border);
  312. }
  313. body.admin-page table.responsive-table td:last-child {
  314. border-bottom: 0;
  315. }
  316. body.admin-page table.responsive-table td::before {
  317. content: attr(data-label);
  318. position: absolute;
  319. left: 1rem;
  320. width: calc(50% - 2rem);
  321. white-space: nowrap;
  322. text-align: left;
  323. font-weight: 600;
  324. }
  325. }
  326. @media (max-width: 480px) {
  327. .container {
  328. padding: 0 12px;
  329. }
  330. .products-grid {
  331. grid-template-columns: 1fr;
  332. }
  333. .brand-title {
  334. font-size: 1.1rem;
  335. }
  336. .brand-subtitle {
  337. font-size: 0.8rem;
  338. }
  339. }
  340. /* Modals */
  341. .modal {
  342. display: none; /* hidden by default */
  343. position: fixed;
  344. top: 0;
  345. left: 0;
  346. width: 100%;
  347. height: 100%;
  348. background-color: rgba(0,0,0,0.6);
  349. z-index: 1000;
  350. justify-content: center;
  351. align-items: center;
  352. }
  353. .modal.visible {
  354. display: flex;
  355. }
  356. .modal-content {
  357. background-color: var(--brand-bg);
  358. padding: 2rem;
  359. border-radius: 8px;
  360. max-width: 1000px;
  361. width: 90%;
  362. max-height: 95vh;
  363. overflow-y: auto;
  364. position: relative;
  365. }
  366. .modal-close {
  367. position: absolute;
  368. top: 1rem;
  369. right: 1rem;
  370. background: transparent;
  371. border: 1px solid var(--brand-text);
  372. color: var(--brand-text);
  373. border-radius: 4px;
  374. padding: 0.25rem 0.5rem;
  375. cursor: pointer;
  376. }
  377. /* Form Builder specifics */
  378. .builder-item {
  379. background-color: var(--brand-surface);
  380. border: 1px solid var(--brand-border);
  381. padding: 1rem;
  382. margin-bottom: 1rem;
  383. border-radius: 8px;
  384. cursor: grab;
  385. display: flex;
  386. flex-direction: column;
  387. gap: 0.5rem;
  388. }
  389. .builder-item:active {
  390. cursor: grabbing;
  391. }
  392. .builder-item.sortable-ghost {
  393. opacity: 0.4;
  394. background-color: var(--brand-surface-alt);
  395. }
  396. .builder-handle {
  397. cursor: grab;
  398. color: var(--brand-muted);
  399. display: flex;
  400. justify-content: space-between;
  401. align-items: center;
  402. margin-bottom: 0.5rem;
  403. }