* {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 16px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: linear-gradient(135deg, #4FACFE 0%, #00F2FE 100%);
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: max(16px, env(safe-area-inset-top));
  padding-bottom: max(16px, env(safe-area-inset-bottom));
}

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

.header {
  text-align: center;
  margin-bottom: 32px;
}

.header h1 {
  margin: 0 0 12px 0;
  font-size: 32px;
  font-weight: 700;
  color: #1a1a1a;
}

.header p {
  margin: 0;
  font-size: 14px;
  color: #666;
}

.form-section {
  margin-bottom: 24px;
}

label {
  display: block;
  margin-top: 20px;
  margin-bottom: 8px;
  font-weight: 600;
  font-size: 14px;
  color: #1a1a1a;
}

label:first-child {
  margin-top: 0;
}

select,
input[type="file"] {
  width: 100%;
  padding: 12px 14px;
  font-size: 16px;
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  background: #f9f9f9;
  font-family: inherit;
  transition: border-color 0.2s, background 0.2s;
}

select:hover,
input[type="file"]:hover {
  border-color: #4FACFE;
  background: white;
}

select:focus,
input[type="file"]:focus {
  outline: none;
  border-color: #4FACFE;
  background: white;
  box-shadow: 0 0 0 3px rgba(79, 172, 254, 0.1);
}

input[type="file"]::file-selector-button {
  background: #4FACFE;
  color: white;
  padding: 8px 16px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 600;
  margin-right: 12px;
}

.primary-button {
  width: 100%;
  padding: 16px;
  margin-top: 24px;
  font-size: 16px;
  font-weight: 700;
  border: none;
  border-radius: 8px;
  background: linear-gradient(135deg, #4FACFE 0%, #00F2FE 100%);
  color: white;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(79, 172, 254, 0.3);
  transition: transform 0.2s, box-shadow 0.2s;
}

.primary-button:active {
  transform: scale(0.98);
  box-shadow: 0 2px 8px rgba(79, 172, 254, 0.2);
}

.primary-button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.status {
  margin-top: 12px;
  font-size: 14px;
  font-weight: 500;
  color: #666;
  min-height: 20px;
}

.catch-summary {
  margin-top: 16px;
  padding: 12px;
  background: #f0f8ff;
  border-left: 4px solid #4FACFE;
  border-radius: 4px;
  font-size: 13px;
  line-height: 1.5;
  color: #333;
  display: none;
}

.catch-summary.visible {
  display: block;
}

.log {
  white-space: pre-wrap;
  background: #f5f5f5;
  padding: 16px;
  border-radius: 8px;
  font-size: 12px;
  font-family: "Courier New", monospace;
  color: #333;200px;
  overflow-y: auto;
  border-left: 4px solid #4FACFE;
  margin-bottom: 16px
  border-left: 4px solid #4FACFE;
}
