/* Base styles for AidGen web app */

body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto,
    Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
  background-color: #0f172a;
  color: #f1f5f9;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  align-items: center;
}

header {
  padding: 2rem 1rem;
  text-align: center;
}

.title {
  font-size: 3rem;
  font-weight: 700;
  margin: 0;
}

main {
  width: 100%;
  max-width: 48rem;
  padding: 1rem;
  flex: 1;
}

.card {
  background-color: #1e293b;
  border-radius: 0.5rem;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
  padding: 1.5rem;
  margin-bottom: 2rem;
}

.form {
  display: flex;
  flex-direction: column;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr));
  gap: 1rem;
}

.form-group {
  display: flex;
  flex-direction: column;
}

label {
  margin-bottom: 0.25rem;
  font-weight: 600;
}

input,
select {
  background-color: #0f172a;
  border: 1px solid #334155;
  border-radius: 0.375rem;
  padding: 0.5rem;
  color: #f1f5f9;
  width: 100%;
  font-size: 0.9rem;
}

input:focus,
select:focus {
  outline: none;
  border-color: #4ade80;
  box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.5);
}

.button-container {
  display: flex;
  justify-content: center;
  margin-top: 1.5rem;
}

.btn {
  background-color: #10b981;
  color: #0f172a;
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: 0.375rem;
  cursor: pointer;
  font-weight: 600;
  font-size: 1rem;
  transition: background-color 0.2s ease;
}

.btn:hover {
  background-color: #059669;
}

.btn.secondary {
  background-color: #60a5fa;
  color: #0f172a;
}

.btn.secondary:hover {
  background-color: #3b82f6;
}

.hidden {
  display: none;
}

.loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.spinner {
  width: 3rem;
  height: 3rem;
  border: 4px solid #334155;
  border-top-color: #4ade80;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

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

.section-title {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.result {
  overflow-x: auto;
}

.error {
  color: #f87171;
}