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

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: #f5f5f5;
  color: #333;
  line-height: 1.6;
}

.container {
  max-width: 720px;
  margin: 2rem auto;
  padding: 0 1rem;
}

h1 {
  margin-bottom: 1.5rem;
  color: #1a1a1a;
}

h2 {
  margin-bottom: 1rem;
  color: #333;
}

.form-group {
  margin-bottom: 1rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.25rem;
  font-weight: 600;
  font-size: 0.9rem;
}

.form-group input[type="text"],
.form-group input[type="password"] {
  width: 100%;
  padding: 0.5rem;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 1rem;
}

.module-checkbox {
  display: inline-block;
  margin-right: 1rem;
  cursor: pointer;
}

button[type="submit"] {
  background: #2563eb;
  color: white;
  border: none;
  padding: 0.6rem 1.5rem;
  border-radius: 4px;
  font-size: 1rem;
  cursor: pointer;
  margin-top: 0.5rem;
}

button[type="submit"]:hover {
  background: #1d4ed8;
}

button[type="submit"]:disabled {
  background: #93c5fd;
  cursor: not-allowed;
}

.hidden {
  display: none;
}

.progress-bar {
  background: #e5e7eb;
  border-radius: 4px;
  height: 1.5rem;
  overflow: hidden;
  margin-bottom: 0.5rem;
}

.progress-fill {
  background: #2563eb;
  height: 100%;
  width: 0%;
  transition: width 0.3s ease;
  border-radius: 4px;
}

#progress-text {
  font-size: 0.9rem;
  color: #666;
  margin-bottom: 1rem;
}

#event-log {
  list-style: none;
  max-height: 300px;
  overflow-y: auto;
  border: 1px solid #e5e7eb;
  border-radius: 4px;
  padding: 0.5rem;
  background: white;
}

#event-log li {
  padding: 0.25rem 0.5rem;
  font-size: 0.85rem;
  font-family: monospace;
  border-bottom: 1px solid #f0f0f0;
}

.log-error {
  color: #dc2626;
}

.log-info {
  color: #333;
}

section {
  margin-top: 2rem;
  padding: 1rem;
  background: white;
  border-radius: 6px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

#result-content pre {
  background: #f8f9fa;
  padding: 1rem;
  border-radius: 4px;
  overflow-x: auto;
  font-size: 0.85rem;
}
