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

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: #f5f5f7;
  color: #1d1d1f;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.container {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
  padding: 40px;
  width: 100%;
  max-width: 520px;
}

h1 {
  font-size: 22px;
  font-weight: 600;
  margin-bottom: 28px;
  text-align: center;
  color: #1d1d1f;
}

/* Drop zone */
.drop-zone {
  border: 2px dashed #c7c7cc;
  border-radius: 12px;
  padding: 48px 24px;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
  user-select: none;
}

.drop-zone:hover,
.drop-zone.dragover {
  border-color: #0071e3;
  background: #f0f6ff;
}

.drop-icon {
  font-size: 40px;
  color: #aeaeb2;
  margin-bottom: 12px;
}

.drop-hint {
  font-size: 15px;
  font-weight: 500;
  color: #3a3a3c;
  margin-bottom: 6px;
}

.drop-sub {
  font-size: 13px;
  color: #8e8e93;
}

/* Progress area */
.progress-area {
  margin-top: 24px;
}

.file-info {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 10px;
}

.file-name {
  font-size: 14px;
  font-weight: 500;
  color: #1d1d1f;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 70%;
}

.file-size {
  font-size: 13px;
  color: #8e8e93;
  white-space: nowrap;
}

.progress-bar-wrap {
  background: #e5e5ea;
  border-radius: 99px;
  height: 8px;
  overflow: hidden;
}

.progress-bar {
  height: 100%;
  width: 0%;
  background: #0071e3;
  border-radius: 99px;
  transition: width 0.4s ease;
}

.status-text {
  font-size: 13px;
  color: #8e8e93;
  margin-top: 8px;
  text-align: right;
}

/* Action area */
.action-area {
  display: flex;
  gap: 12px;
  margin-top: 24px;
}

/* Error area */
.error-area {
  margin-top: 20px;
  background: #fff2f2;
  border: 1px solid #ffb3b3;
  border-radius: 10px;
  padding: 16px;
  text-align: center;
}

.error-area p {
  font-size: 14px;
  color: #c0392b;
  margin-bottom: 12px;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 10px 20px;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  border: none;
  text-decoration: none;
  text-align: center;
  transition: opacity 0.15s;
  flex: 1;
}

.btn:hover {
  opacity: 0.85;
}

.btn-primary {
  background: #0071e3;
  color: #fff;
}

.btn-secondary {
  background: #e5e5ea;
  color: #1d1d1f;
}

/* Utility */
.hidden {
  display: none !important;
}
