/* Proofwork Labs — custom styles layered on Tailwind */

:root {
  --pw-blue: #1e40af;
  --pw-indigo: #4338ca;
  --pw-green: #16a34a;
  --pw-gray-bg: #f8fafc;
}

/* Smooth fade-in for HTMX swapped content */
.htmx-settling {
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 200ms ease, transform 200ms ease;
}
.htmx-settling.htmx-added {
  opacity: 1;
  transform: translateY(0);
}

/* Loading spinner shown during HTMX request */
.htmx-request .spinner {
  display: inline-block !important;
}
.htmx-request .btn-label {
  display: none;
}

.spinner {
  display: none;
  width: 1rem;
  height: 1rem;
  border: 2px solid #c7d2fe;
  border-top-color: #4338ca;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Certification badge */
.cert-badge {
  background: linear-gradient(135deg, #eff6ff 0%, #eef2ff 100%);
  border: 1px solid #bfdbfe;
}

/* Code-like HTS display */
.hts-code {
  font-family: "JetBrains Mono", "Fira Code", "Courier New", monospace;
  letter-spacing: 0.08em;
}

/* Confidence bar */
.confidence-bar-track {
  background: #e0e7ff;
  border-radius: 9999px;
  height: 6px;
  overflow: hidden;
}
.confidence-bar-fill {
  height: 100%;
  border-radius: 9999px;
  background: linear-gradient(90deg, #4338ca, #6366f1);
  transition: width 600ms ease;
}
