:root {
  --bg: #f7f8fa;
  --surface: #ffffff;
  --border: #e2e5ea;
  --text: #1a1d24;
  --muted: #6b7280;
  --accent: #1a73e8;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  line-height: 1.5;
  display: flex;
  min-height: 100vh;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.wrap {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 40px;
  width: 100%;
  max-width: 400px;
  text-align: center;
}

h1 { font-size: 26px; font-weight: 700; margin-bottom: 8px; }
.sub { color: var(--muted); margin-bottom: 28px; }
.note { color: var(--muted); font-size: 13px; margin-top: 24px; }
.error { color: #b91c1c; font-size: 14px; margin-bottom: 16px; }

.btn-google {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  padding: 12px 24px;
  border-radius: 8px;
  transition: opacity .15s;
}
.btn-google:hover { opacity: .9; }

.btn-secondary {
  display: inline-block;
  margin-top: 20px;
  color: var(--muted);
  text-decoration: none;
  font-size: 14px;
  border: 1px solid var(--border);
  padding: 8px 18px;
  border-radius: 8px;
}
.btn-secondary:hover { color: var(--text); }

.card {
  display: flex;
  align-items: center;
  gap: 14px;
  text-align: left;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 16px;
  margin-top: 8px;
}
.avatar { width: 48px; height: 48px; border-radius: 50%; }
.name { font-weight: 600; }
.email { color: var(--muted); font-size: 14px; }

/* ── Halaman Process (tabel) ─────────────────────────────── */
/* Lebarkan container hanya di halaman yang punya tabel hasil */
body:has(#resultTable) .wrap { max-width: 960px; text-align: left; }

.tbl-wrap { overflow-x: auto; margin: 16px 0; }
#resultTable { width: 100%; border-collapse: collapse; font-size: 13px; }
#resultTable th, #resultTable td {
  border-bottom: 1px solid var(--border);
  padding: 8px 10px; text-align: left; vertical-align: top;
}
#resultTable th {
  font-size: 11px; text-transform: uppercase; letter-spacing: .04em;
  color: var(--muted); background: #f0f2f5;
}
#resultTable td.c-subject { max-width: 280px; word-break: break-word; }

.badge { font-size: 11px; font-weight: 600; padding: 2px 8px; border-radius: 20px; white-space: nowrap; }
.badge.wait { background:#eef0f3; color:#6b7280; }
.badge.proc { background:#fef3c7; color:#92400e; }
.badge.ok   { background:#dcfce7; color:#166534; }
.badge.none { background:#f3f4f6; color:#9ca3af; }
.badge.err  { background:#fee2e2; color:#b91c1c; }

#startBtn:disabled { opacity:.5; cursor:not-allowed; }

/* Tombol aksi di dashboard */
.btn-primary {
  display:inline-block; background:var(--accent); color:#fff; text-decoration:none;
  font-weight:600; padding:12px 24px; border-radius:8px; margin-top:20px;
}
.btn-primary:hover { opacity:.9; }
