/* EvilPet — clean, minimal, "Google-like" */
:root {
  --bg: #ffffff;
  --fg: #202124;
  --muted: #5f6368;
  --border: #dadce0;
  --accent: #1a73e8;
  --accent-fg: #ffffff;
  --card: #ffffff;
  --shadow: 0 1px 2px rgba(60,64,67,.3), 0 1px 3px 1px rgba(60,64,67,.15);
  --radius: 12px;
  --crit: #d93025; --high: #e8710a; --med: #f9ab00; --low: #188038; --info: #5f6368;
  --ok: #188038; --warn: #e8710a; --err: #d93025;
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--fg); background: var(--bg); line-height: 1.5; font-size: 15px;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
h1 { font-size: 28px; font-weight: 500; margin: 0 0 8px; }
h2 { font-size: 18px; font-weight: 500; margin: 24px 0 12px; }
.muted { color: var(--muted); font-size: 13px; }
hr { border: none; border-top: 1px solid var(--border); margin: 20px 0; }

/* top bar */
.topbar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 24px; border-bottom: 1px solid var(--border);
  position: sticky; top: 0; background: rgba(255,255,255,.9); backdrop-filter: blur(6px); z-index: 10;
}
.brand { font-size: 18px; font-weight: 600; color: var(--fg); }
.brand span { font-weight: 500; }
.brand:hover { text-decoration: none; }
.topbar nav { display: flex; gap: 18px; font-size: 14px; }

/* layout */
.container { max-width: 880px; margin: 0 auto; padding: 32px 24px 80px; }
.footer { text-align: center; color: var(--muted); font-size: 12px; padding: 20px; }

