@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;600&display=swap');

body {
  font-family: 'Poppins', sans-serif;
  background-color: #f7f8fa;
  margin: 0;
  padding: 20px;
}

h1 {
  text-align: center;
  color: #222;
  margin-bottom: 30px;
  font-weight: 600;
}

.button-container {
  text-align: center;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

button {
  margin: 5px;
  padding: 12px 24px;
  font-size: 16px;
  background-color: #007BFF;
  color: white;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-family: 'Poppins', sans-serif;
}

.filter-container {
  text-align: center;
  margin-bottom: 20px;
}

select {
  padding: 10px 15px;
  border-radius: 8px;
  border: 1px solid #ccc;
  font-size: 16px;
  font-family: 'Poppins', sans-serif;
  max-width: 100%;
}

.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
  padding: 0 10px;
  box-sizing: border-box;
}

.card {
  background-color: #ffffff;
  border-radius: 14px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  padding: 20px;
  width: 300px;
  max-width: 90vw;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  border: 1px solid #eaeaea;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.15);
}

.card h3 {
  margin: 0 0 12px;
  font-size: 20px;
  color: #2c3e50;
  font-weight: 600;
}

.card p {
  margin: 6px 0;
  color: #555;
  font-size: 15px;
}

.label,
.card .highlight {
  font-weight: 600;
  color: #0077cc;
}

.badge-container {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
  justify-content: center;
}

.category-badge {
  display: inline-block;
  font-weight: bold;
  padding: 6px 14px;
  border-radius: 16px;
  font-size: 13px;
  white-space: nowrap;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

.category-cat1 {
  background-color: #ff6b6b;
  color: white;
}
.category-cat2 {
  background-color: #4ecdc4;
  color: white;
}
.category-cat3 {
  background-color: #ffa502;
  color: white;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
  .card {
    width: 90%;
  }

  .button-container {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .button-container button {
    width: 90%;
    font-size: 15px;
  }

  select {
    width: 90%;
    font-size: 15px;
  }

  h1 {
    font-size: 24px;
  }
}

@media (max-width: 400px) {
  button {
    padding: 10px 18px;
    font-size: 14px;
  }

  .card h3 {
    font-size: 18px;
  }

  .card p {
    font-size: 14px;
  }

  .category-badge {
    font-size: 12px;
    padding: 5px 10px;
  }
}
#loading-screen {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-family: 'Poppins', sans-serif;
  font-size: 18px;
  color: #555;
  height: 150px;
  margin-top: 30px;
}

.spinner {
  border: 6px solid #f3f3f3;
  border-top: 6px solid #3498db;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  animation: spin 1s linear infinite;
  margin-bottom: 10px;
}

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

