/* EasyRoll Attendance - phone app look. Big buttons, readable in sunlight. */
:root {
    --blue: #1e5aa8; --blue-dark: #164684; --green: #1f9d5c; --red: #c0392b; --orange: #d9822b;
    --text: #1d2733; --muted: #6b7785; --line: #e3e8ee; --bg: #f4f6f9; --card: #ffffff;
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; background: var(--bg); color: var(--text);
    font-family: -apple-system, "Segoe UI", Roboto, "Noto Sans", Arial, sans-serif; font-size: 17px;
    -webkit-tap-highlight-color: transparent; }
a { color: var(--blue); }
button { font: inherit; }

.splash { display: flex; flex-direction: column; align-items: center; justify-content: center; height: 100vh; gap: 10px; }
.splash-name { font-size: 22px; font-weight: 600; }
.splash-text { color: var(--muted); }

/* top bar */
.bar { position: sticky; top: 0; z-index: 5; background: var(--blue); color: #fff;
    padding: calc(10px + env(safe-area-inset-top)) 14px 10px; display: flex; align-items: center; gap: 10px; }
.bar .title { font-weight: 600; font-size: 18px; flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bar .dot { width: 10px; height: 10px; border-radius: 50%; background: #7fe0a8; flex: none; }
.bar .dot.off { background: #ffb4a8; }
.bar .net { font-size: 13px; opacity: .9; }

.page { max-width: 520px; margin: 0 auto; padding: 14px 14px calc(84px + env(safe-area-inset-bottom)); }

/* bottom tabs */
.tabs { position: fixed; left: 0; right: 0; bottom: 0; z-index: 5; background: #fff; border-top: 1px solid var(--line);
    display: flex; padding-bottom: env(safe-area-inset-bottom); }
.tabs a { flex: 1; text-align: center; padding: 10px 4px; color: var(--muted); text-decoration: none; font-size: 14px; }
.tabs a.active { color: var(--blue); font-weight: 600; }
.tabs .ico { display: block; font-size: 22px; line-height: 26px; }

.card { background: var(--card); border-radius: 14px; padding: 16px; margin-bottom: 14px; box-shadow: 0 1px 3px rgba(0,0,0,.06); }
.who { font-size: 20px; font-weight: 600; }
.sub { color: var(--muted); font-size: 15px; margin-top: 2px; }
.clock { font-size: 40px; font-weight: 300; text-align: center; margin: 6px 0 2px; }
.date { text-align: center; color: var(--muted); }

.btn { display: block; width: 100%; border: 0; border-radius: 14px; padding: 16px; font-size: 19px; font-weight: 600;
    color: #fff; background: var(--blue); cursor: pointer; }
.btn:active { filter: brightness(.92); }
.btn:disabled { opacity: .5; }
.btn.in { background: var(--green); padding: 26px 16px; font-size: 24px; }
.btn.out { background: var(--red); padding: 26px 16px; font-size: 24px; }
.btn.light { background: #e9eef5; color: var(--blue); }
.btn + .btn { margin-top: 10px; }
.link { background: none; border: 0; color: var(--blue); padding: 12px; width: 100%; font-size: 16px; }

label { display: block; font-size: 15px; color: var(--muted); margin: 12px 0 4px; }
input, textarea { width: 100%; font: inherit; font-size: 18px; padding: 12px; border: 1px solid #cdd6e0; border-radius: 10px; background: #fff; }
input:focus, textarea:focus { outline: 2px solid var(--blue); border-color: transparent; }
textarea { resize: none; height: 70px; }

.msg { padding: 12px 14px; border-radius: 10px; margin: 12px 0; font-size: 16px; }
.msg.err { background: #fdecea; color: #8e2a20; }
.msg.ok { background: #e6f6ed; color: #17663d; }
.msg.warn { background: #fdf3e6; color: #8a4f12; }

.logo { text-align: center; margin: 26px 0 8px; }
.logo .name { font-size: 22px; font-weight: 600; margin-top: 8px; }

/* camera */
.cam { position: relative; width: 100%; aspect-ratio: 1 / 1; background: #111; border-radius: 14px; overflow: hidden; }
.cam video, .cam img { width: 100%; height: 100%; object-fit: cover; transform: scaleX(-1); }
.cam img.taken { transform: none; }
.cam .hint { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: #ddd; padding: 20px; text-align: center; }

.row { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.row:last-child { border-bottom: 0; }
.row .k { width: 34px; height: 34px; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: #fff; font-weight: 600; flex: none; }
.row .k.I { background: var(--green); }
.row .k.O { background: var(--red); }
.row .t { font-size: 18px; font-weight: 600; min-width: 64px; }
.row .r { flex: 1; color: var(--muted); font-size: 15px; overflow: hidden; text-overflow: ellipsis; }
.pill { font-size: 12px; border-radius: 10px; padding: 2px 8px; background: #fdf3e6; color: #8a4f12; white-space: nowrap; }
.pill.ok { background: #e6f6ed; color: #17663d; }
.day { font-weight: 600; margin: 4px 0; color: var(--muted); font-size: 15px; }
.gps { font-size: 15px; color: var(--muted); margin: 10px 0 0; }
.gps.ok { color: var(--green); }
.gps.bad { color: var(--red); }
.big-ok { text-align: center; font-size: 60px; color: var(--green); line-height: 1; }

/* help page */
.help h2 { font-size: 20px; margin: 6px 0 12px; }
.help h3 { font-size: 17px; margin: 0 0 6px; color: var(--blue); }
.help ul, .help ol { margin: 4px 0; padding-left: 20px; }
.help li { margin: 4px 0; }
.help p { margin: 6px 0; }
.langsw { display: flex; gap: 8px; margin-bottom: 12px; }
.langsw button { flex: 1; border: 1px solid #cdd6e0; background: #fff; border-radius: 10px; padding: 10px; font-size: 16px; color: var(--blue); }
.langsw button.on { background: var(--blue); color: #fff; border-color: var(--blue); }

#blazor-error-ui { background: #fdecea; bottom: 0; display: none; left: 0; padding: 12px; position: fixed; width: 100%; z-index: 1000; }
