* { font-family: 'Inter', system-ui, sans-serif; }

.drop-zone { transition: all .2s ease; }
.drop-zone.dragover { border-color: #3b82f6; background: #eff6ff; }
.drop-zone.dragover .drop-icon { color: #3b82f6; }

.spinner {
  width: 20px; height: 20px;
  border: 3px solid #e5e7eb;
  border-top-color: #3b82f6;
  border-radius: 50%;
  animation: spin .6s linear infinite;
  display: inline-block;
  vertical-align: middle;
}

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

.progress-bar {
  height: 6px;
  background: #e5e7eb;
  border-radius: 3px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, #3b82f6, #2563eb);
  border-radius: 3px;
  transition: width .3s ease;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 10px;
  border-radius: 9999px;
  font-size: .75rem;
  font-weight: 600;
  white-space: nowrap;
}

.badge-valid, .badge-deliverable { background: #dcfce7; color: #166534; }
.badge-invalid { background: #fee2e2; color: #991b1b; }
.badge-risky, .badge-catch-all, .badge-catchall { background: #fef9c3; color: #854d0e; }
.badge-unknown { background: #f3f4f6; color: #4b5563; }

.results-table { display: block; max-height: 450px; overflow-y: auto; }
.results-table thead { position: sticky; top: 0; z-index: 1; }

.file-name { font-size: .8rem; color: #6b7280; margin-top: 4px; }

.tab-btn[aria-selected="true"] {
  background: #3b82f6;
  color: white;
  box-shadow: 0 1px 3px rgba(59,130,246,0.3);
}

/* Single result card */
.result-card {
  border-radius: 12px;
  padding: 1.25rem;
  border: 1px solid;
}

.result-card.valid { background: #f0fdf4; border-color: #bbf7d0; }
.result-card.invalid { background: #fef2f2; border-color: #fecaca; }
.result-card.risky { background: #fefce8; border-color: #fde68a; }
.result-card.unknown { background: #f9fafb; border-color: #e5e7eb; }

.result-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 0.75rem;
  margin-top: 1rem;
}

.result-item {
  display: flex;
  flex-direction: column;
}

.result-item .label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #6b7280;
  font-weight: 600;
}

.result-item .value {
  font-size: 0.875rem;
  font-weight: 500;
  color: #111827;
  margin-top: 2px;
}

.detail-hint {
  cursor: pointer;
  color: #3b82f6;
  font-weight: 600;
  font-size: 0.75rem;
  text-decoration: underline dotted;
  text-underline-offset: 2px;
}

.detail-hint:hover { color: #2563eb; }

@media (max-width: 640px) {
  .result-grid {
    grid-template-columns: 1fr 1fr;
  }
}
