* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #0f172a;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color: #e2e8f0;
  padding: 20px;
}

.card {
  width: 100%;
  max-width: 480px;
  background: #1e293b;
  border-radius: 16px;
  padding: 32px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.4);
}

h1 {
  margin: 0 0 4px;
  font-size: 22px;
}

.subtitle {
  margin: 0 0 24px;
  color: #94a3b8;
  font-size: 14px;
}

.dropzone {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 140px;
  border: 2px dashed #475569;
  border-radius: 12px;
  cursor: pointer;
  text-align: center;
  padding: 16px;
  transition: border-color 0.2s, background 0.2s;
}

.dropzone:hover, .dropzone.dragover {
  border-color: #6366f1;
  background: rgba(99,102,241,0.08);
}

#dropzoneText {
  color: #94a3b8;
  font-size: 14px;
}

.file-info {
  margin-top: 20px;
}

.file-info.hidden, .progress-wrap.hidden, .secondary.hidden {
  display: none;
}

.file-info-row {
  display: flex;
  justify-content: space-between;
  font-size: 14px;
  margin-bottom: 12px;
  word-break: break-all;
}

#fileSize {
  color: #94a3b8;
  white-space: nowrap;
  margin-left: 12px;
}

button {
  border: none;
  border-radius: 8px;
  padding: 10px 18px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  margin-right: 8px;
}

#uploadBtn, #resumeBtn {
  background: #6366f1;
  color: white;
}

#uploadBtn:hover, #resumeBtn:hover {
  background: #4f46e5;
}

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

.secondary:hover {
  background: #475569;
}

button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.progress-wrap {
  margin-top: 20px;
}

.progress-bar {
  height: 10px;
  background: #334155;
  border-radius: 999px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #6366f1, #8b5cf6);
  transition: width 0.2s ease;
}

.progress-text {
  display: flex;
  justify-content: space-between;
  margin-top: 8px;
  font-size: 13px;
  color: #94a3b8;
}

.status {
  margin-top: 16px;
  font-size: 13px;
  min-height: 18px;
}

.status.success { color: #4ade80; }
.status.error { color: #f87171; }
