:root {
  --primary: #7c3aed;
  --primary-light: #8b5cf6;
  --primary-dark: #6d28d9;
  --secondary: #06b6d4;
  --accent: #10b981;
  --accent-light: #34d399;
  --bg: #0f172a;
  --bg-light: #1e293b;
  --bg-lighter: #334155;
  --card: #1e293b;
  --card-light: #334155;
  --text: #f1f5f9;
  --text-muted: #94a3b8;
  --text-light: #cbd5e1;
  --border: rgba(255, 255, 255, 0.1);
  --success: #10b981;
  --error: #ef4444;
  --warning: #f59e0b;
  --radius: 12px;
  --radius-lg: 16px;
  --shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.3), 0 4px 6px -2px rgba(0, 0, 0, 0.2);
  --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.3), 0 10px 10px -5px rgba(0, 0, 0, 0.2);
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html, body {
  height: 100%;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

body {
  background: linear-gradient(135deg, var(--bg) 0%, #0c1424 100%);
  min-height: 100vh;
  padding: 20px;
}

.app {
  max-width: 900px;
  margin: 0 auto;
  padding: 20px;
}

.header {
  text-align: center;
  margin-bottom: 40px;
  position: relative;
}

.header::after {
  content: '';
  position: absolute;
  bottom: -20px;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  border-radius: 2px;
}

.header h1 {
  font-size: 2.5rem;
  font-weight: 700;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 12px;
  letter-spacing: -0.025em;
}

.lead {
  color: var(--text-muted);
  font-size: 1.1rem;
  max-width: 600px;
  margin: 0 auto;
  font-weight: 400;
}

.card {
  background: var(--card);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border);
  backdrop-filter: blur(10px);
  transition: var(--transition);
}

.card:hover {
  box-shadow: var(--shadow-lg), 0 0 0 1px rgba(124, 58, 237, 0.1);
}

.form-group {
  margin-bottom: 24px;
}

.row {
  display: flex;
  gap: 20px;
  margin-bottom: 20px;
}

@media (max-width: 768px) {
  .row {
    flex-direction: column;
    gap: 16px;
  }
}

.field {
  flex: 1;
}

.label {
  display: block;
  color: var(--text-light);
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 8px;
}

.required::after {
  content: ' *';
  color: var(--warning);
  font-weight: 600;
}

input[type="text"],
input[type="email"],
select {
  width: 100%;
  padding: 14px 16px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--bg-light);
  color: var(--text);
  font-size: 1rem;
  outline: none;
  transition: var(--transition);
}

input[type="text"]:focus,
input[type="email"]:focus,
select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.2);
}

.file-input-wrapper {
  position: relative;
  display: inline-block;
  width: 100%;
}

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

.file-input-label {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px;
  border: 2px dashed var(--border);
  border-radius: var(--radius);
  background: var(--bg-light);
  color: var(--text-muted);
  font-size: 1rem;
  transition: var(--transition);
  cursor: pointer;
}

.file-input-label:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.file-input-label.has-file {
  border-color: var(--accent);
  color: var(--accent);
  background: rgba(16, 185, 129, 0.05);
}

.hint {
  color: var(--text-muted);
  font-size: 0.875rem;
  margin-top: 8px;
}

.mode-grid {
  display: flex;
  gap: 16px;
  border: none;
  padding: 0;
  margin: 24px 0;
}

@media (max-width: 768px) {
  .mode-grid {
    flex-direction: column;
  }
}

.mode-card {
  flex: 1;
  border-radius: var(--radius);
  padding: 20px;
  display: flex;
  align-items: flex-start;
  gap: 16px;
  cursor: pointer;
  border: 1px solid var(--border);
  background: var(--bg-light);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.mode-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  transform: scaleX(0);
  transition: var(--transition);
}

.mode-card input {
  display: none;
}

.mode-content {
  flex: 1;
}

.mode-title {
  font-weight: 600;
  margin-bottom: 8px;
  font-size: 1rem;
}

