:root {
  --bg: #f9fafb;
  --card-bg: #ffffff;
  --primary: #4f46e5;
  --text: #1f2937;
  --success: #16a34a;
  --error: #dc2626;
}

body {
  font-family: 'Inter', sans-serif;
  background: linear-gradient(135deg, #d8b4fe, #f3e8ff);
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  color: var(--text);
  margin: 0;
}

.upload-card {
  background: var(--card-bg);
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 10px 15px rgba(0, 0, 0, 0.05);
  width: 100%;
  max-width: 420px;
  text-align: center;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 0.6s ease forwards;
}

.upload-card h1 {
  margin-top: 0;
  font-weight: 600;
}

.btn-primary {
  background: var(--primary);
  border: none;
  color: #fff;
  padding: 0.6rem 1.2rem;
  border-radius: 8px;
  cursor: pointer;
  font-size: 1rem;
  transition: background 0.2s ease;
  width: 100%;
}

.btn-primary:hover {
  background: #4338ca;
}

.btn-primary:disabled {
  background: #a5b4fc;
  cursor: not-allowed;
}

#upload-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

#file-input {
  display: none;
}

.file-label {
  background: #e0e7ff;
  border: 2px dashed var(--primary);
  color: var(--primary);
  padding: 0.6rem 1.2rem;
  border-radius: 8px;
  cursor: pointer;
  font-size: 1rem;
  text-align: center;
  transition: background 0.2s ease, color 0.2s ease;
}

.file-label:hover {
  background: var(--primary);
  color: #fff;
}

.progress-wrapper {
  margin-top: 1rem;
}

progress {
  width: 100%;
  height: 8px;
  appearance: none;
}

progress::-webkit-progress-bar {
  background: #e5e7eb;
  border-radius: 4px;
}

progress::-webkit-progress-value {
  background: var(--primary);
  border-radius: 4px;
}

.status-message {
  margin-top: 1rem;
  min-height: 1.2rem;
}

.status-message.success {
  color: var(--success);
}

.status-message.error {
  color: var(--error);
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.uploads-list {
  margin-top: 2rem;
  background: var(--card-bg);
  padding: 1rem 2rem;
  border-radius: 12px;
  box-shadow: 0 10px 15px rgba(0, 0, 0, 0.05);
  width: 100%;
  max-width: 420px;
}

.uploads-list h2 {
  margin-top: 0;
  font-weight: 600;
}

#file-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

#file-list li {
  margin: 0.5rem 0;
}

#file-list a {
  color: var(--primary);
  text-decoration: none;
}

#file-list a:hover {
  text-decoration: underline;
}
