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

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: #f5f5f5;
  color: #333;
  padding: 20px;
}

h1 {
  font-size: 1.4rem;
  margin-bottom: 16px;
  color: #002d74;
}

.container {
  max-width: 1000px;
  margin: 0 auto;
}

.input-section {
  background: #fff;
  border-radius: 8px;
  padding: 20px;
  margin-bottom: 20px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.input-section label {
  display: block;
  font-weight: 600;
  margin-bottom: 6px;
  font-size: 0.9rem;
}

.input-row {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.input-row textarea {
  flex: 1;
  min-height: 100px;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-family: monospace;
  font-size: 0.9rem;
  resize: vertical;
}

.input-row select {
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 0.9rem;
  background: #fff;
}

.btn {
  padding: 10px 20px;
  border: none;
  border-radius: 4px;
  font-size: 0.9rem;
  cursor: pointer;
  font-weight: 600;
  transition: background 0.15s;
}

.btn-primary {
  background: #002d74;
  color: #fff;
}

.btn-primary:hover {
  background: #003d9e;
}

.btn-secondary {
  background: #e0e0e0;
  color: #333;
}

.btn-secondary:hover {
  background: #d0d0d0;
}

.btn-copy {
  background: #28a745;
  color: #fff;
}

.btn-copy:hover {
  background: #218838;
}

.btn-copy.copied {
  background: #6c757d;
}

.controls {
  display: flex;
  gap: 8px;
  margin-top: 10px;
}

.output-section {
  background: #fff;
  border-radius: 8px;
  padding: 20px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
  display: none;
}

.output-section.visible {
  display: block;
}

.output-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.output-header h2 {
  font-size: 1.1rem;
  color: #002d74;
}

.nav-controls {
  display: flex;
  gap: 8px;
  align-items: center;
}

.nav-controls span {
  font-size: 0.85rem;
  color: #666;
  min-width: 60px;
  text-align: center;
}

.preview-area {
  display: flex;
  justify-content: center;
  padding: 20px;
  background: #fafafa;
  border: 1px solid #eee;
  border-radius: 4px;
  margin-bottom: 16px;
  min-height: 200px;
}

.preview-area svg {
  max-width: 100%;
  height: auto;
  max-height: 400px;
}

.output-actions {
  display: flex;
  gap: 8px;
  justify-content: center;
}

.error-msg {
  color: #dc3545;
  font-size: 0.85rem;
  margin-top: 8px;
}

.label-type-select {
  margin-bottom: 10px;
}

.info-text {
  font-size: 0.8rem;
  color: #888;
  margin-top: 4px;
}
