/* LivioHomes Background Check Upload Page */
:root {
  --livio-primary: #0000E1;
  --livio-secondary: #4848FF;
  --livio-light-blue: #E6E6FF;
  --livio-gray: #6B7280;
  --livio-dark-gray: #374151;
  --livio-green: #319F43;
  --livio-red: #FF4242;
  --livio-bg: #F9FAFB;
  --radius: 16px;
}

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

body {
  font-family: 'Poppins', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--livio-bg);
  color: var(--livio-dark-gray);
  min-height: 100vh;
}

.screen { display: none; min-height: 100vh; justify-content: center; align-items: center; padding: 20px; }
.screen.active { display: flex; }

.container {
  max-width: 560px;
  width: 100%;
  text-align: center;
}

.upload-container { text-align: left; max-width: 640px; }

/* Logo */
.logo-box {
  width: 80px; height: 80px;
  background: white;
  border: 3px solid var(--livio-light-blue);
  border-radius: 20px;
  display: inline-flex; align-items: center; justify-content: center;
  margin-bottom: 12px;
}
.logo-box.small { width: 48px; height: 48px; border-radius: 12px; margin-bottom: 0; }
.logo-letter { font-size: 48px; font-weight: 700; color: var(--livio-primary); }
.logo-box.small .logo-letter { font-size: 28px; }

.brand-title {
  font-size: 28px; font-weight: 700; color: var(--livio-primary);
  letter-spacing: 6px; margin-bottom: 32px;
}
.brand-sub { display: block; font-size: 12px; color: var(--livio-secondary); letter-spacing: 4px; margin-top: 2px; }

/* Spinner */
.spinner {
  width: 36px; height: 36px;
  border: 3px solid var(--livio-light-blue);
  border-top-color: var(--livio-primary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin: 24px auto;
}
@keyframes spin { to { transform: rotate(360deg); } }

.loading-text { color: var(--livio-gray); font-size: 14px; }

/* Icons */
.error-icon, .success-icon {
  width: 64px; height: 64px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 28px; font-weight: 700; margin: 24px auto; color: white;
}
.error-icon { background: var(--livio-red); }
.success-icon { background: var(--livio-green); }

h2 { font-size: 22px; margin-bottom: 12px; color: var(--livio-dark-gray); }
.screen p { color: var(--livio-gray); font-size: 14px; line-height: 1.6; }

/* Header */
.header { display: flex; align-items: center; gap: 16px; margin-bottom: 20px; padding-bottom: 16px; border-bottom: 2px solid var(--livio-light-blue); }
.header h1 { font-size: 20px; font-weight: 700; color: var(--livio-dark-gray); }
.subtitle { font-size: 13px; color: var(--livio-gray); margin-top: 2px; }

/* Info banner */
.info-banner {
  background: var(--livio-light-blue); border-radius: 12px;
  padding: 14px 18px; margin-bottom: 24px;
}
.info-banner p { color: var(--livio-primary); font-size: 13px; }

/* Applicant sections */
.applicant-section {
  background: white; border-radius: var(--radius);
  box-shadow: 0 1px 4px rgba(0,0,0,0.08);
  padding: 20px; margin-bottom: 20px;
}
.applicant-name { font-size: 16px; font-weight: 600; color: var(--livio-primary); margin-bottom: 16px; }

/* Document row */
.doc-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 0; border-bottom: 1px solid #F3F4F6;
}
.doc-row:last-child { border-bottom: none; }
.doc-info { flex: 1; }
.doc-label { font-size: 14px; font-weight: 500; color: var(--livio-dark-gray); }
.doc-desc { font-size: 12px; color: var(--livio-gray); margin-top: 2px; }
.doc-status { font-size: 12px; margin-top: 4px; font-weight: 500; }
.doc-status.pending { color: var(--livio-gray); }
.doc-status.uploading { color: var(--livio-secondary); }
.doc-status.uploaded { color: var(--livio-green); }
.doc-status.error { color: var(--livio-red); }

/* Upload button */
.btn-upload {
  background: var(--livio-light-blue); color: var(--livio-primary);
  border: none; border-radius: 8px; padding: 8px 16px;
  font-family: inherit; font-size: 13px; font-weight: 600;
  cursor: pointer; white-space: nowrap; transition: background 0.2s;
}
.btn-upload:hover { background: #D4D4FF; }
.btn-upload.uploaded { background: #E8F5E9; color: var(--livio-green); }
.btn-upload:disabled { opacity: 0.5; cursor: not-allowed; }

/* File input hidden */
.file-input { display: none; }

/* Submit button */
.btn-primary {
  width: 100%; padding: 16px;
  background: linear-gradient(135deg, var(--livio-primary), var(--livio-secondary));
  color: white; border: none; border-radius: 30px;
  font-family: inherit; font-size: 16px; font-weight: 600;
  cursor: pointer; margin-top: 8px;
  display: flex; align-items: center; justify-content: center; gap: 8px;
  transition: opacity 0.2s;
}
.btn-primary:disabled { opacity: 0.5; cursor: not-allowed; }
.btn-primary:not(:disabled):hover { opacity: 0.9; }

.btn-spinner {
  width: 20px; height: 20px;
  border: 2px solid rgba(255,255,255,0.3);
  border-top-color: white;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

/* Responsive */
@media (max-width: 480px) {
  .doc-row { flex-direction: column; align-items: flex-start; gap: 8px; }
  .btn-upload { align-self: flex-start; }
}

