/* ── Reset & base ──────────────────────────────────────────────────────────── */ *, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; } :root { --bg: #0f0f1a; --surface: #1c1c2e; --surface2: #252540; --border: #2e2e50; --primary: #4f8ef7; --primary-dk: #3a72d6; --green: #27ae6e; --green-dk: #1e9057; --red: #e05260; --yellow: #f0a843; --text: #e2e2f0; --text-muted: #8888aa; --radius: 12px; --shadow: 0 4px 24px rgba(0,0,0,.45); } body { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; background: var(--bg); color: var(--text); min-height: 100dvh; -webkit-font-smoothing: antialiased; } .hidden { display: none !important; } /* ── Layout helpers ────────────────────────────────────────────────────────── */ .card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 2rem; box-shadow: var(--shadow); } /* ── Form elements ─────────────────────────────────────────────────────────── */ input, select, textarea { width: 100%; background: var(--surface2); border: 1px solid var(--border); border-radius: 8px; color: var(--text); font-size: 1rem; padding: .65rem 1rem; outline: none; transition: border-color .2s; } input:focus, select:focus, textarea:focus { border-color: var(--primary); } label { display: block; font-size: .85rem; color: var(--text-muted); margin-bottom: .35rem; } .field { margin-bottom: 1rem; } /* ── Buttons ───────────────────────────────────────────────────────────────── */ .btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; font-size: .95rem; font-weight: 600; border: none; border-radius: 8px; padding: .65rem 1.4rem; cursor: pointer; transition: opacity .15s, transform .1s; white-space: nowrap; } .btn:active { transform: scale(.97); } .btn:disabled { opacity: .55; cursor: not-allowed; transform: none; } .btn-primary { background: var(--primary); color: #fff; } .btn-primary:not(:disabled):hover { background: var(--primary-dk); } .btn-danger { background: var(--red); color: #fff; } .btn-danger:not(:disabled):hover { opacity: .85; } .btn-ghost { background: var(--surface2); color: var(--text); border: 1px solid var(--border); } .btn-ghost:not(:disabled):hover { background: var(--border); } .btn-full { width: 100%; } /* ── Gate buttons ──────────────────────────────────────────────────────────── */ .gate-btn { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .4rem; padding: 1.25rem .75rem; border: none; border-radius: var(--radius); font-size: .9rem; font-weight: 700; cursor: pointer; transition: transform .12s, box-shadow .12s, opacity .15s; min-height: 96px; position: relative; overflow: hidden; } .gate-btn .icon { font-size: 1.8rem; line-height: 1; } .gate-btn.car { background: var(--primary); color: #fff; } .gate-btn.pedestrian { background: var(--green); color: #fff; } .gate-btn:not(:disabled):active { transform: scale(.94); } .gate-btn:disabled { opacity: .55; cursor: not-allowed; } .gate-btn.loading::after { content: ""; position: absolute; inset: 0; background: rgba(255,255,255,.15); animation: pulse 1s infinite; } .gate-btn.ok { box-shadow: 0 0 0 3px #27ae6e; } .gate-btn.fail { box-shadow: 0 0 0 3px var(--red); } @keyframes pulse { 0%,100%{opacity:1} 50%{opacity:.4} } /* ── Toast ─────────────────────────────────────────────────────────────────── */ .toast { position: fixed; bottom: 1.5rem; left: 50%; transform: translateX(-50%); background: var(--surface2); border: 1px solid var(--border); border-radius: 8px; padding: .75rem 1.5rem; font-size: .9rem; font-weight: 600; box-shadow: var(--shadow); z-index: 9999; transition: opacity .3s; pointer-events: none; } .toast.success { border-color: var(--green); color: var(--green); } .toast.error { border-color: var(--red); color: var(--red); } .toast.fade { opacity: 0; } /* ── Tables ────────────────────────────────────────────────────────────────── */ .table-wrap { overflow-x: auto; } table { width: 100%; border-collapse: collapse; font-size: .9rem; } th { background: var(--surface2); color: var(--text-muted); font-weight: 600; text-align: left; padding: .65rem 1rem; border-bottom: 1px solid var(--border); } td { padding: .65rem 1rem; border-bottom: 1px solid var(--border); vertical-align: middle; } tr:last-child td { border-bottom: none; } /* ── Badges ────────────────────────────────────────────────────────────────── */ .badge { display: inline-block; font-size: .75rem; font-weight: 700; border-radius: 99px; padding: .2rem .7rem; } .badge-green { background: rgba(39,174,110,.2); color: var(--green); } .badge-red { background: rgba(224,82,96,.2); color: var(--red); } .badge-yellow { background: rgba(240,168,67,.2); color: var(--yellow); } .badge-muted { background: var(--surface2); color: var(--text-muted); } /* ── Modal ─────────────────────────────────────────────────────────────────── */ .modal-backdrop { position: fixed; inset: 0; background: rgba(0,0,0,.6); display: flex; align-items: center; justify-content: center; z-index: 1000; padding: 1rem; } .modal { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.75rem; width: 100%; max-width: 440px; box-shadow: var(--shadow); } .modal h3 { margin-bottom: 1.25rem; font-size: 1.1rem; } .modal-actions { display: flex; gap: .75rem; justify-content: flex-end; margin-top: 1.25rem; } /* ── Error text ────────────────────────────────────────────────────────────── */ .error-msg { color: var(--red); font-size: .85rem; margin-top: .5rem; } /* ── PWA install banner ────────────────────────────────────────────────────── */ .install-banner { position: fixed; bottom: 1rem; left: 50%; transform: translateX(-50%); width: calc(100% - 2rem); max-width: 480px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); padding: .9rem 1rem; display: flex; align-items: center; justify-content: space-between; gap: .75rem; z-index: 9000; animation: banner-in .3s ease; } .install-banner.hidden { display: none !important; } .install-banner-body { display: flex; align-items: center; gap: .75rem; flex: 1; min-width: 0; } .install-banner-icon { width: 36px; height: 36px; object-fit: contain; flex-shrink: 0; } .install-banner-text { display: flex; flex-direction: column; gap: .1rem; min-width: 0; } .install-banner-text strong { font-size: .9rem; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .install-banner-text span { font-size: .78rem; color: var(--text-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .install-banner-actions { display: flex; gap: .5rem; flex-shrink: 0; } @keyframes banner-in { from { opacity: 0; transform: translateX(-50%) translateY(1rem); } to { opacity: 1; transform: translateX(-50%) translateY(0); } }