body {
  font-family: Arial, sans-serif;
  background: #f9fafb;
  margin: 0;
  padding: 2rem;
}
.container {
  max-width: 900px;
  margin: auto;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}
.card {
  background: white;
  padding: 1.5rem;
  border: 1px solid #ddd;
  border-radius: 1rem;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}
h1,h2 {
  margin-top: 0;
  margin-bottom: 1rem;
  font-size: 1.25rem;
}
input[type="file"], input[type="text"] {
  width: 100%;
  padding: 0.5rem;
  border: 1px solid #ccc;
  border-radius: 0.5rem;
}
.grid {
  display: grid;
  gap: 0.75rem;
}
.grid-2 {
  grid-template-columns: 1fr 1fr 1fr;
}
button {
  background: #2563eb;
  color: white;
  padding: 0.6rem 1rem;
  border: none;
  border-radius: 0.5rem;
  cursor: pointer;
  margin-top: 1rem;
}
button:hover {
  background: #1d4ed8;
}
ul {
  padding-left: 1.25rem;
}
.boxes {
  display: grid;
  gap: 1rem;
}
@media (min-width: 768px) {
  .boxes {
    grid-template-columns: repeat(3, 1fr);
  }
}
.box {
  text-align: center;
  padding: 2rem;
  border: 1px solid #ddd;
  border-radius: 1rem;
  background: white;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}

.stats p {
  margin: 4px 0;
  font-size: 14px;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  margin-top: 10px;
}

table th, table td {
  padding: 6px 8px;
  border-bottom: 1px solid #e5e7eb;
}

table th {
  background: #f3f4f6;
  text-align: left;
}    

#results {
display: grid;
gap: 1rem;
margin-top: 1rem;
align-items: stretch; /* makes cards equal height */
}

@media (min-width: 768px) {
  #results {
    grid-template-columns: repeat(3, 1fr);
  }
}

#results .card {
  display: flex;
  flex-direction: column;
}

.spinner {
    border: 4px solid #f3f3f3;        /* light gray */
    border-top: 4px solid #3498db;    /* blue */
    border-radius: 50%;
    width: 24px;
    height: 24px;
    animation: spin 1s linear infinite;
    display: inline-block;
    margin-left: 10px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}



