/* Minimal theme overrides for Bootstrap with modern blue palette */
:root {
  /* Modern blue palette (dark) */
  --bg: #0b1220;
  --text: #e6e9ef;         /* light, readable text */
  --muted: #cbd5e1;        /* soft slate */
  --accent: #3b82f6;       /* bright blue */
  --accent-hover: #2563eb; /* darker hover */
  --ring-soft: rgba(59, 130, 246, 0.5);

  /* Surfaces */
  --card-bg: #151c2c; 
  --card-border: rgba(255, 255, 255, 0.18);

  /* Bootstrap mapping */
  --bs-body-bg: var(--bg);
  --bs-body-color: var(--text);
  --bs-secondary-color: var(--muted);
  --bs-card-bg: var(--card-bg);
  --bs-card-border-color: var(--card-border);
  --bs-primary: var(--accent);
  --bs-primary-rgb: 59, 130, 246;
  --bs-link-color: var(--accent);
  --bs-link-hover-color: var(--accent-hover);
}

.card {
  --bs-card-title-color: var(--text);
  --bs-card-bg: var(--card-bg);
  --bs-card-border-color: var(--card-border);
}

/* Badge dot for Ready */
.status-dot { width: 8px; height: 8px; border-radius: 50%; background: rgba(34,197,94,.95); display: inline-block; }

h1, h2, h3, h4, h5, h6 {
  color: var(--text);
  font-weight: 600;
}

h1 { color: var(--accent); }

/* Consolidated h2 styling: remove earlier duplicate color rule */
h2 {
  font-size: clamp(1.25rem, 1.5vw + 0.75rem, 1.75rem);
  color: var(--muted);
  letter-spacing: 0.3px;
}

/* Removed .text-body override (unused) */

.bg-light-subtle {
  background-color: #232b3d !important;
  border: 1px solid rgba(59, 130, 246, 0.18) !important; /* subtle blue border */
}

/* Improve TXT records layout */
#txt-chips {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.5rem;
}

#txt-chips li {
  display: block;
  width: 100%;
  padding: 0.5rem 0.75rem;
  border: 1px solid rgba(59, 130, 246, 0.18);
  border-radius: 0.5rem;
  background-color: #232b3d; /* matches bg-light-subtle theme */
  color: #e5eaf5;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  font-size: 0.875rem;
  line-height: 1.3;
  white-space: pre-wrap;
  word-break: break-word;
}

/* Optional: emphasize key=value pairs by dimming keys */
#txt-chips li .txt-key { color: #9fb0cc; margin-right: 0.5rem; }
#txt-chips li .txt-value { color: #e5eaf5; }

/* Apply the improved layout to all record lists */
#ip-chips,
#alias-chips,
#mx-chips,
#ns-chips,
#caa-chips,
#srv-chips {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.5rem;
}

#ip-chips li,
#alias-chips li,
#mx-chips li,
#ns-chips li,
#caa-chips li,
#srv-chips li {
  display: block;
  width: 100%;
  padding: 0.5rem 0.75rem;
  border: 1px solid rgba(59, 130, 246, 0.18);
  border-radius: 0.5rem;
  background-color: #232b3d;
  color: #e5eaf5;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  font-size: 0.875rem;
  line-height: 1.3;
  white-space: pre-wrap;
  word-break: break-word;
}

/* Optional: key/value affordances for records that contain structured strings */
#mx-chips li .mx-pref { color: #9fb0cc; margin-right: 0.5rem; }
#srv-chips li .srv-key { color: #9fb0cc; margin-right: 0.25rem; }
#srv-chips li .srv-value { color: #e5eaf5; }

/* Removed unused .h1-underline and accentShift keyframes */

