/* Tracker look, copied from the extension: navy main window with a sky border, white windows,
   pale 3D buttons with a dark edge. Buttons: mouse over changes nothing, press sinks 2px, release returns. */
:root {
  --navy: #0F172A; --ink: #1E293B; --muted: #64748B; --line: #E2E8F0; --soft: #F8FAFC; --page: #EEF2F7;
  --sky: #38BDF8; --blue: #0284C7; --green: #059669; --red: #DC2626;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body { font-family: 'Plus Jakarta Sans', 'Noto Sans Bengali', system-ui, -apple-system, sans-serif; background: var(--page); color: var(--navy); font-size: 14px; line-height: 1.5; min-height: 100vh; }
[hidden] { display: none !important; }
a { color: var(--blue); }

/* ---------- top bar (main window) ---------- */
.bar { background: var(--navy); border-bottom: 2px solid var(--sky); }
.bar-in { max-width: 1040px; margin: 0 auto; padding: 10px 16px; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 10px; margin-right: auto; min-width: 0; }
.brand img { width: 34px; height: 34px; }
.brand b { display: block; font-size: 17px; font-weight: 900; letter-spacing: .4px; line-height: 1.15; background: linear-gradient(135deg, #38BDF8, #EC4899); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.brand span { display: block; font-size: 11px; font-weight: 700; color: #CBD5E1; line-height: 1.3; }
.who { font-size: 11px; font-weight: 700; color: #94A3B8; overflow-wrap: anywhere; }

.wrap { max-width: 1040px; margin: 0 auto; padding: 16px; display: flex; flex-direction: column; gap: 14px; }
nav.wrap { padding-bottom: 0; }
.find { display: flex; gap: 8px; }
.find input { flex: 1; min-width: 0; }
.card-head select { width: auto; font-size: 12.5px; padding: 5px 8px; }

/* ---------- buttons ---------- */
.btn { --bg: #FFFFFF; --fg: #1E293B; --bd: #CBD5E1; --sh: #64748B;
  font: inherit; font-size: 12.5px; font-weight: 800; line-height: 1.2; text-align: center; text-decoration: none; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 34px; padding: 7px 14px;
  border-radius: 7px; background: var(--bg); color: var(--fg); border: 1.5px solid var(--bd);
  box-shadow: 0 2px 0 0 var(--sh); transform: translateY(0); transition: transform 90ms ease, box-shadow 90ms ease; -webkit-tap-highlight-color: transparent; }
.btn:hover { background: var(--bg); color: var(--fg); }
.btn:active:not(:disabled) { transform: translateY(2px); box-shadow: 0 0 0 0 var(--sh); }
.btn:disabled { opacity: .55; cursor: not-allowed; }
.btn:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
.or { --bg: #FFEDD5; --fg: #9A3412; --bd: #FDBA74; --sh: #C2410C; }
.sk { --bg: #E0F2FE; --fg: #075985; --bd: #7DD3FC; --sh: #0369A1; }
.gr { --bg: #D1FAE5; --fg: #065F46; --bd: #6EE7B7; --sh: #047857; }
.in { --bg: #EEF2FF; --fg: #3730A3; --bd: #C7D2FE; --sh: #4338CA; }
.bl { --bg: #DBEAFE; --fg: #1E40AF; --bd: #93C5FD; --sh: #1D4ED8; }
.pu { --bg: #F3E8FF; --fg: #6B21A8; --bd: #D8B4FE; --sh: #7E22CE; }
.ro { --bg: #FFE4E6; --fg: #9F1239; --bd: #FDA4AF; --sh: #BE123C; }
.slate { --bg: #475569; --fg: #FFFFFF; --bd: #334155; --sh: #1E293B; }
.small { min-height: 28px; padding: 4px 10px; font-size: 11.5px; }
.wide { width: 100%; }

.tabs { display: flex; gap: 8px; flex-wrap: wrap; }
/* the open page: the same button pressed in, filled with its edge colour */
.tabs .btn[aria-current="page"] { background: var(--sh); color: #FFFFFF; border-color: var(--sh); transform: translateY(2px); box-shadow: 0 0 0 0 var(--sh); }

/* ---------- windows and sections ---------- */
.card { background: #FFFFFF; border: 1.5px solid var(--line); border-radius: 12px; overflow: hidden; }
.card-head { background: var(--soft); border-bottom: 1px solid var(--line); padding: 10px 16px; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.card-head h2 { font-size: 13.5px; font-weight: 800; color: var(--ink); margin-right: auto; }
.card-body { padding: 14px 16px; display: flex; flex-direction: column; gap: 12px; }
.sec-t { font-size: 10.5px; font-weight: 900; color: var(--blue); text-transform: uppercase; letter-spacing: .5px; }

/* coloured panels, like Select Profile / Applicant Info / Temporary ID in the main window */
.panels { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 12px; }
.panel { border: 1.5px solid var(--pb); background: var(--pg); border-radius: 10px; padding: 12px 14px; min-width: 0; }
.panel .k { font-size: 10.5px; font-weight: 900; text-transform: uppercase; letter-spacing: .5px; color: var(--pt); }
.panel .v { font-size: 24px; font-weight: 900; color: var(--navy); font-variant-numeric: tabular-nums; overflow-wrap: anywhere; line-height: 1.3; }
.p-green { --pg: #ECFDF5; --pb: #34D399; --pt: #047857; }
.p-orange { --pg: #FFFBEB; --pb: #F59E0B; --pt: #B45309; }
.p-pink { --pg: #FDF2F8; --pb: #F472B6; --pt: #BE185D; }
.p-sky { --pg: #F0F9FF; --pb: #38BDF8; --pt: #0369A1; }

/* ---------- forms ---------- */
label { display: block; font-size: 11.5px; font-weight: 800; color: #475467; margin-bottom: 4px; }
input, select, textarea { font: inherit; font-size: 16px; font-weight: 600; width: 100%; padding: 8px 11px; border: 1.5px solid #CBD5E1; border-radius: 6px; background: #FFFFFF; color: var(--navy); }
textarea { resize: vertical; min-height: 96px; }
input:read-only { background: var(--soft); color: var(--muted); }
.row { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 12px; align-items: end; }
.hint { font-size: 11.5px; font-weight: 600; color: var(--muted); }
.chips { display: grid; grid-template-columns: repeat(auto-fit, minmax(62px, 1fr)); gap: 6px; }
.chip { font: inherit; font-size: 12px; font-weight: 800; height: 36px; border-radius: 6px; border: 1px solid #CBD5E1; background: #FFFFFF; color: #334155; cursor: pointer; }
.chip[aria-pressed="true"] { border: 1.5px solid #059669; background: #ECFDF5; color: #065F46; }

/* ---------- notes ---------- */
.note { border-radius: 10px; padding: 12px 14px; font-size: 13px; border: 1.5px solid; overflow-wrap: anywhere; }
.note.ok { background: #F0FDF4; border-color: #BBF7D0; color: #166534; }
.note.warn { background: #FEF3C7; border-color: #FCD34D; color: #92400E; }
.note.err { background: #FEE2E2; border-color: #FCA5A5; color: #991B1B; }
.note.plain { background: var(--soft); border-color: var(--line); color: var(--ink); white-space: pre-wrap; }
.pay { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.pay .num { font-family: ui-monospace, Consolas, monospace; font-size: 18px; font-weight: 900; letter-spacing: .5px; }
.mfs { font-size: 10.5px; font-weight: 900; padding: 2px 8px; border-radius: 4px; color: #FFFFFF; }
.mfs.bkash { background: #E2136E; } .mfs.nagad { background: #C2410C; } .mfs.rocket { background: #7E22CE; }

/* ---------- pills ---------- */
.pill { display: inline-block; font-size: 10.5px; font-weight: 800; line-height: 1.6; padding: 1px 9px; border-radius: 9999px; border: 1px solid; white-space: nowrap; }
.pill.good { background: #D1FAE5; color: #065F46; border-color: #34D399; }
.pill.wait { background: #FEF3C7; color: #B45309; border-color: #FCD34D; }
.pill.bad { background: #FEE2E2; color: #B91C1C; border-color: #FCA5A5; }
.pill.off { background: #F1F5F9; color: #475569; border-color: #CBD5E1; }
.pill.premium { background: linear-gradient(135deg, #FFD700, #FFA500); color: #78350F; border-color: #FDE68A; text-transform: uppercase; }
.pill.regular { background: linear-gradient(135deg, #0369A1, #075985); color: #FFFFFF; border-color: #7DD3FC; text-transform: uppercase; }

/* ---------- tables (become stacked rows on a phone) ---------- */
table { width: 100%; border-collapse: collapse; font-size: 12.5px; }
th { text-align: left; font-size: 10.5px; font-weight: 900; color: var(--muted); text-transform: uppercase; letter-spacing: .4px; padding: 6px 10px; border-bottom: 1.5px solid var(--line); white-space: nowrap; }
td { padding: 9px 10px; border-bottom: 1px solid var(--line); vertical-align: middle; overflow-wrap: anywhere; }
tr:last-child td { border-bottom: 0; }
.money { font-weight: 900; font-variant-numeric: tabular-nums; white-space: nowrap; }
.plus { color: var(--green); } .minus { color: var(--red); }
.mono { font-family: ui-monospace, Consolas, monospace; font-weight: 700; }
.sub { display: block; font-size: 11px; color: var(--muted); font-weight: 600; }
.acts { display: flex; gap: 8px; flex-wrap: wrap; }
.empty { text-align: center; padding: 26px 10px; color: var(--muted); font-size: 12.5px; font-weight: 600; }
@media (max-width: 700px) {
  table, tbody, tr, td { display: block; width: 100%; }
  thead { display: none; }
  tr { border: 1.5px solid var(--line); border-radius: 10px; margin-bottom: 10px; padding: 4px 0; background: var(--soft); }
  td { border: 0; padding: 4px 12px; display: flex; justify-content: space-between; gap: 12px; align-items: baseline; text-align: right; }
  td::before { content: attr(data-th); font-size: 10.5px; font-weight: 900; color: var(--muted); text-transform: uppercase; text-align: left; flex: 0 0 auto; }
  td[data-th=""] { justify-content: flex-end; }
}

/* ---------- sign-in window ---------- */
.gate { min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px; padding: 16px; background: var(--navy); }
.gate .card { width: 100%; max-width: 380px; border: 2px solid var(--sky); border-radius: 15px; box-shadow: 0 25px 60px rgba(0, 0, 0, .45); }
.gate .card-body { align-items: stretch; padding: 18px 20px 22px; }
.gate .brand b { font-size: 22px; }
.gate .brand span { color: var(--muted); }
#google-btn { display: flex; justify-content: center; min-height: 44px; }

.panel .btn { margin-top: 6px; }
.panel .v + .btn { display: flex; width: max-content; }
@media (max-width: 520px) { .who { order: 3; width: 100%; } }

.mini { text-align: center; font-size: 12px; font-weight: 700; color: var(--muted); padding: 14px 16px 24px; overflow-wrap: anywhere; line-height: 2; }
.gate .mini { color: #94A3B8; padding: 0; }
.gate .mini a { color: #7DD3FC; }

/* ---------- admin section cards ---------- */
.sections { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 14px; }
.sections .btn { flex-direction: column; align-items: flex-start; text-align: left; padding: 14px 16px; border-radius: 10px; gap: 10px; }
.sections .name { font-size: 14px; font-weight: 900; }
.sections .count { font-size: 34px; font-weight: 900; line-height: 1; font-variant-numeric: tabular-nums; }
.sections .lbl { font-size: 11px; font-weight: 800; }

/* ---------- dialog and toast ---------- */
dialog { margin: auto; width: min(440px, calc(100vw - 24px)); max-height: calc(100vh - 24px); border: 2px solid var(--sky); border-radius: 15px; padding: 0; background: #FFFFFF; color: var(--navy); box-shadow: 0 25px 60px rgba(0, 0, 0, .45); overflow: auto; }
dialog::backdrop { background: rgba(15, 23, 42, .55); }
.dlg-foot { background: var(--soft); border-top: 1.5px solid var(--line); padding: 10px 16px 12px; display: flex; gap: 10px; justify-content: flex-end; }
dl { display: grid; grid-template-columns: auto 1fr; gap: 4px 14px; font-size: 13px; }
dt { color: var(--muted); font-weight: 700; } dd { font-weight: 800; text-align: right; overflow-wrap: anywhere; }
#toast { position: fixed; left: 50%; bottom: 20px; transform: translateX(-50%); max-width: calc(100vw - 24px); padding: 10px 18px; border-radius: 9999px; font-size: 13px; font-weight: 800; color: #FFFFFF; background: #047857; box-shadow: 0 8px 24px rgba(0, 0, 0, .3); z-index: 20; text-align: center; }
#toast.err { background: #B91C1C; }
@media (prefers-reduced-motion: reduce) { .btn { transition: none; } }
