/* ============================================================
   Woerter und Zeichen zaehlen – Tool-spezifische Ergänzungen
   Baut auf invoice-generator.css (invgen-*) auf.
   ============================================================ */

.wc-text {
  min-height: 300px;
  resize: vertical;
  font-size: 1rem;
  line-height: 1.6;
}

.wc-file-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
}

.wc-file-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
}

.wc-file-status {
  font-size: 0.82rem;
  color: var(--text-secondary, #6b7280);
  overflow-wrap: anywhere;
}

.wc-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.wc-stat {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 12px 14px;
  border: 1px solid var(--border-color, #e5e7eb);
  border-radius: 10px;
  background: var(--bg-primary, #fff);
}

.wc-stat-main {
  background: #f5f3ff;
  border-color: #ddd6fe;
}

.wc-num {
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.2;
  font-variant-numeric: tabular-nums;
  color: var(--text-primary, #111827);
}

.wc-stat-main .wc-num {
  font-size: 2rem;
  color: #5b21b6;
}

.wc-label {
  font-size: 0.8rem;
  color: var(--text-secondary, #6b7280);
}

.wc-limit-bar {
  height: 10px;
  margin-top: 12px;
  border-radius: 999px;
  background: #ede9fe;
  overflow: hidden;
}

.wc-limit-fill {
  height: 100%;
  width: 0;
  border-radius: 999px;
  background: #7c3aed;
  transition: width 0.15s ease;
}

.wc-limit-bar.wc-limit-over .wc-limit-fill {
  background: #dc2626;
}

.wc-limit-text {
  margin: 6px 0 0;
  font-size: 0.88rem;
  font-weight: 600;
  color: #5b21b6;
}

.wc-limit-text.wc-limit-over {
  color: #dc2626;
}

.wc-top {
  margin-top: 16px;
  padding: 14px;
  border: 1px solid var(--border-color, #e5e7eb);
  border-radius: 10px;
}

.wc-top h3 {
  margin: 0 0 8px;
  font-size: 0.95rem;
}

.wc-top-list {
  margin: 0;
  padding-inline-start: 1.4em;
  display: grid;
  gap: 4px;
  font-size: 0.9rem;
}

.wc-top-list li span:first-child {
  overflow-wrap: anywhere;
}

.wc-top-n {
  float: inline-end;
  font-variant-numeric: tabular-nums;
  color: var(--text-secondary, #6b7280);
}

.wc-error {
  margin-top: 12px;
}
