| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445 |
- :root {
- --brand-primary: #2f3541;
- --brand-primary-dark: #242a33;
- --brand-danger: #cf2e2e;
- --brand-danger-dark: #b12727;
- --brand-accent: #cac300;
- --brand-dark: #1b1b1b;
- --brand-text: #f5f7fb;
- --brand-muted: #c7ccd6;
- --brand-surface: #2f3541;
- --brand-surface-alt: #3a4150;
- --brand-bg: #28292a;
- --brand-border: #3b4252;
- }
- /* Base Primitives */
- * {
- box-sizing: border-box;
- margin: 0;
- padding: 0;
- }
- body {
- background-color: var(--brand-bg);
- color: var(--brand-text);
- font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
- line-height: 1.6;
- }
- a {
- color: var(--brand-accent);
- text-decoration: none;
- }
- a:hover {
- color: #e0d700;
- }
- .container {
- max-width: 1200px;
- margin: 0 auto;
- padding: 0 20px;
- }
- body.admin-page .container {
- max-width: none;
- }
- main {
- min-height: calc(100vh - 200px);
- padding: 2rem 0;
- }
- /* Typography Helpers */
- .text-center {
- text-align: center;
- }
- /* Header & Navigation */
- .site-header {
- background-color: var(--brand-primary);
- color: #ffffff;
- padding: 1rem 0;
- box-shadow: 0 2px 6px rgba(0,0,0,0.18);
- }
- .header-inner {
- display: flex;
- align-items: center;
- justify-content: space-between;
- gap: 1.5rem;
- }
- .brand {
- display: inline-flex;
- align-items: center;
- gap: 1rem;
- color: #ffffff;
- }
- .brand-info {
- display: flex;
- flex-direction: column;
- }
- .brand-title {
- font-size: 1.3rem;
- font-weight: 700;
- letter-spacing: 0.02em;
- }
- .brand-subtitle {
- font-size: 0.9rem;
- font-weight: 500;
- opacity: 0.9;
- }
- .brand-logo {
- height: 52px;
- filter: drop-shadow(0 2px 4px rgba(0,0,0,0.25));
- }
- .site-nav {
- display: flex;
- gap: 1rem;
- }
- .site-nav a {
- color: #ffffff;
- font-weight: 600;
- letter-spacing: 0.02em;
- }
- .site-nav a:hover {
- color: var(--brand-accent);
- }
- /* Forms & Buttons */
- .btn {
- display: inline-block;
- background-color: var(--brand-danger);
- color: #ffffff;
- padding: 0.5rem 1rem;
- border: none;
- border-radius: 4px;
- font-family: inherit;
- font-size: 1rem;
- font-weight: 600;
- cursor: pointer;
- transition: background-color 0.3s;
- text-align: center;
- }
- .btn:hover {
- background-color: var(--brand-danger-dark);
- color: #ffffff;
- }
- .btn-secondary {
- background-color: transparent;
- border: 1px solid var(--brand-border);
- color: var(--brand-text);
- }
- .btn-secondary:hover {
- background-color: var(--brand-surface-alt);
- }
- .btn-small {
- padding: 0.25rem 0.5rem;
- font-size: 0.85rem;
- }
- .btn-block {
- display: block;
- width: 100%;
- }
- .form-group {
- margin-bottom: 1rem;
- display: flex;
- flex-direction: column;
- }
- .form-group label {
- margin-bottom: 0.5rem;
- font-weight: 600;
- }
- .form-group input,
- .form-group textarea,
- .form-group select {
- background-color: var(--brand-surface-alt);
- border: 1px solid var(--brand-border);
- color: var(--brand-text);
- padding: 0.5rem;
- border-radius: 4px;
- font-family: inherit;
- font-size: 1rem;
- width: 100%;
- }
- .form-group input:focus,
- .form-group textarea:focus,
- .form-group select:focus {
- outline: none;
- border-color: var(--brand-accent);
- box-shadow: 0 0 0 3px rgba(202, 195, 0, 0.2);
- }
- /* Panels / Cards */
- .panel {
- background-color: var(--brand-surface);
- border: 1px solid var(--brand-border);
- border-radius: 8px;
- box-shadow: 0 2px 4px rgba(0,0,0,0.35);
- padding: 1.5rem;
- margin-bottom: 1.5rem;
- }
- /* Entities / Products grid (Can be used for forms listings) */
- .products-grid {
- display: grid;
- grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
- gap: 1.5rem;
- }
- .product-card {
- background-color: var(--brand-surface);
- border-radius: 8px;
- box-shadow: 0 2px 8px rgba(0,0,0,0.4);
- transition: transform 0.3s, box-shadow 0.3s;
- overflow: hidden;
- border: 1px solid var(--brand-border);
- }
- .product-card:hover {
- transform: translateY(-5px);
- box-shadow: 0 4px 12px rgba(0,0,0,0.15);
- }
- .product-card-content {
- padding: 1rem;
- }
- .card-title {
- font-size: 1.1rem;
- font-weight: 600;
- margin-bottom: 0.5rem;
- }
- /* Tables */
- table {
- width: 100%;
- border-collapse: collapse;
- background-color: var(--brand-surface);
- box-shadow: 0 2px 4px rgba(0,0,0,0.35);
- border-radius: 8px;
- overflow: hidden;
- }
- th, td {
- padding: 1rem;
- text-align: left;
- border-bottom: 1px solid var(--brand-border);
- }
- th {
- background-color: var(--brand-primary);
- color: #ffffff;
- font-weight: 600;
- }
- tr:hover td {
- background-color: var(--brand-surface-alt);
- }
- .table-responsive {
- overflow-x: auto;
- margin-bottom: 1.5rem;
- border-radius: 8px;
- }
- /* Alerts */
- .alert {
- background-color: var(--brand-surface);
- padding: 1rem;
- border-radius: 4px;
- margin-bottom: 1rem;
- border-left: 4px solid var(--brand-border);
- }
- .alert-success {
- border-left-color: var(--brand-accent);
- }
- .alert-error {
- border-left-color: var(--brand-danger);
- }
- .alert-info {
- border-left-color: #ffffff;
- }
- /* Status Pills */
- .status {
- display: inline-block;
- padding: 0.1rem 0.6rem;
- border-radius: 999px;
- font-size: 0.85rem;
- font-weight: 600;
- letter-spacing: 0.02em;
- border: 1px solid;
- }
- .status-open {
- color: var(--brand-accent);
- border-color: var(--brand-accent);
- }
- .status-picked {
- color: #ffffff;
- border-color: #ffffff;
- }
- /* Utilities */
- .mt-1 { margin-top: 0.5rem; }
- .mt-2 { margin-top: 1rem; }
- .mt-3 { margin-top: 1.5rem; }
- .mb-1 { margin-bottom: 0.5rem; }
- .mb-2 { margin-bottom: 1rem; }
- .mb-3 { margin-bottom: 1.5rem; }
- /* Responsive Adjustments */
- @media (max-width: 768px) {
- .header-inner {
- flex-direction: column;
- align-items: flex-start;
- }
- .site-nav {
- flex-wrap: wrap;
- }
- .brand-logo {
- height: 46px;
- }
- .products-grid {
- grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
- gap: 1rem;
- }
- th, td {
- padding: 0.75rem;
- }
- /* Responsive Table Card Mode for Admin */
- body.admin-page table.responsive-table {
- display: block;
- box-shadow: none;
- background: transparent;
- }
- body.admin-page table.responsive-table thead {
- display: none;
- }
- body.admin-page table.responsive-table tbody,
- body.admin-page table.responsive-table tr,
- body.admin-page table.responsive-table td {
- display: block;
- width: 100%;
- }
- body.admin-page table.responsive-table tr {
- background-color: var(--brand-surface);
- margin-bottom: 1rem;
- border-radius: 8px;
- border: 1px solid var(--brand-border);
- box-shadow: 0 2px 4px rgba(0,0,0,0.35);
- }
- body.admin-page table.responsive-table td {
- text-align: right;
- padding-left: 50%;
- position: relative;
- border-bottom: 1px solid var(--brand-border);
- }
- body.admin-page table.responsive-table td:last-child {
- border-bottom: 0;
- }
- body.admin-page table.responsive-table td::before {
- content: attr(data-label);
- position: absolute;
- left: 1rem;
- width: calc(50% - 2rem);
- white-space: nowrap;
- text-align: left;
- font-weight: 600;
- }
- }
- @media (max-width: 480px) {
- .container {
- padding: 0 12px;
- }
- .products-grid {
- grid-template-columns: 1fr;
- }
- .brand-title {
- font-size: 1.1rem;
- }
- .brand-subtitle {
- font-size: 0.8rem;
- }
- }
- /* Modals */
- .modal {
- display: none; /* hidden by default */
- position: fixed;
- top: 0;
- left: 0;
- width: 100%;
- height: 100%;
- background-color: rgba(0,0,0,0.6);
- z-index: 1000;
- justify-content: center;
- align-items: center;
- }
- .modal.visible {
- display: flex;
- }
- .modal-content {
- background-color: var(--brand-bg);
- padding: 2rem;
- border-radius: 8px;
- max-width: 1000px;
- width: 90%;
- max-height: 95vh;
- overflow-y: auto;
- position: relative;
- }
- .modal-close {
- position: absolute;
- top: 1rem;
- right: 1rem;
- background: transparent;
- border: 1px solid var(--brand-text);
- color: var(--brand-text);
- border-radius: 4px;
- padding: 0.25rem 0.5rem;
- cursor: pointer;
- }
- /* Form Builder specifics */
- .builder-item {
- background-color: var(--brand-surface);
- border: 1px solid var(--brand-border);
- padding: 1rem;
- margin-bottom: 1rem;
- border-radius: 8px;
- cursor: grab;
- display: flex;
- flex-direction: column;
- gap: 0.5rem;
- }
- .builder-item:active {
- cursor: grabbing;
- }
- .builder-item.sortable-ghost {
- opacity: 0.4;
- background-color: var(--brand-surface-alt);
- }
- .builder-handle {
- cursor: grab;
- color: var(--brand-muted);
- display: flex;
- justify-content: space-between;
- align-items: center;
- margin-bottom: 0.5rem;
- }
|