:root {
  --primary-color: #4f46e5;
  --primary-hover: #4338ca;
  --primary-light: #e0e7ff;
  --success-color: #22c55e;
  --success-bg: #dcfce7;
  --success-border: #86efac;
  --error-color: #ef4444;
  --error-bg: #fee2e2;
  --error-border: #fca5a5;
  --neutral-50: #f9fafb;
  --neutral-100: #f3f4f6;
  --neutral-200: #e5e7eb;
  --neutral-300: #d1d5db;
  --neutral-600: #4b5563;
  --neutral-700: #374151;
  --neutral-800: #1f2937;
  --neutral-900: #111827;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background-color: var(--neutral-100);
  color: var(--neutral-800);
  line-height: 1.5;
}

.container {
  max-width: 1000px;
  margin: 2rem auto;
  padding: 2rem;
}

.card {
  background: white;
  border-radius: 1rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  padding: 2rem;
}

.header {
  text-align: center;
  margin-bottom: 2rem;
}

.header h1 {
  color: var(--neutral-900);
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.header p {
  color: var(--neutral-600);
  font-size: 1.1rem;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}

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

label {
  font-weight: 500;
  color: var(--neutral-700);
  font-size: 0.95rem;
}

.input-wrapper {
  position: relative;
}

.input-wrapper span {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--neutral-600);
  pointer-events: none;
}

input[type="number"],
input[type="text"],
select {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1.5px solid var(--neutral-200);
  border-radius: 0.5rem;
  font-size: 1rem;
  transition: all 0.2s;
  color: var(--neutral-800);
  background-color: white;
}

input[type="number"]:focus,
input[type="text"]:focus,
select:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px var(--primary-light);
}

.currency-input {
  padding-left: 2rem;
}

.hint {
  font-size: 0.85rem;
  color: var(--neutral-600);
  margin-top: 0.25rem;
}

button {
  width: 100%;
  padding: 1rem;
  background-color: var(--primary-color);
  color: white;
  border: none;
  border-radius: 0.5rem;
  font-size: 1.1rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
}

button:hover {
  background-color: var(--primary-hover);
}

button:disabled {
  background-color: var(--neutral-300);
  cursor: not-allowed;
}

.prediction {
  margin-top: 2rem;
  padding: 1.5rem;
  border-radius: 0.5rem;
  display: none;
}

.prediction h2 {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}

.prediction p {
  font-size: 1.1rem;
}

.prediction.approved {
  background-color: var(--success-bg);
  border: 2px solid var(--success-border);
}

.prediction.approved h2 {
  color: var(--success-color);
}

.prediction.rejected {
  background-color: var(--error-bg);
  border: 2px solid var(--error-border);
}

.prediction.rejected h2 {
  color: var(--error-color);
}

.error-message {
  color: var(--error-color);
  font-size: 0.9rem;
  margin-top: 0.25rem;
  display: none;
}

/* Loading state */
.loading {
  opacity: 0.7;
  pointer-events: none;
  position: relative;
}

.loading::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 1.5rem;
  height: 1.5rem;
  border: 2px solid white;
  border-radius: 50%;
  border-top-color: transparent;
  animation: spin 0.6s linear infinite;
  transform: translate(-50%, -50%);
}

@keyframes spin {
  to {
    transform: translate(-50%, -50%) rotate(360deg);
  }
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .container {
    margin: 1rem;
    padding: 1rem;
  }

  .card {
    padding: 1.5rem;
  }

  .header h1 {
    font-size: 1.75rem;
  }
}