/* Fonts */
@import url('https://fonts.googleapis.com/css2?family=Archivo:wght@300;400;500;600;700&family=Space+Grotesk:wght@300;400;500;600;700&display=swap');

:root {
  /* Colors */
  --color-primary: #1E293B;
  --color-secondary: #334155;
  --color-cta: #22C55E;
  --color-background: #0F172A;
  --color-text: #F8FAFC;
  --color-card-bg: #1E293B; /* Slightly lighter than background for cards */

  /* Spacing */
  --space-xs: 4px;
  --space-sm: 8px;
  --space-md: 16px;
  --space-lg: 24px;
  --space-xl: 32px;
  --space-2xl: 48px;
  --space-3xl: 64px;

  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
  --shadow-md: 0 4px 6px rgba(0,0,0,0.1);
  --shadow-lg: 0 10px 15px rgba(0,0,0,0.1);
  --shadow-xl: 0 20px 25px rgba(0,0,0,0.15);
}

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

body {
  background-color: var(--color-background);
  color: var(--color-text);
  font-family: 'Space Grotesk', sans-serif;
  line-height: 1.5;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Archivo', sans-serif;
  margin-bottom: var(--space-md);
  font-weight: 700;
}

a {
    color: var(--color-cta);
    text-decoration: none;
    transition: opacity 200ms;
}

a:hover {
    opacity: 0.8;
}

/* Layout */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: var(--space-xl) var(--space-md);
  width: 100%;
}

.hero {
    text-align: center;
    padding: var(--space-3xl) 0;
}

.hero-title {
    font-size: 3rem;
    background: linear-gradient(135deg, #fff 0%, #94a3b8 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: var(--space-md);
}

.hero-subtitle {
    font-size: 1.25rem;
    color: #94A3B8;
    max-width: 600px;
    margin: 0 auto;
}

/* Components */
.card {
  background: var(--color-card-bg); /* Use specifically tuned card bg */
  border-radius: 12px;
  padding: 24px;
  box-shadow: var(--shadow-md);
  transition: all 200ms ease;
  border: 1px solid rgba(255,255,255,0.05);
}

.card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
  border-color: rgba(255,255,255,0.1);
}

.input, .select {
  padding: 12px 16px;
  background-color: #0F172A; /* Darker than card */
  border: 1px solid #334155;
  border-radius: 8px;
  font-size: 16px;
  color: white;
  transition: border-color 200ms ease;
  width: 100%;
  font-family: inherit;
}

.input:focus, .select:focus {
  border-color: var(--color-cta);
  outline: none;
  box-shadow: 0 0 0 2px rgba(34, 197, 94, 0.2);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    font-size: 1rem;
    cursor: pointer;
    text-decoration: none;
    border: none;
}

.btn-primary {
  background: var(--color-cta);
  color: white;
  padding: 12px 24px;
  border-radius: 8px;
  font-weight: 600;
  transition: all 200ms ease;
}

.btn-primary:hover {
  opacity: 0.9;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(34, 197, 94, 0.3);
}

.btn-secondary {
  background: transparent;
  color: #E2E8F0;
  border: 2px solid #334155;
  padding: 12px 24px;
  border-radius: 8px;
  font-weight: 600;
  transition: all 200ms ease;
}

.btn-secondary:hover {
    border-color: #475569;
    background: rgba(255,255,255,0.05);
}

/* Utilities */
.w-full { width: 100%; }
.mt-sm { margin-top: var(--space-sm); }
.mt-md { margin-top: var(--space-md); }
.mt-lg { margin-top: var(--space-lg); }
.mb-sm { margin-bottom: var(--space-sm); }

.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-md { gap: var(--space-md); }

/* Progress Bar */
.progress-container {
    width: 100%;
    background-color: #0F172A;
    border-radius: 999px;
    height: 8px;
    overflow: hidden;
    margin-top: var(--space-md);
    position: relative;
    border: 1px solid #334155;
    display: none; /* Hidden by default */
}

.progress-bar {
    height: 100%;
    background-color: var(--color-cta);
    width: 0%;
    transition: width 0.3s ease;
    border-radius: 999px;
}

.status-text {
    font-size: 0.875rem;
    color: #94A3B8;
    margin-top: var(--space-sm);
    white-space: pre-wrap;
    min-height: 1.5em;
}

/* File Upload specific */
.file-upload-wrapper {
    position: relative;
    width: 100%;
    height: 150px;
    border: 2px dashed #334155;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    background: rgba(15, 23, 42, 0.5);
    cursor: pointer;
}

.file-upload-wrapper:hover {
    border-color: var(--color-cta);
    background: rgba(34, 197, 94, 0.05);
}

.file-upload-wrapper input[type="file"] {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    opacity: 0;
    cursor: pointer;
}

.icon-upload {
    width: 48px;
    height: 48px;
    color: #94A3B8;
    margin-bottom: var(--space-sm);
}
