/* Word Cloud Generator Scoped Styles */
.wcg-main {
  max-width: 960px;
  margin: 0 auto;
  padding: 1.5rem 1rem 3rem;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color: #1f2937;
  line-height: 1.5;
}

.wcg-card {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 24px;
  margin-bottom: 24px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.wcg-title-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  flex-wrap: wrap;
  gap: 12px;
}

.wcg-title-row h2 {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 600;
  color: #111827;
}

.wcg-textarea {
  width: 100%;
  box-sizing: border-box;
  min-height: 140px;
  padding: 14px;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  font-family: inherit;
  font-size: 0.95rem;
  line-height: 1.6;
  resize: vertical;
  background: #f9fafb;
  color: inherit;
  margin-bottom: 16px;
}

.wcg-textarea:focus {
  outline: none;
  border-color: #0284c7;
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.15);
}

.wcg-controls-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
  margin-bottom: 20px;
}

.wcg-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.wcg-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: #4b5563;
}

.wcg-select {
  padding: 8px 12px;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  background: #ffffff;
  font-size: 0.875rem;
  color: inherit;
}

.wcg-select:focus {
  outline: none;
  border-color: #0284c7;
}

.wcg-checkbox-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.875rem;
  color: #374151;
  cursor: pointer;
  margin-top: 24px;
}

.wcg-btn-bar {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

.wcg-btn {
  padding: 10px 18px;
  font-size: 0.9rem;
  font-weight: 600;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.15s ease;
  border: 1px solid transparent;
}

.wcg-btn-primary {
  background: #0284c7;
  color: #ffffff;
}

.wcg-btn-primary:hover {
  background: #0369a1;
}

.wcg-btn-secondary {
  background: #f3f4f6;
  border-color: #d1d5db;
  color: #374151;
}

.wcg-btn-secondary:hover {
  background: #e5e7eb;
}

/* Canvas Display */
.wcg-canvas-card {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 24px;
  text-align: center;
  margin-bottom: 24px;
}

.wcg-canvas-wrap {
  width: 100%;
  max-width: 800px;
  margin: 0 auto;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid #e5e7eb;
  background: #f8fafc;
  display: flex;
  justify-content: center;
  align-items: center;
}

.wcg-canvas {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 10;
  display: block;
}

