:root {
  color-scheme: dark;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
  font-weight: 400;
  color: #f5f7ff;
  background: linear-gradient(135deg, #0f172a, #1d4ed8);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
}

.app-shell {
  width: min(920px, 100%);
  background: rgba(15, 23, 42, 0.82);
  backdrop-filter: blur(18px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 24px;
  padding: 28px;
  box-shadow: 0 24px 60px rgba(2, 6, 23, 0.35);
}

h1 {
  margin: 0 0 8px;
  font-size: 2rem;
}

.subtitle {
  margin: 0 0 20px;
  color: #cbd5e1;
}

.dropzone {
  border: 2px dashed rgba(148, 163, 184, 0.7);
  border-radius: 18px;
  padding: 24px;
  text-align: center;
  cursor: pointer;
  transition: border-color 180ms ease, transform 180ms ease;
  background: rgba(15, 23, 42, 0.5);
}

.dropzone.active {
  border-color: #60a5fa;
  transform: translateY(-2px);
}

.dropzone p {
  margin: 8px 0;
  color: #e2e8f0;
}

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

button {
  border: 0;
  border-radius: 999px;
  padding: 10px 16px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 160ms ease, opacity 160ms ease;
}

button:hover {
  transform: translateY(-1px);
}

.primary {
  background: linear-gradient(135deg, #38bdf8, #2563eb);
  color: white;
}

.secondary {
  background: #334155;
  color: white;
}

.danger {
  background: #dc2626;
  color: white;
}

button:disabled {
  opacity: 0.65;
  cursor: not-allowed;
  transform: none;
}

.file-list {
  margin-top: 20px;
  display: grid;
  gap: 12px;
}

.file-card {
  display: flex;
  gap: 12px;
  align-items: center;
  background: rgba(30, 41, 59, 0.85);
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 16px;
  padding: 12px;
}

.preview {
  width: 56px;
  height: 56px;
  object-fit: cover;
  border-radius: 12px;
  flex-shrink: 0;
  background: rgba(71, 85, 105, 0.65);
}

.file-meta {
  flex: 1;
  min-width: 0;
}

.file-meta strong {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.status {
  margin-top: 4px;
  font-size: 0.95rem;
  color: #cbd5e1;
}

.progress-track {
  width: 100%;
  height: 8px;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.3);
  overflow: hidden;
  margin-top: 8px;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(135deg, #34d399, #3b82f6);
  border-radius: inherit;
  transition: width 180ms ease;
}

.badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.85rem;
  margin-top: 8px;
  background: rgba(59, 130, 246, 0.2);
  color: #bfdbfe;
}

.file-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.helper {
  margin-top: 12px;
  color: #94a3b8;
  font-size: 0.95rem;
}
