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

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

.container {
  background: white;
  border-radius: 12px;
  padding: 32px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  width: 100%;
  max-width: 500px;
}

h1 {
  text-align: center;
  color: #333;
  margin-bottom: 24px;
  font-size: 1.5rem;
}

.upload-area {
  border: 2px dashed #ccc;
  border-radius: 8px;
  padding: 40px 20px;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.3s, background-color 0.3s;
  margin-bottom: 20px;
}

.upload-area:hover,
.upload-area.dragover {
  border-color: #4a90d9;
  background-color: #f0f7ff;
}

.upload-area p {
  color: #666;
  font-size: 1rem;
}

#uploadBtn {
  width: 100%;
  padding: 14px;
  background-color: #4a90d9;
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.3s;
}

#uploadBtn:hover:not(:disabled) {
  background-color: #357abd;
}

#uploadBtn:disabled {
  background-color: #ccc;
  cursor: not-allowed;
}

#status {
  margin-top: 20px;
  text-align: center;
  font-size: 1rem;
  font-weight: 500;
  min-height: 24px;
}

#status.uploading {
  color: #d4a017;
}

#status.success {
  color: #2e7d32;
}

#status.error {
  color: #c62828;
}

#progressContainer {
  margin-top: 20px;
}

#progressBarWrapper {
  width: 100%;
  height: 24px;
  background-color: #e0e0e0;
  border-radius: 12px;
  overflow: hidden;
  position: relative;
}

#progressBar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #4a90d9, #357abd);
  transition: width 0.1s ease;
  border-radius: 12px;
}

#progressInfo {
  display: flex;
  justify-content: space-between;
  margin-top: 8px;
  font-size: 0.9rem;
  color: #333;
}

#progressPercent {
  font-weight: 600;
}

#progressSpeed {
  font-weight: 500;
  color: #666;
}

#progressDetails {
  display: flex;
  justify-content: space-between;
  margin-top: 4px;
  font-size: 0.8rem;
  color: #888;
}

#fileList {
  margin-top: 20px;
}

.file-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 12px;
  background-color: #f9f9f9;
  border-radius: 4px;
  margin-bottom: 8px;
  font-size: 0.9rem;
}

.file-name {
  color: #333;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 70%;
}

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

@media (max-width: 480px) {
  .container {
    padding: 24px;
  }
  
  h1 {
    font-size: 1.25rem;
  }
  
  .upload-area {
    padding: 30px 15px;
  }
}