body {
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.tab-btn {
  padding: 0.55rem 1rem;
  border-radius: 0.6rem;
  font-weight: 600;
  color: rgb(71 85 105);
  transition: all 0.2s ease;
}

.tab-btn:hover {
  background: rgb(241 245 249);
}

.active-tab {
  background: rgb(15 23 42);
  color: white;
}

.upload-card {
  border: 1px dashed rgb(148 163 184);
  border-radius: 0.75rem;
  padding: 1rem;
  background: rgb(248 250 252);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.upload-label {
  font-size: 0.9rem;
  font-weight: 600;
}

.input-file {
  background: white;
  border: 1px solid rgb(203 213 225);
  border-radius: 0.5rem;
  padding: 0.45rem;
}

.btn-primary {
  border: none;
  border-radius: 0.6rem;
  background: rgb(37 99 235);
  color: white;
  font-weight: 600;
  padding: 0.6rem 1rem;
  cursor: pointer;
  transition: background 0.2s ease;
}

.btn-primary:hover:not(:disabled) {
  background: rgb(29 78 216);
}

.btn-primary:disabled {
  background: rgb(148 163 184);
  cursor: not-allowed;
}

.result-card {
  border: 1px solid rgb(226 232 240);
  border-radius: 0.75rem;
  background: rgb(248 250 252);
  padding: 1rem;
}

.overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.55);
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
}

.spinner-box {
  background: white;
  border-radius: 0.75rem;
  padding: 1.2rem 1.5rem;
  min-width: 200px;
  text-align: center;
}

.loader {
  width: 30px;
  height: 30px;
  border: 3px solid rgb(203 213 225);
  border-top-color: rgb(37 99 235);
  border-radius: 50%;
  margin: 0 auto;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
