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

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
  background: #fafafa;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #333;
}

main {
  width: 100%;
  max-width: 480px;
  padding: 40px 20px;
  text-align: center;
}

h1 {
  font-size: 2.5rem;
  font-weight: 600;
  color: #111;
  margin-bottom: 8px;
}

.subtitle {
  color: #666;
  margin-bottom: 40px;
  font-size: 1rem;
}

#drop-zone {
  border: 2px dashed #ccc;
  border-radius: 16px;
  padding: 60px 40px;
  cursor: pointer;
  transition: all 0.2s ease;
  background: #fff;
  position: relative;
}

#drop-zone:hover,
#drop-zone.dragover {
  border-color: #007aff;
  background: #f0f7ff;
}

#drop-zone.dragover {
  transform: scale(1.02);
}


.drop-content {
  pointer-events: none;
}

.upload-icon {
  width: 48px;
  height: 48px;
  color: #999;
  margin-bottom: 16px;
}

#drop-zone:hover .upload-icon,
#drop-zone.dragover .upload-icon {
  color: #007aff;
}

#drop-zone p {
  font-size: 1.1rem;
  color: #555;
  margin-bottom: 8px;
}

.size-limit {
  font-size: 0.85rem;
  color: #999;
}

#file-input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

#progress-container {
  margin-top: 24px;
  background: #e0e0e0;
  border-radius: 8px;
  height: 8px;
  overflow: hidden;
  position: relative;
}

#progress-bar {
  height: 100%;
  background: #007aff;
  width: 0%;
  transition: width 0.3s ease;
}

#progress-text {
  position: absolute;
  right: 0;
  top: 16px;
  font-size: 0.85rem;
  color: #666;
}

#message {
  margin-top: 24px;
  padding: 16px;
  border-radius: 8px;
  font-size: 0.95rem;
}

#message.success {
  background: #e8f5e9;
  color: #2e7d32;
}

#message.error {
  background: #ffebee;
  color: #c62828;
}

#status {
  margin-top: 32px;
  padding: 24px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

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

.file-icon {
  width: 40px;
  height: 40px;
  color: #007aff;
  flex-shrink: 0;
}

.file-details {
  text-align: left;
  overflow: hidden;
}

#file-name {
  display: block;
  font-weight: 500;
  color: #111;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

#file-size {
  font-size: 0.85rem;
  color: #666;
}

#download-btn {
  width: 100%;
  padding: 14px 24px;
  background: #007aff;
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s ease;
}

#download-btn:hover {
  background: #0056b3;
}

@media (max-width: 480px) {
  main {
    padding: 24px 16px;
  }
  
  h1 {
    font-size: 2rem;
  }
  
  #drop-zone {
    padding: 40px 24px;
  }
}
