@import url("https://fonts.googleapis.com/css2?family=Fraunces:wght@500;700&family=Space+Grotesk:wght@400;500;600&display=swap");

* {
  box-sizing: border-box;
}

body {
  font-family: "Space Grotesk", "Avenir Next", "Segoe UI", sans-serif;
  background: radial-gradient(circle at 15% 20%, rgba(37, 99, 235, 0.18), transparent 55%),
    radial-gradient(circle at 80% 10%, rgba(217, 119, 6, 0.15), transparent 50%),
    linear-gradient(135deg, #faf6ef 0%, #f3ede4 45%, #f8f4ed 100%);
}

.page-glow {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(circle at 80% 85%, rgba(14, 116, 144, 0.12), transparent 45%);
  z-index: 0;
}

.glass-card {
  position: relative;
  z-index: 1;
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.7);
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 25px 50px rgba(15, 23, 42, 0.12);
  padding: 24px;
  backdrop-filter: blur(14px);
}

.pill {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  background: rgba(37, 99, 235, 0.1);
  color: #1d4ed8;
  padding: 6px 14px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.tab-button {
  border-radius: 999px;
  border: 1px solid rgba(15, 23, 42, 0.15);
  padding: 10px 20px;
  font-size: 0.9rem;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.7);
  transition: all 0.2s ease;
}

.tab-button.active {
  background: #111827;
  color: #f8fafc;
  border-color: transparent;
  box-shadow: 0 18px 30px rgba(15, 23, 42, 0.18);
}

.dropzone {
  border: 2px dashed rgba(15, 23, 42, 0.2);
  border-radius: 20px;
  padding: 18px;
  display: grid;
  gap: 6px;
  text-align: center;
  background: rgba(255, 255, 255, 0.8);
  cursor: pointer;
}

.dropzone input {
  display: none;
}

.primary-btn,
.ghost-btn {
  border-radius: 999px;
  padding: 10px 20px;
  font-weight: 600;
  font-size: 0.9rem;
  border: 1px solid transparent;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.primary-btn {
  background: #2563eb;
  color: white;
  box-shadow: 0 16px 30px rgba(37, 99, 235, 0.3);
}

.primary-btn:disabled,
.ghost-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  box-shadow: none;
}

.primary-btn:not(:disabled):hover,
.ghost-btn:not(:disabled):hover {
  transform: translateY(-1px);
}

.ghost-btn {
  background: transparent;
  border-color: rgba(15, 23, 42, 0.2);
  color: #0f172a;
}

.stat-card {
  border-radius: 16px;
  border: 1px solid rgba(15, 23, 42, 0.1);
  padding: 14px;
  background: rgba(255, 255, 255, 0.9);
}

.label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #64748b;
}

.value {
  font-size: 1.1rem;
  font-weight: 600;
  color: #0f172a;
}

.field {
  display: grid;
  gap: 6px;
  font-size: 0.85rem;
  color: #0f172a;
}

.field input,
.field select {
  border-radius: 12px;
  border: 1px solid rgba(15, 23, 42, 0.15);
  padding: 10px 12px;
  font-size: 0.9rem;
  background: white;
}

.status-chip {
  border-radius: 999px;
  padding: 6px 14px;
  font-size: 0.72rem;
  font-weight: 600;
  background: rgba(15, 23, 42, 0.1);
  color: #0f172a;
}

.progress-bar {
  height: 10px;
  width: 0%;
  background: linear-gradient(90deg, #2563eb 0%, #38bdf8 100%);
  border-radius: 999px;
  transition: width 0.2s ease;
}

.progress-track {
  width: 100%;
  height: 10px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.08);
  overflow: hidden;
}

.scan-pulse {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(34, 197, 94, 0.15);
  color: #15803d;
  font-weight: 600;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.scan-pulse.active {
  opacity: 1;
  transform: translateY(0);
  animation: scanPulse 0.6s ease;
}

@keyframes scanPulse {
  0% {
    transform: scale(0.96);
  }
  50% {
    transform: scale(1.02);
  }
  100% {
    transform: scale(1);
  }
}

.view-panel {
  margin-top: 28px;
}
