/* Cổng nhân viên — giao diện kiểu ứng dụng di động */
:root { --a: #4f46e5; --a2: #06b6d4; --ink: #0f172a; --muted: #64748b; --line: #e2e8f0; --bg: #eef2f7; --ok: #059669; --bad: #dc2626; --warn: #d97706; }
* { box-sizing: border-box; }
body { margin: 0; background: #dfe6f1; color: var(--ink); font: 15px/1.5 "Be Vietnam Pro", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; -webkit-font-smoothing: antialiased; }
.phone { position: relative; max-width: 480px; min-height: 100vh; margin: 0 auto; padding-bottom: 86px; background: var(--bg); box-shadow: 0 0 60px rgba(15,23,42,.18); }
.phone.bare { padding: 0 0 24px; background: radial-gradient(520px 320px at 100% -10%, rgba(6,182,212,.35), transparent 60%), radial-gradient(520px 360px at 0% 0%, rgba(99,102,241,.45), transparent 60%), linear-gradient(180deg, #1e1b4b, #0f172a 60%); }
a { color: var(--a); } button, input, select, textarea { font: inherit; }
.p-top { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 12px; padding: 12px 16px; background: linear-gradient(135deg, #4338ca, #4f46e5 55%, #0891b2); color: #fff; }
.p-top > div { flex: 1; line-height: 1.2; } .p-top b { display: block; } .p-top small { opacity: .8; font-size: 12px; }
.p-logo { display: inline-flex; filter: drop-shadow(0 2px 6px rgba(0,0,0,.25)); } .p-out { border: 0; background: rgba(255,255,255,.16); color: #fff; width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; cursor: pointer; }
.app-main { padding: 16px; display: grid; gap: 14px; align-content: start; }
.bare .p-hero, .bare .p-card, .bare .p-demo, .bare .flash { margin-left: 18px; margin-right: 18px; }
.p-hero { padding: 64px 4px 18px; color: #fff; } .p-hero h1 { margin: 0 0 8px; font-size: 2rem; letter-spacing: -.02em; } .p-hero p { margin: 0; color: #c7d2fe; }
.p-hello { padding: 4px 2px; } .p-hello small { color: var(--muted); } .p-hello h1 { margin: 0; font-size: 1.5rem; letter-spacing: -.02em; } .p-hello p { margin: 2px 0 0; color: var(--muted); }
.p-card { background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 16px; box-shadow: 0 6px 24px rgba(15,23,42,.06); display: grid; gap: 10px; }
.p-card h3, .p-h { margin: 6px 0 0; font-size: .95rem; } .p-card p { margin: 0; }
.p-dev { display: flex; align-items: center; gap: 12px; } .p-dev > div { flex: 1; line-height: 1.25; } .p-dev b { display: block; font-size: 1.05rem; } .p-dev small { color: var(--muted); }
.p-ic { width: 48px; height: 48px; border-radius: 15px; display: grid; place-items: center; background: #eef2ff; color: var(--a); }
.p-status { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 14px; font-weight: 600; } .p-status.good { background: #ecfdf5; color: #047857; } .p-status.bad { background: #fff7ed; color: #b45309; } .p-status.off { background: #f1f5f9; color: #475569; }
.p-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; } .p-grid > div { padding: 10px 12px; background: #f8fafc; border-radius: 12px; display: grid; } .p-grid small { color: var(--muted); font-size: 12px; } .p-grid b { font-size: 1.05rem; }
.p-todo { padding: 12px 14px; border-radius: 14px; background: #fffbeb; border: 1px solid #fde68a; } .p-todo b { display: block; margin-bottom: 2px; } .p-todo p { color: #78350f; font-size: 14px; }
.p-score { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 10px; color: var(--muted); } .p-score b { color: var(--ink); font-size: 1.1rem; } .p-bar { height: 8px; border-radius: 99px; background: #e2e8f0; overflow: hidden; } .p-bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--a2), var(--a)); border-radius: 99px; }
.p-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; width: 100%; padding: 14px 18px; border: 0; border-radius: 14px; background: linear-gradient(135deg, #5b52f0, #4338ca); color: #fff; font-weight: 700; font-size: 1rem; cursor: pointer; text-decoration: none; box-shadow: 0 8px 20px rgba(79,70,229,.3); }
.p-btn.ghost { background: #eef2ff; color: var(--a); box-shadow: none; } .p-btn.danger { background: linear-gradient(135deg, #ef4444, #b91c1c); box-shadow: 0 8px 20px rgba(220,38,38,.3); }
.p-form { display: grid; gap: 8px; } .p-form label, .p-login label { font-weight: 600; font-size: 14px; } .p-form input, .p-form select, .p-form textarea, .p-login input { width: 100%; padding: 13px 14px; border: 1.5px solid #cbd5e1; border-radius: 14px; background: #fff; font-size: 16px; } .p-form input:focus, .p-form textarea:focus, .p-form select:focus, .p-login input:focus { outline: 3px solid rgba(79,70,229,.2); border-color: var(--a); }
.p-login input { text-align: center; font-size: 1.5rem; letter-spacing: .25em; font-weight: 700; text-transform: uppercase; } .p-login small { text-align: center; color: var(--muted); }
.p-demo { text-align: center; color: #a5b4fc; font-size: 13px; } .p-demo button { border: 1px dashed #818cf8; background: transparent; color: #e0e7ff; border-radius: 99px; padding: 4px 12px; cursor: pointer; }
.p-row { display: flex; justify-content: space-between; gap: 8px; align-items: center; } .p-reply { padding: 10px 12px; background: #eef2ff; border-radius: 12px; font-size: 14px; } .p-lost { border: 2px solid #fca5a5; background: #fff5f5; } .p-help { text-align: center; }
.badge { display: inline-block; padding: 2px 9px; border-radius: 99px; font-size: 11.5px; font-weight: 700; background: #f1f5f9; color: #64748b; white-space: nowrap; } .badge.ok { background: #d1fae5; color: #047857; } .badge.warn { background: #fef3c7; color: #b45309; } .badge.bad { background: #fee2e2; color: #b91c1c; } .badge.info { background: #e0e7ff; color: #4338ca; }
.muted { color: var(--muted); } .flash { padding: 12px 14px; border-radius: 14px; background: #ecfdf5; color: #065f46; border: 1px solid #a7f3d0; } .flash.err { background: #fef2f2; color: #991b1b; border-color: #fecaca; }
.tabbar { position: fixed; bottom: 0; left: 50%; transform: translateX(-50%); width: 100%; max-width: 480px; display: grid; grid-template-columns: repeat(3, 1fr); padding: 8px 8px calc(8px + env(safe-area-inset-bottom)); background: rgba(255,255,255,.94); backdrop-filter: blur(14px); border-top: 1px solid var(--line); z-index: 30; }
.tabbar a { display: grid; justify-items: center; gap: 2px; padding: 6px; border-radius: 14px; color: var(--muted); font-size: 12px; font-weight: 600; text-decoration: none; } .tabbar a.on { color: var(--a); background: #eef2ff; }
.credit { padding: 6px 16px 0; text-align: center; font-size: 11.5px; color: #94a3b8; display: grid; gap: 2px; } .credit a { color: #64748b; } .bare .credit { color: #94a3b8; } .credit-contact { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; } .credit .ico { display: none; }
.inline { display: inline; }
.lang-switch { display: inline-flex; gap: 6px; font-size: 12px; font-weight: 700; color: #e0e7ff; } .lang-switch a { color: #c7d2fe; text-decoration: none; } .lang-switch b { color: #fff; } .lang-switch i { font-style: normal; opacity: .4; }
