/* Scoped styles for IP Abuse & Blacklist Checker */
.iabc-body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: #1e293b;
  background-color: #f8fafc;
  line-height: 1.5;
  margin: 0;
  padding: 0;
}

.iabc-main {
  padding: 1.5rem 1rem 3rem;
}

.iabc-container {
  max-width: 1000px;
  margin: 0 auto;
}

.iabc-header {
  text-align: center;
  margin-bottom: 1.5rem;
}

.iabc-title {
  font-size: 2.1rem;
  font-weight: 800;
  color: #0f172a;
  margin: 0 0 0.5rem;
}

.iabc-desc {
  font-size: 1.05rem;
  color: #64748b;
  max-width: 680px;
  margin: 0 auto;
}

/* Chips */
.iabc-preset-chips {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 1.25rem;
  background: #ffffff;
  padding: 0.6rem 1rem;
  border-radius: 10px;
  border: 1px solid #e2e8f0;
}

.iabc-chips-label {
  font-size: 0.85rem;
  font-weight: 700;
  color: #475569;
}

.iabc-chip-btn {
  background: #f1f5f9;
  border: 1px solid #cbd5e1;
  color: #334155;
  border-radius: 20px;
  padding: 0.3rem 0.75rem;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
}

.iabc-chip-btn:hover {
  background: #0284c7;
  color: #ffffff;
  border-color: #0284c7;
}

/* Card */
.iabc-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 1.75rem;
  margin-bottom: 2rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.iabc-form {
  margin-bottom: 1.5rem;
}

.iabc-input-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.iabc-label {
  font-size: 0.875rem;
  font-weight: 700;
  color: #334155;
}

.iabc-input-row {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.iabc-input {
  flex: 1;
  min-width: 260px;
  padding: 0.75rem 1rem;
  font-size: 1.05rem;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  border: 2px solid #cbd5e1;
  border-radius: 8px;
  outline: none;
  background: #ffffff;
  color: #0f172a;
  transition: border-color 0.15s ease;
}

.iabc-input:focus {
  border-color: #0284c7;
}

.iabc-btn {
  padding: 0.75rem 1.4rem;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: 8px;
  cursor: pointer;
  border: none;
  transition: all 0.15s ease;
}

.iabc-btn-primary {
  background: #0284c7;
  color: #ffffff;
}

.iabc-btn-primary:hover {
  background: #0369a1;
}

.iabc-btn-outline {
  background: #ffffff;
  color: #475569;
  border: 1px solid #cbd5e1;
}

.iabc-btn-outline:hover {
  background: #f1f5f9;
  border-color: #94a3b8;
}

.iabc-btn-sm {
  padding: 0.35rem 0.75rem;
  font-size: 0.825rem;
}

/* Results Panel */
.iabc-results-panel {
  border-top: 1px solid #e2e8f0;
  padding-top: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.iabc-summary-banner {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 1.25rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.iabc-banner-left {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.iabc-ip-line {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.iabc-ip-title {
  font-size: 1.5rem;
  font-weight: 800;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  color: #0f172a;
  margin: 0;
}

.iabc-badge {
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.25rem 0.6rem;
  border-radius: 6px;
}

.iabc-badge-danger {
  background: #fee2e2;
  color: #b91c1c;
}

.iabc-badge-clean {
  background: #dcfce7;
  color: #166534;
}

.iabc-badge-proxy {
  background: #fef3c7;
  color: #b45309;
}

.iabc-badge-bogon {
  background: #e2e8f0;
  color: #475569;
}

.iabc-asn-text {
  font-size: 0.9rem;
  color: #64748b;
  margin: 0;
}

.iabc-score-circle {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: #fee2e2;
  border: 3px solid #f87171;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.iabc-score-num {
  font-size: 1.25rem;
  font-weight: 800;
  color: #b91c1c;
  line-height: 1;
}

.iabc-score-lbl {
  font-size: 0.6rem;
  font-weight: 700;
  color: #7f1d1d;
  text-transform: uppercase;
}

/* Metrics Grid */
.iabc-metrics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 0.75rem;
}

.iabc-metric-card {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 0.85rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.iabc-metric-label {
  font-size: 0.75rem;
  font-weight: 700;
  color: #64748b;
  text-transform: uppercase;
}

.iabc-metric-val {
  font-size: 1.15rem;
  font-weight: 800;
  color: #0f172a;
}

.iabc-metric-sub {
  font-size: 0.75rem;
  color: #475569;
}

/* Tables */
.iabc-section-block {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.iabc-subhead {
  font-size: 1.1rem;
  font-weight: 700;
  color: #0f172a;
  margin: 0;
}

.iabc-table-wrap {
  overflow-x: auto;
}

.iabc-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
}

.iabc-table th {
  background: #f8fafc;
  padding: 0.65rem 0.75rem;
  text-align: left;
  font-size: 0.75rem;
  font-weight: 700;
  color: #475569;
  text-transform: uppercase;
  border-bottom: 2px solid #e2e8f0;
}

.iabc-table td {
  padding: 0.65rem 0.75rem;
  border-bottom: 1px solid #f1f5f9;
  color: #1e293b;
}

.iabc-status-tag {
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
}

.iabc-tag-listed {
  background: #fee2e2;
  color: #b91c1c;
}

.iabc-tag-clean {
  background: #dcfce7;
  color: #166534;
}

/* Report Generator */
.iabc-report-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.iabc-textarea {
  width: 100%;
  box-sizing: border-box;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.85rem;
  padding: 0.75rem;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  background: #f8fafc;
  color: #1e293b;
  outline: none;
  resize: vertical;
}

/* Guide Section */
.iabc-guide-section {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 1.5rem;
  margin-bottom: 2rem;
}

.iabc-guide-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: #0f172a;
  margin: 0 0 1rem;
}

.iabc-guide-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1rem;
}

.iabc-guide-card {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 1rem;
}

.iabc-card-heading {
  font-size: 0.95rem;
  font-weight: 700;
  color: #0284c7;
  margin: 0 0 0.35rem;
}

.iabc-card-p {
  font-size: 0.85rem;
  color: #475569;
  margin: 0;
  line-height: 1.5;
}

/* Ad slots */
.iabc-ad-slot {
  margin: 1.75rem 0;
  min-height: 280px;
  background: #f1f5f9;
  border: 1px dashed #cbd5e1;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}
