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

body {
  font-family:
    -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  line-height: 1.6;
  color: #333;
  background: linear-gradient(135deg, #667eea 0%, #504ba2 100%);
  min-height: 100vh;
  padding: 1rem 1rem;
}

.container {
  max-width: 700px;
  margin: 0 auto;
  background: white;
  border-radius: 6px;
  padding: 1.75rem 2rem 2.2rem 2rem;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

h1 {
  font-size: 2rem;
  margin-bottom: 0rem;
  color: #667eea;
}

.subtitle {
  color: #555;
  margin-top: -0.4rem;
  margin-bottom: 2rem;
  font-size: 1.1rem;
}

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

label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
  color: #444;
}

input[type='text'] {
  width: 100%;
  padding: 0.75rem;
  font-size: 1rem;
  border: 2px solid #e0e0e0;
  border-radius: 6px;
  transition: border-color 0.3s;
}

input ~ label {
  margin-top: 15px;
}

input[type='text']:focus {
  outline: none;
  border-color: #667eea;
}

button {
  width: 100%;
  padding: 0.875rem;
  font-size: 1.1rem;
  font-weight: 600;
  color: white;
  background: linear-gradient(135deg, #667eea 0%, #504ba2 100%);
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition:
    transform 0.2s,
    box-shadow 0.2s;
}

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

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

li {
  margin-left: 2rem;
}

.report {
  margin-top: 2rem;
  padding: 1.5rem;
  background: #f8f9fa;
  border-radius: 6px;
  border: 1px solid #8793ca;
}

.report h2 {
  margin-bottom: 1rem;
  color: #333;
  font-size: 1.5rem;
}

.status {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  border-radius: 4px;
  font-weight: 600;
  font-size: 0.875rem;
  margin-left: 0.5rem;
}

.status.pass {
  background: #d4edda;
  color: #155724;
}

.status.fail {
  background: #f8d7da;
  color: #721c24;
}

.status.warn {
  background: #fff3cd;
  color: #856404;
}

.check-item {
  padding: 1rem;
  margin-bottom: 1rem;
  background: white;
  border-radius: 6px;
  border: 1px solid #e0e0e0;
}

.check-item h3 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
  color: #444;
}

.check-item p {
  margin: 0.5rem 0;
  color: #666;
}

.check-item .code-block {
  display: block;
  margin-top: 0.5rem;
  padding: 0.5rem;
  background: #f1f3f5;
  border-radius: 4px;
  font-size: 0.875rem;
  overflow-x: auto;
  font-family: monospace;
}

.code-block.hidden {
  display: none;
}

.error {
  padding: 1rem;
  background: #f8d7da;
  border: 1px solid #f5c6cb;
  border-radius: 6px;
  color: #721c24;
}

#aiError.error {
  margin-top: 1.5em;
}

#aiInterpret {
  margin-top: 1.5rem;
}

#aiReport h1 {
  color: #333;
  font-size: 1.5rem;
}

#aiReport h2 {
  margin-top: 1.5rem;
  font-size: 1.1rem;
  color: #504ba2;
  margin-bottom: 0rem;
}

#aiAnswer p {
  margin-top: 0.7em;
}

#aiAnswer table th {
  text-align: left;
}

#aiAnswer table td {
  vertical-align: top;
}

.loading {
  text-align: center;
  padding: 2rem;
  color: #667eea;
  font-weight: 600;
}

.hidden {
  display: none;
}

footer {
  max-width: 700px;
  margin: 1rem auto 0 auto;
  background: none;
  //opacity: 0.2;
  border-radius: 6px;
  padding: 1rem 2rem 1rem 2rem;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

footer p {
  color: white;
  text-align: center;
  font-size: 0.75rem;
}

footer a {
  color: white;
  text-decoration: none;
  font-weight: bold;
}
