/* EZScan EASM — supplemental styles beyond Tailwind utility classes */

html { scroll-behavior: smooth; }

code {
  font-family: 'JetBrains Mono', 'SFMono-Regular', Consolas, monospace;
  background: rgba(255,255,255,0.06);
  padding: 0.1em 0.35em;
  border-radius: 0.3em;
}

/* ---------------- Glass panel ---------------- */
.glass-panel {
  background: rgba(23, 29, 46, 0.6);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 1rem;
  backdrop-filter: blur(12px);
}

/* ---------------- Metric cards ---------------- */
.metric-card {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  background: rgba(23, 29, 46, 0.6);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 1rem;
  padding: 1.1rem 1.25rem;
  backdrop-filter: blur(12px);
}
.metric-icon {
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  flex-shrink: 0;
}
.metric-value {
  font-size: 1.6rem;
  font-weight: 800;
  color: #fff;
  line-height: 1.1;
}
.metric-label {
  font-size: 0.7rem;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  margin-top: 0.15rem;
}

/* ---------------- Category card ---------------- */
.category-card {
  border-radius: 0.75rem;
  padding: 0.9rem 1rem;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.03);
}

/* ---------------- Action buttons ---------------- */
.action-btn {
  background: linear-gradient(135deg, #06b6d4, #4f46e5);
  color: #fff;
  font-weight: 600;
  padding: 0.75rem 1.5rem;
  border-radius: 0.75rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: opacity 0.15s;
  box-shadow: 0 8px 20px -6px rgba(6,182,212,0.35);
}
.action-btn:hover { opacity: 0.9; }
.action-btn-secondary {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  color: #cbd5e1;
  font-weight: 600;
  padding: 0.75rem 1.5rem;
  border-radius: 0.75rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: background 0.15s;
}
.action-btn-secondary:hover { background: rgba(255,255,255,0.12); }

/* ---------------- Tabs ---------------- */
.tab-btn {
  padding: 0.9rem 1.25rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: #94a3b8;
  border-bottom: 2px solid transparent;
  white-space: nowrap;
  transition: color 0.15s, border-color 0.15s;
}
.tab-btn:hover { color: #cbd5e1; }
.tab-btn.active {
  color: #22d3ee;
  border-bottom-color: #22d3ee;
}
.tab-panel { }

/* ---------------- Tables ---------------- */
table thead th { font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.03em; }
table tbody tr { border-bottom: 1px solid rgba(255,255,255,0.06); }
table tbody tr:hover { background: rgba(255,255,255,0.03); }
table tbody td { padding: 0.75rem 1rem 0.75rem 0; vertical-align: top; }

/* ---------------- Status / severity badges ---------------- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  white-space: nowrap;
}
.badge-critical { background: rgba(220,38,38,0.15); color: #f87171; border: 1px solid rgba(220,38,38,0.3); }
.badge-high     { background: rgba(239,68,68,0.12);  color: #fb923c; border: 1px solid rgba(239,68,68,0.25); }
.badge-medium   { background: rgba(245,158,11,0.12); color: #fbbf24; border: 1px solid rgba(245,158,11,0.25); }
.badge-low      { background: rgba(59,130,246,0.12); color: #60a5fa; border: 1px solid rgba(59,130,246,0.25); }
.badge-info     { background: rgba(148,163,184,0.12);color: #94a3b8; border: 1px solid rgba(148,163,184,0.25); }

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.7rem;
  font-weight: 600;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
}
.status-live       { background: rgba(16,185,129,0.12); color: #34d399; }
.status-dns-only    { background: rgba(245,158,11,0.12); color: #fbbf24; }
.status-cname-only  { background: rgba(239,68,68,0.12); color: #f87171; }
.status-no-dns      { background: rgba(148,163,184,0.12); color: #94a3b8; }
.status-unknown     { background: rgba(148,163,184,0.12); color: #94a3b8; }

.tech-badge {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 600;
  padding: 0.15rem 0.5rem;
  border-radius: 0.4rem;
  background: rgba(99,102,241,0.12);
  color: #a5b4fc;
  border: 1px solid rgba(99,102,241,0.25);
  margin: 0 0.25rem 0.25rem 0;
}

/* ---------------- Grade badges (A-F) ---------------- */
.grade-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 0.75rem;
  font-size: 1.35rem;
  font-weight: 800;
  font-family: 'JetBrains Mono', monospace;
}
.grade-A { background: rgba(34,197,94,0.15); color: #4ade80; border: 1px solid rgba(34,197,94,0.35); }
.grade-B { background: rgba(34,211,238,0.15); color: #22d3ee; border: 1px solid rgba(34,211,238,0.35); }
.grade-C { background: rgba(234,179,8,0.15); color: #fbbf24; border: 1px solid rgba(234,179,8,0.35); }
.grade-D { background: rgba(249,115,22,0.15); color: #fb923c; border: 1px solid rgba(249,115,22,0.35); }
.grade-F { background: rgba(220,38,38,0.15); color: #f87171; border: 1px solid rgba(220,38,38,0.35); }

.grade-badge-sm {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: 0.5rem;
  font-size: 0.95rem;
  font-weight: 800;
  font-family: 'JetBrains Mono', monospace;
  flex-shrink: 0;
}

/* ---------------- Module cards (9 EASM domains) ---------------- */
.module-card {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  background: rgba(23, 29, 46, 0.6);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 1rem;
  padding: 1rem 1.15rem;
  backdrop-filter: blur(12px);
}
.module-card .module-icon {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.65rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
  background: rgba(34,211,238,0.1);
  color: #22d3ee;
}
.module-card .module-name { font-size: 0.8rem; font-weight: 700; color: #e2e8f0; }
.module-card .module-issue-count { font-size: 0.7rem; color: #64748b; margin-top: 0.15rem; }
.module-card .module-score { font-size: 1.1rem; font-weight: 800; }

/* ---------------- Risk Priority Matrix ---------------- */
#risk-matrix { text-align: center; }
#risk-matrix table { border-collapse: separate; border-spacing: 6px; margin: 0 auto; }
#risk-matrix th { font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.03em; color: #94a3b8; padding: 0.4rem 0.6rem; }
#risk-matrix .matrix-row-label {
  font-size: 0.72rem; font-weight: 700; color: #cbd5e1; white-space: nowrap; padding: 0.4rem 0.8rem;
  text-align: right;
}
.matrix-cell {
  min-width: 5.5rem;
  height: 3.5rem;
  border-radius: 0.6rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1rem;
  border: 1px solid rgba(255,255,255,0.06);
  cursor: default;
  transition: transform 0.1s, filter 0.1s;
}
.matrix-cell.has-issues { cursor: pointer; }
.matrix-cell.has-issues:hover { transform: scale(1.05); filter: brightness(1.15); }
.matrix-cell-empty { background: rgba(255,255,255,0.02); color: #475569; }
.matrix-cell-critical { background: rgba(127,29,29,0.55); color: #fca5a5; border-color: rgba(220,38,38,0.4); }
.matrix-cell-high     { background: rgba(220,38,38,0.28); color: #fca5a5; border-color: rgba(220,38,38,0.3); }
.matrix-cell-medium   { background: rgba(245,158,11,0.22); color: #fcd34d; border-color: rgba(245,158,11,0.3); }
.matrix-cell-low      { background: rgba(59,130,246,0.18); color: #93c5fd; border-color: rgba(59,130,246,0.3); }

/* ---------------- Threat intel ---------------- */
.reputation-status-listed { color: #f87171; font-weight: 700; }
.reputation-status-reported { color: #fbbf24; font-weight: 700; }
.reputation-status-clean { color: #34d399; font-weight: 700; }
.breach-item {
  border-radius: 0.75rem;
  border: 1px solid rgba(255,255,255,0.08);
  padding: 0.9rem 1rem;
  background: rgba(255,255,255,0.02);
}
.breach-item.recent { border-left: 3px solid #f87171; }
.breach-item.old { border-left: 3px solid #64748b; }

/* ---------------- Loading stepper ---------------- */
#loading-steps li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.6rem 0.9rem;
  border-radius: 0.6rem;
  border: 1px solid transparent;
}
#loading-steps li .step-icon {
  width: 1.25rem;
  text-align: center;
  margin-top: 0.1rem;
  flex-shrink: 0;
}
#loading-steps li .step-title { font-weight: 600; color: #cbd5e1; }
#loading-steps li .step-sub { font-size: 0.75rem; color: #64748b; }
#loading-steps li.pending { opacity: 0.5; }
#loading-steps li.active {
  background: rgba(34,211,238,0.06);
  border-color: rgba(34,211,238,0.2);
}
#loading-steps li.active .step-title { color: #22d3ee; }
#loading-steps li.done .step-title { color: #34d399; }

/* ---------------- Finding card status accent bars (used in PDF-adjacent legacy views, kept for compat) ---------------- */
.finding-card { border-left: 4px solid #475569; background: rgba(255,255,255,0.03); }
.finding-card.status-pass  { border-left-color: #34d399; }
.finding-card.status-warn  { border-left-color: #fbbf24; }
.finding-card.status-fail  { border-left-color: #f87171; }
.finding-card.status-info  { border-left-color: #64748b; }
.finding-card.status-error { border-left-color: #64748b; background-color: rgba(100,116,139,0.08); }

.traffic-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
  flex-shrink: 0;
}

::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: rgba(255,255,255,0.03); }
::-webkit-scrollbar-thumb { background: #334155; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: #475569; }
