| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546 |
- :root {
- --ink: #1d1e1a;
- --paper: #f6f1e8;
- --sand: #d8c6a5;
- --amber: #e0a33b;
- --amber-deep: #b86915;
- --teal: #0f6c78;
- --teal-soft: #8fd4d2;
- --alert: #b3362d;
- --ok: #2f7d4d;
- --panel: rgba(255, 248, 237, 0.84);
- --line: rgba(29, 30, 26, 0.12);
- --shadow: 0 24px 60px rgba(60, 42, 12, 0.18);
- }
- * {
- box-sizing: border-box;
- }
- body {
- margin: 0;
- min-height: 100vh;
- color: var(--ink);
- font-family: "Avenir Next", "Segoe UI", "Trebuchet MS", sans-serif;
- background:
- radial-gradient(circle at top left, rgba(224, 163, 59, 0.32), transparent 28%),
- radial-gradient(circle at right 20%, rgba(15, 108, 120, 0.18), transparent 24%),
- linear-gradient(180deg, #efe4cf 0%, #f7f2ea 38%, #f3ebdf 100%);
- }
- body::before {
- content: "";
- position: fixed;
- inset: 0;
- pointer-events: none;
- background-image:
- linear-gradient(rgba(29, 30, 26, 0.03) 1px, transparent 1px),
- linear-gradient(90deg, rgba(29, 30, 26, 0.03) 1px, transparent 1px);
- background-size: 28px 28px;
- mask-image: radial-gradient(circle at center, black 45%, transparent 100%);
- }
- a {
- color: inherit;
- }
- .page-shell {
- width: min(1240px, calc(100% - 2rem));
- margin: 0 auto;
- padding: 2rem 0 3rem;
- }
- .hero,
- .panel,
- .machine-panel,
- .auth-card,
- .admin-shell {
- position: relative;
- overflow: hidden;
- background: var(--panel);
- border: 1px solid rgba(255, 255, 255, 0.55);
- border-radius: 28px;
- box-shadow: var(--shadow);
- backdrop-filter: blur(16px);
- }
- .hero {
- display: grid;
- grid-template-columns: minmax(0, 2fr) minmax(260px, 1fr);
- gap: 1.5rem;
- padding: 2rem;
- margin-bottom: 1.5rem;
- }
- .hero__actions {
- grid-column: 1 / -1;
- display: flex;
- gap: 0.75rem;
- flex-wrap: wrap;
- }
- .hero__lede,
- .panel p,
- .slot-card__metrics p,
- .admin-shell p,
- .field-help,
- .auth-card p {
- color: rgba(29, 30, 26, 0.72);
- line-height: 1.55;
- }
- .eyebrow {
- margin: 0 0 0.35rem;
- letter-spacing: 0.14em;
- text-transform: uppercase;
- font-size: 0.75rem;
- color: rgba(29, 30, 26, 0.52);
- }
- h1,
- h2,
- h3 {
- margin: 0;
- font-family: "Gill Sans", "Trebuchet MS", sans-serif;
- font-weight: 700;
- }
- h1 {
- font-size: clamp(2.3rem, 5vw, 4.4rem);
- line-height: 0.95;
- max-width: 11ch;
- }
- h2 {
- font-size: 1.45rem;
- }
- .hero__stats {
- display: grid;
- grid-template-columns: repeat(3, 1fr);
- gap: 0.75rem;
- align-content: start;
- }
- .stat-card {
- padding: 1rem;
- border-radius: 22px;
- background: linear-gradient(180deg, rgba(255, 255, 255, 0.78), rgba(255, 255, 255, 0.35));
- border: 1px solid rgba(29, 30, 26, 0.08);
- }
- .stat-card strong {
- display: block;
- margin-top: 0.35rem;
- font-size: 2rem;
- }
- .stat-card--alert strong {
- color: var(--alert);
- }
- .button,
- button {
- appearance: none;
- border: 0;
- cursor: pointer;
- text-decoration: none;
- font: inherit;
- }
- .button {
- display: inline-flex;
- align-items: center;
- justify-content: center;
- min-height: 46px;
- padding: 0.8rem 1.15rem;
- border-radius: 999px;
- transition: transform 140ms ease, box-shadow 140ms ease, background 140ms ease;
- }
- .button:hover,
- button:hover {
- transform: translateY(-1px);
- }
- .button--primary {
- color: white;
- background: linear-gradient(135deg, var(--amber-deep), var(--amber));
- box-shadow: 0 12px 22px rgba(184, 105, 21, 0.28);
- }
- .button--ghost {
- background: rgba(255, 255, 255, 0.52);
- border: 1px solid rgba(29, 30, 26, 0.08);
- }
- .dashboard {
- display: grid;
- gap: 1.5rem;
- }
- .panel {
- padding: 1.5rem;
- }
- .panel__header,
- .machine-panel__head,
- .admin-header {
- display: flex;
- align-items: flex-start;
- justify-content: space-between;
- gap: 1rem;
- }
- .panel--controls {
- display: flex;
- align-items: center;
- justify-content: space-between;
- gap: 1rem;
- flex-wrap: wrap;
- }
- .chip-row {
- display: flex;
- gap: 0.6rem;
- flex-wrap: wrap;
- }
- .chip {
- min-height: 40px;
- padding: 0.65rem 0.95rem;
- border-radius: 999px;
- background: rgba(255, 255, 255, 0.68);
- color: rgba(29, 30, 26, 0.72);
- border: 1px solid rgba(29, 30, 26, 0.08);
- }
- .chip--active {
- background: linear-gradient(135deg, var(--teal), #124f58);
- color: white;
- }
- .machine-grid,
- .slot-grid {
- display: grid;
- gap: 1rem;
- }
- .machine-grid {
- grid-template-columns: 1fr;
- }
- .machine-panel {
- padding: 1.4rem;
- background: linear-gradient(180deg, rgba(255, 255, 255, 0.85), rgba(239, 228, 207, 0.55));
- }
- .slot-grid {
- margin-top: 1rem;
- grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
- }
- .slot-card {
- display: grid;
- gap: 1rem;
- padding: 1rem;
- border-radius: 24px;
- border: 1px solid var(--line);
- background: rgba(255, 255, 255, 0.72);
- }
- .slot-card--critical {
- background: linear-gradient(180deg, rgba(255, 234, 233, 0.96), rgba(255, 246, 238, 0.9));
- border-color: rgba(179, 54, 45, 0.18);
- }
- .slot-card--ok {
- background: linear-gradient(180deg, rgba(237, 252, 245, 0.92), rgba(255, 255, 255, 0.78));
- border-color: rgba(47, 125, 77, 0.14);
- }
- .slot-card__head,
- .slot-card__body {
- display: flex;
- gap: 1rem;
- justify-content: space-between;
- }
- .slot-card__label {
- margin: 0 0 0.25rem;
- font-size: 0.76rem;
- text-transform: uppercase;
- letter-spacing: 0.12em;
- color: rgba(29, 30, 26, 0.5);
- }
- .status-pill {
- display: inline-flex;
- align-items: center;
- height: fit-content;
- padding: 0.4rem 0.7rem;
- border-radius: 999px;
- font-size: 0.85rem;
- }
- .status-pill--critical {
- background: rgba(179, 54, 45, 0.14);
- color: var(--alert);
- }
- .status-pill--ok {
- background: rgba(47, 125, 77, 0.14);
- color: var(--ok);
- }
- .status-pill--unknown {
- background: rgba(29, 30, 26, 0.08);
- color: rgba(29, 30, 26, 0.62);
- }
- .fill-tube {
- position: relative;
- width: 82px;
- min-width: 82px;
- height: 190px;
- border-radius: 32px;
- padding: 8px;
- background: linear-gradient(180deg, rgba(29, 30, 26, 0.08), rgba(255, 255, 255, 0.72));
- border: 1px solid rgba(29, 30, 26, 0.08);
- overflow: hidden;
- }
- .fill-tube__liquid {
- position: absolute;
- inset: auto 8px 8px;
- border-radius: 24px;
- background: linear-gradient(180deg, var(--amber), #f2d785 60%, #fee6b7);
- box-shadow: inset 0 12px 24px rgba(255, 255, 255, 0.34);
- }
- .slot-card--critical .fill-tube__liquid {
- background: linear-gradient(180deg, #d55b51, #f4a38e 62%, #ffd8d1);
- }
- .slot-card--ok .fill-tube__liquid {
- background: linear-gradient(180deg, var(--teal), var(--teal-soft) 62%, #e2f7f5);
- }
- .fill-tube__gloss {
- position: absolute;
- top: 14px;
- left: 16px;
- width: 18px;
- height: 120px;
- border-radius: 999px;
- background: linear-gradient(180deg, rgba(255, 255, 255, 0.75), transparent);
- }
- .slot-card__metrics {
- display: grid;
- gap: 0.25rem;
- align-content: start;
- }
- .slot-card__metrics strong,
- .timestamp {
- color: var(--ink);
- }
- .alert-list {
- display: grid;
- gap: 0.8rem;
- }
- .alert-entry {
- display: flex;
- justify-content: space-between;
- gap: 1rem;
- align-items: center;
- padding: 1rem 1.15rem;
- border-radius: 20px;
- background: rgba(255, 255, 255, 0.64);
- border: 1px solid var(--line);
- }
- .alert-entry--critical {
- border-color: rgba(179, 54, 45, 0.2);
- }
- .alert-entry--ok {
- border-color: rgba(47, 125, 77, 0.18);
- }
- .alert-entry__title {
- margin: 0 0 0.2rem;
- font-weight: 700;
- }
- .empty-state {
- margin: 0;
- padding: 1rem;
- border-radius: 18px;
- background: rgba(255, 255, 255, 0.55);
- }
- .auth-page,
- .admin-page {
- width: min(1180px, calc(100% - 2rem));
- margin: 0 auto;
- padding: 2rem 0 3rem;
- }
- .auth-card {
- width: min(520px, 100%);
- margin: 8vh auto 0;
- padding: 2rem;
- }
- .auth-card form,
- .admin-form {
- display: grid;
- gap: 1rem;
- }
- .admin-shell {
- padding: 1.5rem;
- display: grid;
- gap: 1.5rem;
- }
- .admin-grid {
- display: grid;
- gap: 1rem;
- grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
- }
- .form-section {
- padding: 1.2rem;
- border-radius: 22px;
- background: rgba(255, 255, 255, 0.64);
- border: 1px solid var(--line);
- }
- .field-grid {
- display: grid;
- gap: 0.9rem;
- grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
- }
- label {
- display: grid;
- gap: 0.35rem;
- font-weight: 600;
- font-size: 0.95rem;
- }
- input,
- textarea,
- select {
- width: 100%;
- min-height: 44px;
- padding: 0.7rem 0.85rem;
- border-radius: 14px;
- border: 1px solid rgba(29, 30, 26, 0.14);
- background: rgba(255, 255, 255, 0.85);
- color: var(--ink);
- font: inherit;
- }
- textarea {
- min-height: 90px;
- resize: vertical;
- }
- .inline-actions,
- .section-actions {
- display: flex;
- gap: 0.75rem;
- flex-wrap: wrap;
- align-items: center;
- }
- .button--secondary {
- background: rgba(15, 108, 120, 0.14);
- color: var(--teal);
- }
- .button--danger {
- background: rgba(179, 54, 45, 0.12);
- color: var(--alert);
- }
- .message {
- padding: 0.9rem 1rem;
- border-radius: 18px;
- font-weight: 600;
- }
- .message--success {
- background: rgba(47, 125, 77, 0.12);
- color: var(--ok);
- }
- .message--error {
- background: rgba(179, 54, 45, 0.12);
- color: var(--alert);
- }
- .repeat-stack {
- display: grid;
- gap: 1rem;
- }
- .repeat-card,
- .slot-editor {
- padding: 1rem;
- border-radius: 18px;
- background: rgba(255, 255, 255, 0.76);
- border: 1px solid var(--line);
- }
- .repeat-card h4,
- .slot-editor h5 {
- margin: 0 0 0.85rem;
- font-family: "Gill Sans", "Trebuchet MS", sans-serif;
- }
- .slot-editor h5 {
- font-size: 1rem;
- }
- .field-help code {
- font-family: "Courier New", monospace;
- }
- @media (max-width: 820px) {
- .hero,
- .panel__header,
- .machine-panel__head,
- .admin-header,
- .alert-entry,
- .slot-card__body {
- grid-template-columns: 1fr;
- flex-direction: column;
- }
- .hero__stats {
- grid-template-columns: 1fr;
- }
- .fill-tube {
- width: 100%;
- height: 42px;
- min-width: 0;
- }
- .fill-tube__liquid {
- inset: 8px auto 8px 8px;
- height: auto !important;
- width: max(0px, calc(var(--fill, 0%) - 16px));
- }
- .fill-tube__gloss {
- display: none;
- }
- }
|