/* hero */
.hero { text-align: center; padding: 48px 0 24px; }
.hero h1 { font-size: 40px; letter-spacing: -1px; }
.hero .tagline { font-size: 20px; color: var(--muted); margin-top: 4px; }
.scanform { display: flex; gap: 10px; max-width: 560px; margin: 28px auto 0; }
.scanform input {
  flex: 1; font-size: 18px; padding: 14px 18px; border: 1px solid var(--border);
  border-radius: var(--radius); outline: none; box-shadow: var(--shadow);
}
.scanform input:focus { border-color: var(--accent); }
.scanform button, button {
  font-size: 15px; padding: 12px 22px; border: none; border-radius: var(--radius);
  background: var(--accent); color: var(--accent-fg); cursor: pointer; font-weight: 500;
}
.scanform button:hover, button:hover { background: #1667d1; }
.hero .sub { color: var(--muted); margin-top: 16px; }
.hint { margin-top: 28px; color: var(--muted); }

/* scan result */
.scan-result { max-width: 560px; margin: 20px auto 0; padding: 14px 18px; border-radius: var(--radius);
  background: #f1f3f4; text-align: left; }
.scan-result.ok { background: #e6f4ea; }
.scan-result.err { background: #fce8e6; }
.scan-result a { font-weight: 500; }

/* auth card */
.auth-card { max-width: 420px; margin: 40px auto; padding: 28px; border: 1px solid var(--border);
  border-radius: var(--radius); box-shadow: var(--shadow); }
.auth-card label { display: block; font-size: 13px; color: var(--muted); margin: 14px 0 6px; }
.auth-card input {
  width: 100%; font-size: 16px; padding: 12px 14px; border: 1px solid var(--border);
  border-radius: 8px; outline: none;
}
.auth-card input:focus { border-color: var(--accent); }
.auth-card button { width: 100%; margin-top: 16px; }
.error { color: var(--err); font-size: 14px; margin-top: 14px; }

/* tables */
.scantable { width: 100%; border-collapse: collapse; font-size: 14px; }
.scantable th { text-align: left; color: var(--muted); font-weight: 500; font-size: 12px;
  text-transform: uppercase; letter-spacing: .4px; padding: 8px 10px; border-bottom: 1px solid var(--border); }
.scantable td { padding: 10px; border-bottom: 1px solid var(--border); vertical-align: middle; }
.scantable .dom { font-weight: 500; }
.recent { margin-top: 32px; }

/* badges + severity */
.badge { display: inline-block; padding: 2px 8px; border-radius: 999px; font-size: 12px; font-weight: 500;
  background: #f1f3f4; color: var(--muted); }
.badge.st-queued { background: #e8f0fe; color: #1a56b0; }
.badge.st-running { background: #fef7e0; color: #b06000; }
.badge.st-complete { background: #e6f4ea; color: #137333; }
.badge.st-error { background: #fce8e6; color: #c5221f; }
.badge.st-rejected_dedup, .badge.st-rejected_subdomain_limit { background: #f1f3f4; color: var(--muted); }
.qpos { margin-left: 6px; font-size: 12px; color: var(--muted); }
.err { color: var(--err); cursor: help; }
.sev { display: inline-block; padding: 1px 7px; border-radius: 6px; font-size: 11px; font-weight: 600;
  margin-right: 5px; color: #fff; }
.sev-critical { background: var(--crit); }
.sev-high { background: var(--high); }
.sev-medium { background: var(--med); color: #3c2f00; }
.sev-low { background: var(--low); }
.sev-info { background: var(--info); }

/* queue strip */
.dash-head { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; }
.queue-strip { display: flex; gap: 18px; align-items: center; flex-wrap: wrap;
  padding: 12px 16px; border: 1px solid var(--border); border-radius: var(--radius); margin: 16px 0; font-size: 14px; }

/* queue page */
.queue-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin: 20px 0; }
.stat { text-align: center; padding: 20px 12px; border: 1px solid var(--border); border-radius: var(--radius); }
.stat-num { font-size: 34px; font-weight: 600; }
.stat-label { color: var(--muted); font-size: 13px; }

/* report */
.report-head { border-bottom: 1px solid var(--border); padding-bottom: 12px; margin-bottom: 20px; }
.report-body { font-size: 15px; }
.report-body h1, .report-body h2, .report-body h3 { font-weight: 600; margin-top: 24px; }
.report-body h1 { font-size: 24px; }
.report-body h2 { font-size: 19px; border-bottom: 1px solid var(--border); padding-bottom: 4px; }
.report-body pre { background: #f6f8fa; padding: 12px 14px; border-radius: 8px; overflow-x: auto; font-size: 13px; }
.report-body code { background: #f6f8fa; padding: 1px 5px; border-radius: 4px; font-size: 13px; }
.report-body pre code { background: none; padding: 0; }
.report-body table { border-collapse: collapse; width: 100%; margin: 12px 0; font-size: 13px; }
.report-body th, .report-body td { border: 1px solid var(--border); padding: 7px 10px; text-align: left; }
.report-body blockquote { border-left: 3px solid var(--border); margin: 12px 0; padding: 4px 14px; color: var(--muted); }
.report-body ul, .report-body ol { padding-left: 22px; }

/* findings detail page */
.findings-link { text-decoration: none; color: inherit; }
.findings-link:hover { text-decoration: underline; }
.err-note { background: #fef7e0; color: #b06000; padding: 10px 14px; border-radius: 8px; font-size: 14px; margin: 12px 0; }
.findings-section { margin-bottom: 28px; }
.findings-section h2 { font-size: 18px; margin-bottom: 12px; }
.finding { border: 1px solid var(--border); border-radius: 10px; padding: 12px 16px; margin-bottom: 10px; background: #fff; }
.finding summary { cursor: pointer; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-size: 15px; }
.finding[open] summary { margin-bottom: 10px; }
.finding-body p { margin: 8px 0; line-height: 1.55; }
.finding-body pre.poc { background: #f6f8fa; padding: 10px 14px; border-radius: 8px; overflow-x: auto; font-size: 13px; white-space: pre-wrap; }
.scan-progress { background: #f6f8fa; padding: 28px; border-radius: 12px; text-align: center; margin-top: 20px; }

/* responsive */
@media (max-width: 640px) {
  .container { padding: 20px 16px 60px; }
  .hero h1 { font-size: 30px; }
  .scanform { flex-direction: column; }
  .scanform button { width: 100%; }
  .queue-grid { grid-template-columns: repeat(2, 1fr); }
  .scantable { font-size: 13px; }
  .scantable th:nth-child(2), .scantable td:nth-child(2) { display: none; }
}
