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

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  min-height: 100vh;
  padding: 40px 20px;
}

.upload-container {
  max-width: 500px;
  margin: 0 auto;
  background: white;
  border-radius: 16px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
  padding: 40px;
}

.upload-container h1 {
  text-align: center;
  color: #333;
  margin-bottom: 8px;
  font-size: 28px;
}

.subtitle {
  text-align: center;
  color: #999;
  margin-bottom: 30px;
  font-size: 14px;
}

.upload-box {
  border: 2px dashed #ddd;
  border-radius: 12px;
  padding: 40px 20px;
  text-align: center;
  transition: all 0.3s ease;
  cursor: pointer;
  margin-bottom: 20px;
}

.upload-box:hover,
.upload-box.dragover {
  border-color: #667eea;
  background-color: #f8f9ff;
}

#fileLabel {
  display: flex;
  flex-direction: column;
  align-items: center;
  color: #667eea;
  font-size: 16px;
  font-weight: 500;
}

#fileLabel svg {
  margin-bottom: 12px;
  color: #667eea;
}

#fileLabel .hint {
  font-size: 13px;
  color: #999;
  font-weight: normal;
  margin-top: 4px;
}

.file-info {
  margin-top: 16px;
  font-size: 14px;
  color: #666;
}

#fileName {
  color: #333;
  font-weight: 500;
}

#uploadBtn {
  width: 100%;
  padding: 14px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border: none;
  border-radius: 10px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
}

#uploadBtn:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 5px 20px rgba(102, 126, 234, 0.4);
}

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

.result {
  margin-top: 24px;
  padding: 20px;
  border-radius: 12px;
  display: none;
}

.success {
  background: #e8f5e9;
  border: 1px solid #c8e6c9;
  display: none;
}

.success p {
  color: #2e7d32;
  font-weight: 600;
  margin-bottom: 16px;
  font-size: 16px;
}

.error {
  background: #ffebee;
  border: 1px solid #ffcdd2;
  display: none;
}

.error p {
  color: #c62828;
  font-weight: 600;
}

.url-box {
  display: flex;
  align-items: center;
  margin-bottom: 12px;
  gap: 10px;
}

.url-box span {
  font-size: 14px;
  color: #666;
  flex-shrink: 0;
}

.url-box input {
  flex: 1;
  padding: 10px 12px;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 13px;
  background: white;
  color: #333;
}

.copy-btn {
  padding: 10px 16px;
  background: #667eea;
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 13px;
  cursor: pointer;
  transition: background 0.2s;
}

.copy-btn:hover {
  background: #5a6fd6;
}

.upload-list {
  margin-top: 30px;
  padding-top: 24px;
  border-top: 1px solid #eee;
}

.upload-list h3 {
  color: #333;
  font-size: 16px;
  margin-bottom: 16px;
}

.upload-list ul {
  list-style: none;
}

.upload-list li {
  padding: 12px;
  background: #f8f9fa;
  border-radius: 8px;
  margin-bottom: 8px;
  font-size: 14px;
  color: #666;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.upload-list li a {
  color: #667eea;
  text-decoration: none;
  font-size: 13px;
}

.upload-list li a:hover {
  text-decoration: underline;
}
