/* Scoped CSS for DNS Lookup Tool */
.dnlt-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;
}

.dnlt-main {
  padding: 1.5rem 1rem 3rem;
}

.dnlt-container {
  max-width: 1100px;
  margin: 0 auto;
}

.dnlt-app-card {
  background: #ffffff;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
  padding: 1.75rem;
  margin-bottom: 2rem;
}

.dnlt-search-section {
  margin-bottom: 1.5rem;
}

.dnlt-label {
  display: block;
  font-size: 0.95rem;
  font-weight: 600;
  color: #334155;
  margin-bottom: 0.5rem;
}

.dnlt-input-row {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}

.dnlt-input {
  flex: 1;
  min-width: 240px;
  padding: 0.75rem 1rem;
  font-size: 1.1rem;
  border: 2px solid #cbd5e1;
  border-radius: 8px;
  background: #ffffff;
  color: #0f172a;
  outline: none;
  transition: border-color 0.15s ease;
}

.dnlt-input:focus {
  border-color: #2563eb;
}

.dnlt-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.15s ease;
  border: none;
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
  text-decoration: none;
}

.dnlt-btn-primary {
  background: #2563eb;
  color: #ffffff;
}

.dnlt-btn-primary:hover {
  background: #1d4ed8;
}

.dnlt-btn-outline {
  background: #ffffff;
  color: #334155;
  border: 1px solid #cbd5e1;
}

.dnlt-btn-outline:hover {
  background: #f1f5f9;
  border-color: #94a3b8;
}

.dnlt-btn-sm {
  padding: 0.35rem 0.75rem;
  font-size: 0.85rem;
}

.dnlt-controls-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
  background: #f8fafc;
  padding: 1rem 1.25rem;
  border-radius: 8px;
  border: 1px solid #e2e8f0;
}

.dnlt-control-item {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.dnlt-control-label {
  font-size: 0.825rem;
  font-weight: 600;
  color: #475569;
}

.dnlt-select {
  padding: 0.55rem 0.75rem;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  background: #ffffff;
  color: #0f172a;
  font-size: 0.95rem;
  outline: none;
}

.dnlt-select:focus {
  border-color: #2563eb;
}

.dnlt-presets {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex-wrap: wrap;
  margin-top: 0.75rem;
}

.dnlt-preset-label {
  font-size: 0.825rem;
  color: #64748b;
  font-weight: 500;
}

.dnlt-preset-btn {
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  padding: 0.2rem 0.55rem;
  font-size: 0.8rem;
  color: #334155;
  cursor: pointer;
  transition: all 0.15s ease;
}

.dnlt-preset-btn:hover {
  background: #e2e8f0;
  color: #0f172a;
}

/* Summary Bar */
.dnlt-summary-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
  padding: 0.75rem 1.25rem;
  background: #f1f5f9;
  border-radius: 8px;
  margin-bottom: 1rem;
}

.dnlt-meta-item {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.dnlt-meta-label {
  font-size: 0.825rem;
  color: #64748b;
}

.dnlt-meta-val {
  font-size: 0.95rem;
  color: #0f172a;
}

.dnlt-badge {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.2rem 0.6rem;
  border-radius: 9999px;
}

.dnlt-badge-dnssec {
  background: #f0fdf4;
  color: #15803d;
  border: 1px solid #bbf7d0;
}

.dnlt-badge-count {
  background: #eff6ff;
  color: #1d4ed8;
  border: 1px solid #bfdbfe;
}

/* Security Checklist */
.dnlt-security-card {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.dnlt-sec-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  padding: 0.75rem 1rem;
  border-radius: 8px;
}

.dnlt-sec-indicator {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 0.85rem;
}

.dnlt-sec-pass {
  background: #dcfce7;
  color: #16a34a;
}

.dnlt-sec-warn {
  background: #fef3c7;
  color: #d97706;
}

.dnlt-sec-text {
  display: flex;
  flex-direction: column;
}

.dnlt-sec-text strong {
  font-size: 0.85rem;
  color: #0f172a;
}

.dnlt-sec-text span {
  font-size: 0.75rem;
  color: #64748b;
}

/* Records Wrap */
.dnlt-records-wrap {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.dnlt-record-group {
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  overflow: hidden;
  background: #ffffff;
}

.dnlt-group-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.65rem 1rem;
  background: #f8fafc;
  border-bottom: 1px solid #e2e8f0;
}

.dnlt-group-badge {
  font-weight: 700;
  font-size: 0.85rem;
  padding: 0.2rem 0.55rem;
  border-radius: 4px;
}

.dnlt-type-a { background: #dbeafe; color: #1e40af; }
.dnlt-type-aaaa { background: #ede9fe; color: #5b21b6; }
.dnlt-type-cname { background: #fef3c7; color: #92400e; }
.dnlt-type-mx { background: #dcfce7; color: #166534; }
.dnlt-type-txt { background: #f1f5f9; color: #334155; }
.dnlt-type-ns { background: #ffedd5; color: #9a3412; }
.dnlt-type-soa { background: #e0e7ff; color: #3730a3; }
.dnlt-type-caa { background: #ccfbf1; color: #115e59; }

.dnlt-group-count {
  font-size: 0.75rem;
  color: #64748b;
}

.dnlt-table-responsive {
  overflow-x: auto;
}

.dnlt-records-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
}

.dnlt-records-table th {
  background: #ffffff;
  color: #475569;
  text-align: left;
  padding: 0.6rem 1rem;
  border-bottom: 1px solid #e2e8f0;
  font-weight: 600;
  font-size: 0.75rem;
  text-transform: uppercase;
}

.dnlt-records-table td {
  padding: 0.65rem 1rem;
  border-bottom: 1px solid #f1f5f9;
  color: #334155;
}

.dnlt-records-table tr:hover {
  background: #f8fafc;
}

.dnlt-ttl-badge {
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  padding: 0.15rem 0.4rem;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 600;
  color: #475569;
}

.dnlt-txt-data {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.8rem;
  color: #0f172a;
  word-break: break-all;
}

.dnlt-copy-row-btn {
  background: #f8fafc;
  border: 1px solid #cbd5e1;
  color: #475569;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.25rem 0.55rem;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.dnlt-copy-row-btn:hover {
  background: #e2e8f0;
  color: #0f172a;
}

/* Guide Section */
.dnlt-guide-section {
  background: #ffffff;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
  padding: 1.75rem;
  margin-bottom: 2rem;
}

.dnlt-section-title {
  margin: 0 0 0.5rem;
  font-size: 1.35rem;
  font-weight: 700;
  color: #0f172a;
}

.dnlt-lead-text {
  color: #475569;
  font-size: 0.95rem;
  margin: 0 0 1.25rem;
}

.dnlt-ref-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.dnlt-ref-table th {
  background: #f8fafc;
  color: #334155;
  text-align: left;
  padding: 0.75rem 1rem;
  border-bottom: 2px solid #e2e8f0;
  font-weight: 600;
}

.dnlt-ref-table td {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid #f1f5f9;
  color: #334155;
}

.dnlt-ref-table tr:hover {
  background: #f8fafc;
}