.mode-desc {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.mode-card.mode-selected {
  border-color: var(--primary);
  background: rgba(124, 58, 237, 0.05);
  box-shadow: 0 4px 12px rgba(124, 58, 237, 0.1);
}

.mode-card.mode-selected::before {
  transform: scaleX(1);
}

.inline {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 16px;
}

@media (max-width: 768px) {
  .inline {
    flex-direction: column;
    align-items: flex-start;
  }
}

.inline select {
  width: 120px;
}

.count-selector {
  display: flex;
  align-items: center;
  gap: 8px;
}

.count-info {
  position: relative;
  display: inline-block;
}

.info-icon {
  cursor: pointer;
  font-size: 0.875rem;
  opacity: 0.7;
}

.info-tooltip {
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  background: var(--bg-light);
  color: var(--text);
  padding: 8px 12px;
  border-radius: var(--radius);
  font-size: 0.75rem;
  width: 180px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
  z-index: 10;
}

.count-info:hover .info-tooltip {
  opacity: 1;
  visibility: visible;
}

.summary {
  margin-top: 24px;
  color: var(--text-muted);
  font-size: 0.875rem;
  padding: 16px;
  border-radius: var(--radius);
  background: var(--bg-light);
  border: 1px solid var(--border);
}

.summary h3 {
  color: var(--text-light);
  margin-bottom: 12px;
  font-size: 1rem;
}

.summary-details {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.summary-item {
  display: flex;
  justify-content: space-between;
}

.summary-label {
  font-weight: 500;
}

.actions {
  display: flex;
  gap: 12px;
  margin-top: 32px;
}

@media (max-width: 768px) {
  .actions {
    flex-direction: column;
  }
}

.btn {
  padding: 14px 24px;
  border-radius: var(--radius);
  border: 0;
  cursor: pointer;
  font-weight: 600;
  font-size: 1rem;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.btn.primary {
  background: linear-gradient(90deg, var(--primary), var(--primary-light));
  color: white;
  box-shadow: 0 4px 12px rgba(124, 58, 237, 0.3);
  flex: 1;
}

.btn.primary:hover {
  background: linear-gradient(90deg, var(--primary-dark), var(--primary));
  box-shadow: 0 6px 20px rgba(124, 58, 237, 0.4);
  transform: translateY(-2px);
}

.btn.primary:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none;
}

.btn.ghost {
  background: transparent;
  color: var(--text-muted);
  border: 1px solid var(--border);
}

.btn.ghost:hover {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-light);
}

.btn-icon {
  font-size: 1.1rem;
}

.progress-card {
  margin-top: 24px;
  padding: 20px;
  border-radius: var(--radius);
  background: var(--bg-light);
  border: 1px solid var(--border);
}

.progress-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.progress-header h3 {
  font-size: 1rem;
  color: var(--text-light);
}

.percent {
  font-weight: 600;
  color: var(--accent);
}

.progress-line {
  height: 8px;
  background: var(--bg-lighter);
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 12px;
}

.bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--accent), var(--accent-light));
  border-radius: 4px;
  transition: width 0.5s ease;
}

.progress-meta {
  display: flex;
  justify-content: space-between;
  color: var(--text-muted);
  font-size: 0.875rem;
}

.result {
  margin-top: 20px;
  color: var(--success);
  background: rgba(16, 185, 129, 0.1);
  padding: 16px;
  border-radius: var(--radius);
  border: 1px solid rgba(16, 185, 129, 0.2);
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.error {
  margin-top: 20px;
  color: var(--error);
  background: rgba(239, 68, 68, 0.1);
  padding: 16px;
  border-radius: var(--radius);
  border: 1px solid rgba(239, 68, 68, 0.2);
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.result-content h3,
.error-content h3 {
  font-size: 1rem;
  margin-bottom: 4px;
}

.result-content p,
.error-content p {
  font-size: 0.875rem;
  opacity: 0.9;
}

.icon {
  font-size: 1.25rem;
  flex-shrink: 0;
}

.pulse {
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
  100% {
    opacity: 1;
  }
}
/* Review File Upload Styles */
.file-upload-card {
  border: 2px dashed var(--border);
  border-radius: var(--radius);
  padding: 24px;
  background: var(--bg-light);
  transition: var(--transition);
  cursor: pointer;
}

.file-upload-card:hover {
  border-color: var(--primary);
  background: rgba(124, 58, 237, 0.02);
}

.file-upload-card.has-file {
  border-color: var(--accent);
  background: rgba(16, 185, 129, 0.05);
}

.file-upload-content {
  display: flex;
  align-items: center;
  gap: 16px;
}

.file-upload-icon {
  font-size: 2rem;
  flex-shrink: 0;
}

.file-upload-text {
  flex: 1;
}

.file-upload-title {
  font-weight: 600;
  margin-bottom: 4px;
  color: var(--text-light);
}

.file-upload-desc {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.btn.outline {
  background: transparent;
  color: var(--primary);
  border: 1px solid var(--primary);
  padding: 10px 16px;
  font-size: 0.875rem;
}

.btn.outline:hover {
  background: rgba(124, 58, 237, 0.1);
  transform: translateY(-1px);
}

.file-selected {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
  padding: 12px 16px;
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.2);
  border-radius: var(--radius);
  color: var(--accent);
}

.file-selected-icon {
  font-size: 1rem;
}

.file-selected-text {
  flex: 1;
  font-size: 0.875rem;
  font-weight: 500;
}

.file-remove-btn {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.25rem;
  cursor: pointer;
  padding: 0;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: var(--transition);
}

.file-remove-btn:hover {
  background: rgba(239, 68, 68, 0.1);
  color: var(--error);
}