/* style.css */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
  background: linear-gradient(135deg, #6a11cb 0%, #2575fc 100%);
  color: #333;
  min-height: 100vh;
  padding: 20px;
}

.container {
  max-width: 700px;
  margin: 0 auto;
  background: white;
  border-radius: 20px;
  padding: 30px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

header h1 {
  text-align: center;
  font-size: 2.2rem;
  margin-bottom: 8px;
  color: #2575fc;
}

header p {
  text-align: center;
  color: #666;
  margin-bottom: 30px;
}

.input-group {
  margin-bottom: 20px;
}

.input-group label {
  display: block;
  margin-bottom: 6px;
  font-weight: 600;
  color: #444;
}

.input-group input,
.input-group select {
  width: 100%;
  padding: 12px;
  border: 1px solid #ddd;
  border-radius: 10px;
  font-size: 1rem;
  transition: border 0.3s;
}

.input-group input:focus,
.input-group select:focus {
  outline: none;
  border-color: #2575fc;
}

button {
  width: 100%;
  padding: 14px;
  background: linear-gradient(to right, #6a11cb, #2575fc);
  color: white;
  border: none;
  border-radius: 10px;
  font-size: 1.1rem;
  font-weight: bold;
  cursor: pointer;
  transition: opacity 0.3s;
}

button:hover {
  opacity: 0.9;
}

#loading, #results {
  margin-top: 30px;
  padding: 20px;
  background: #f9f9ff;
  border-radius: 12px;
}

.hidden {
  display: none;
}

.spinner {
  width: 30px;
  height: 30px;
  border: 4px solid rgba(37, 117, 252, 0.2);
  border-top: 4px solid #2575fc;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: 0 auto 15px;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

#results h2 {
  margin-bottom: 15px;
  color: #2575fc;
}

#resultsList {
  list-style: none;
  padding: 0;
}

#resultsList li {
  background: white;
  margin: 8px 0;
  padding: 12px 16px;
  border-left: 4px solid #6a11cb;
  border-radius: 8px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.05);
  font-weight: 600;
}

footer {
  text-align: center;
  margin-top: 30px;
  color: #888;
  font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 600px) {
  .container {
    padding: 20px;
  }
  header h1 {
    font-size: 1.8rem;
  }
}