* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: 'Segoe UI', Arial, sans-serif;
  font-size: 14px;
  color: #1a1a1a;
  background: #f8fafc;
  line-height: 1.5;
}

.container {
  max-width: 900px;
  margin: 0 auto;
  padding: 32px 24px 48px;
}

.header{
  display: flex;
  align-items: center;
  justify-content: start;
  gap: 4px;
  margin-bottom: 32px;
}


.header h1 {
  margin: 0;
  line-height: 32px;
  font-size: 32px;
  color: #111;
}

.header img {
  width: 48px;
  height: 48px;
}

.label {
  display: block;
  margin-bottom: 8px;
  color: #555;
}

.label code{
  font-weight: 600;
  color: #334155;
  background-color: #dadada;
}

.textarea {
  width: 100%;
  min-height: 320px;
  padding: 12px 14px;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  font-family: Consolas, 'Courier New', monospace;
  font-size: 13px;
  resize: vertical;
  background: #fff;
}

.textarea:focus {
  outline: 2px solid #2563eb;
  outline-offset: 1px;
  border-color: #2563eb;
}

.actions {
  display: flex;
  gap: 12px;
  margin-top: 16px;
}

.btn {
  padding: 10px 20px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  border: none;
}

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

.btn-primary {
  background: #2563eb;
  color: #fff;
}

.btn-primary:hover:not(:disabled) {
  background: #1d4ed8;
}

.btn-secondary {
  background: #e2e8f0;
  color: #334155;
}

.btn-secondary:hover:not(:disabled) {
  background: #cbd5e1;
}

.status {
  margin-top: 20px;
  padding: 16px;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  border-radius: 8px;
}

.status-bar {
  height: 6px;
  background: #dbeafe;
  border-radius: 3px;
  overflow: hidden;
  margin-bottom: 10px;
}

.status-bar-fill {
  height: 100%;
  width: 0%;
  background: #2563eb;
  border-radius: 3px;
  transition: width 0.2s ease;
}

.status-text {
  margin: 0;
  font-size: 13px;
  color: #1e40af;
}

.report-ready {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-top: 20px;
  padding: 16px;
  background: #f0fdf4;
  border: 1px solid #86efac;
  border-radius: 8px;
}

.report-ready-text {
  height: max-content;
  margin: 0;
  font-size: 16px;
  font-weight: 600;
  color: #166534;
}

.error {
  margin-top: 16px;
  padding: 12px 14px;
  background: #fef2f2;
  border-left: 4px solid #ef4444;
  color: #991b1b;
  border-radius: 4px;
}

.footer {
  margin-top: 32px;
  padding-top: 20px;
  border-top: 1px solid #e2e8f0;
  font-size: 12px;
  color: #64748b;
}

.footer p {
  margin: 0;
}

code {
  font-family: Consolas, monospace;
  font-size: 12px;
  background: #f1f5f9;
  padding: 1px 5px;
  border-radius: 3px;
}
