:root { --bg: #0f172a; --card: #1e293b; --border: #334155; --text: #f8fafc; --muted: #94a3b8; --accent: #3b82f6; --danger: #ef4444; --warning: #f59e0b; --success: #22c55e; } * { box-sizing: border-box; margin: 0; padding: 0; } body { font-family: 'Inter', sans-serif; background: var(--bg); color: var(--text); min-height: 100vh; padding: 16px; padding-bottom: max(24px, env(safe-area-inset-bottom)); } .hidden { display: none !important; } .top-bar { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; margin-bottom: 16px; } .top-bar h1 { font-size: 1.45rem; font-weight: 800; line-height: 1.2; } .subtitle { margin-top: 4px; font-size: 0.85rem; color: var(--muted); } .sync-pill { display: flex; align-items: center; gap: 8px; font-size: 0.78rem; color: var(--muted); background: var(--card); border: 1px solid var(--border); border-radius: 999px; padding: 8px 12px; white-space: nowrap; flex-shrink: 0; } .sync-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--muted); flex-shrink: 0; } .sync-dot.ok { background: var(--success); box-shadow: 0 0 8px var(--success); animation: pulse 2s infinite; } .sync-dot.err { background: var(--danger); box-shadow: 0 0 8px var(--danger); } @keyframes pulse { 0%, 100% { opacity: 0.75; transform: scale(0.95); } 50% { opacity: 1; transform: scale(1.1); } } .notify-banner, .install-banner { display: flex; align-items: center; justify-content: space-between; gap: 12px; background: linear-gradient(135deg, #1e3a5f 0%, #1e293b 100%); border: 1px solid #2563eb; border-radius: 14px; padding: 14px 16px; margin-bottom: 16px; } .install-banner { background: linear-gradient(135deg, #14532d 0%, #1e293b 100%); border-color: #22c55e; } .notify-banner p, .install-banner p { margin-top: 4px; font-size: 0.82rem; color: #cbd5e1; line-height: 1.4; } .notify-banner { .btn { border: none; border-radius: 10px; padding: 10px 14px; font-size: 0.85rem; font-weight: 700; cursor: pointer; white-space: nowrap; } .btn-primary { background: var(--accent); color: #fff; } .stats-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-bottom: 18px; } .stat-card { background: var(--card); border: 1px solid var(--border); border-radius: 12px; padding: 12px 14px; } .stat-label { display: block; font-size: 0.75rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.4px; margin-bottom: 4px; } .stat-value { font-size: 1.5rem; font-weight: 800; } .feed-list { display: flex; flex-direction: column; gap: 12px; margin-bottom: 12px; } .empty-state { text-align: center; padding: 48px 20px; color: var(--muted); } .empty-icon { font-size: 2.5rem; margin-bottom: 12px; } .feed-card { background: var(--card); border: 1px solid var(--border); border-radius: 14px; padding: 16px; animation: slideIn 0.25s ease-out; } .feed-card.is-new { box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.35); } .feed-card.waiter { border-left: 5px solid var(--danger); } .feed-card.bill { border-left: 5px solid var(--warning); } .feed-card.done { opacity: 0.72; } @keyframes slideIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } } .feed-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; margin-bottom: 8px; } .feed-title { font-size: 1rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.3px; } .feed-card.waiter .feed-title { color: #fca5a5; } .feed-card.bill .feed-title { color: #fcd34d; } .feed-time { font-size: 0.8rem; color: var(--muted); white-space: nowrap; } .feed-table { font-size: 1.05rem; font-weight: 700; color: var(--accent); margin-bottom: 6px; } .feed-operator { font-size: 0.88rem; color: var(--muted); margin-bottom: 8px; } .feed-operator strong { color: #e2e8f0; } .feed-msg { font-size: 0.9rem; color: #cbd5e1; line-height: 1.45; white-space: pre-line; } .feed-badges { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; } .badge { font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.3px; padding: 4px 8px; border-radius: 999px; border: 1px solid var(--border); } .badge-pending { background: rgba(239, 68, 68, 0.15); color: #fca5a5; border-color: rgba(239, 68, 68, 0.35); } .badge-done { background: rgba(34, 197, 94, 0.12); color: #86efac; border-color: rgba(34, 197, 94, 0.3); } @media (min-width: 640px) { body { max-width: 720px; margin: 0 auto; padding: 24px; } .stats-grid { grid-template-columns: repeat(4, 1fr); } }