/* Title underline accent used in index.html */
/* Title underline accent used in index.html */
.h1-underline { height: 3px; width: clamp(140px, 45vw, 240px); border-radius: 999px; background: linear-gradient(90deg, #3b82f6, #22d3ee, #a78bfa, #3b82f6); background-size: 200% 100%; animation: accentShift 6s ease-in-out infinite; box-shadow: 0 0 20px rgba(59,130,246,0.35); margin: 8px 0 22px 0; }
@keyframes accentShift { 0% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } 100% { background-position: 0% 50%; } }

/* Skeleton loaders */
.skeleton { position: relative; overflow: hidden; border-radius: 8px; background: rgba(148,163,184,.18); min-height: 14px; }
.skeleton::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, transparent, rgba(255,255,255,.12), transparent); transform: translateX(-100%); animation: shimmer 1.2s ease-in-out infinite; }
@keyframes shimmer { to { transform: translateX(100%); } }

/* Fade-in animation for loaded content */
.fade-in { opacity: 0; animation: fadeIn .25s ease forwards; }
@keyframes fadeIn { to { opacity: 1; } }

/* Micro-interactions for record items */
#ip-chips li, #alias-chips li, #mx-chips li, #ns-chips li, #caa-chips li, #srv-chips li, #txt-chips li { transition: transform 120ms ease, box-shadow 120ms ease, border-color 120ms ease, background-color 120ms ease; }
#ip-chips li:active, #alias-chips li:active, #mx-chips li:active, #ns-chips li:active, #caa-chips li:active, #srv-chips li:active, #txt-chips li:active { transform: translateY(1px); }
#ip-chips li:focus-visible, #alias-chips li:focus-visible, #mx-chips li:focus-visible, #ns-chips li:focus-visible, #caa-chips li:focus-visible, #srv-chips li:focus-visible, #txt-chips li:focus-visible { outline: none; box-shadow: 0 0 0 0.25rem rgba(59,130,246,0.35); }

/* Copy feedback */
.copied { background-color: rgba(34,197,94,0.22) !important; border-color: rgba(34,197,94,0.35) !important; }

/* Empty state */
.empty-state { color: var(--muted); font-style: italic; }

/* Toast host and items */
.toast-host { position: fixed; right: 16px; bottom: 16px; z-index: 1080; display: grid; gap: 8px; pointer-events: none; }
.toast-item { pointer-events: auto; background: rgba(21,28,44,.92); color: #e6e9ef; padding: 10px 12px; border: 1px solid rgba(255,255,255,.14); border-radius: 10px; box-shadow: 0 10px 24px rgba(0,0,0,.35); transition: opacity .16s ease, transform .16s ease; }

/* Navbar polish (matches dark theme + subtle glass look) */
.ipd-navbar {
  background: linear-gradient(135deg, rgba(21, 28, 44, 0.92), rgba(35, 43, 61, 0.82));
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.ipd-navbar .navbar-brand {
  letter-spacing: 0.2px;
}

.ipd-navbar .navbar-toggler {
  border-color: rgba(255, 255, 255, 0.18);
}

.ipd-navbar .navbar-toggler:focus {
  box-shadow: 0 0 0 0.25rem var(--ring-soft);
}

/* Navbar link polish */
.ipd-navbar .nav-link {
  color: rgba(230, 233, 239, 0.82);
  border-radius: 0.75rem;
  padding-left: 0.75rem;
  padding-right: 0.75rem;
}

.ipd-navbar .nav-link:hover,
.ipd-navbar .nav-link:focus {
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
}

.ipd-navbar .nav-link.active {
  color: var(--text);
  background: rgba(59, 130, 246, 0.14);
  border: 1px solid rgba(59, 130, 246, 0.22);
}

/* Status pill refinement */
.ipd-status {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: var(--text);
}

/* When JS marks it loading, make the status feel active */
.status-badge.is-loading {
  background: rgba(59, 130, 246, 0.14);
  border-color: rgba(59, 130, 246, 0.28);
}

.status-badge.is-loading .status-dot {
  background: rgba(59, 130, 246, 0.95);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.20);
}

/* Ready dot gets a tiny glow */
.status-dot {
  box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.18);
}

/* Footer links */
footer a {
  text-decoration: none;
}

footer a:hover {
  text-decoration: underline;
}

