/* DNS Lookup Tool — tool-specific styles */

.dns-privacy-note {
  font-size: 0.875rem;
  color: var(--color-muted);
  margin: 0;
}

.dns-input-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.dns-input-group {
  flex: 1 1 260px;
}

.dns-type-group {
  flex: 0 0 auto;
}

.dns-domain-input {
  width: 100%;
  font-family: 'Courier New', Courier, monospace;
  font-size: 0.9375rem;
  letter-spacing: 0.01em;
}

.dns-type-select {
  width: 100%;
  min-width: 110px;
  height: 100%;
  padding: 0.65rem 0.75rem;
  font-size: 0.9375rem;
  font-family: 'Courier New', Courier, monospace;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  background: var(--bg-secondary, #fff);
  color: inherit;
}

.dns-examples {
  margin: 0.75rem 0 0;
  font-size: 0.875rem;
  color: var(--color-muted);
}

.dns-example-link {
  background: none;
  border: none;
  padding: 0;
  margin-right: 1rem;
  font: inherit;
  font-family: 'Courier New', Courier, monospace;
  color: var(--color-link, #2563eb);
  cursor: pointer;
  text-decoration: underline;
}

.dns-example-link:hover {
  opacity: 0.8;
}

.dns-error {
  color: #b91c1c;
  font-size: 0.875rem;
  margin-top: 10px;
  padding: 8px 12px;
  background: #fef2f2;
  border: 1px solid #fecaca;
  border-radius: 6px;
}

.dns-loading {
  font-size: 0.9rem;
  color: var(--color-muted);
  margin-top: 10px;
  padding: 8px 12px;
  background: var(--bg-secondary, #f9fafb);
  border-radius: 6px;
  border: 1px solid var(--border-color);
}

.dns-empty-state {
  text-align: center;
  color: var(--color-muted);
  padding: 2rem 1rem;
}

/* Result groups */
.dns-result-group {
  margin-bottom: 1.5rem;
}

.dns-result-group:last-child {
  margin-bottom: 0;
}

.dns-result-group__title {
  font-family: 'Courier New', Courier, monospace;
  font-size: 0.95rem;
  font-weight: 700;
  margin: 0 0 0.5rem;
  color: var(--color-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.dns-result-empty {
  font-size: 0.875rem;
  color: var(--color-muted);
  padding: 0.5rem 0;
}

.dns-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--border-color);
  border-radius: 8px;
}

.dns-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
}

.dns-table th,
.dns-table td {
  text-align: left;
  padding: 0.6rem 0.85rem;
  border-bottom: 1px solid var(--border-color);
  white-space: nowrap;
}

.dns-table td.dns-col-data {
  white-space: normal;
  word-break: break-all;
  font-family: 'Courier New', Courier, monospace;
}

.dns-table tbody tr:last-child td {
  border-bottom: none;
}

.dns-table th {
  font-weight: 600;
  color: var(--color-muted);
  background: var(--bg-secondary, #f9fafb);
}

@media (max-width: 480px) {
  .dns-input-row {
    flex-direction: column;
  }
}
