/* ======================================================
   TEXT-ANALYZER.CSS
   Tool-specific styles only
====================================================== */

label {
  font-weight: 600;
  margin-bottom: 6px;
  display: block;
}

input[type="file"] {
  margin-bottom: 16px;
}

textarea {
  width: 100%;
  height: 160px;
  padding: 12px;
  font-family: monospace;
  border-radius: 8px;
  border: 1px solid var(--border);
  resize: vertical;
  background-color: var(--bg-page);
  color: var(--text-main);
}

.preview {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin: 10px 0 16px;
}

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

button {
  padding: 12px;
  border-radius: 8px;
  font-weight: 600;
  border: none;
  cursor: pointer;
}

.btn-analyse {
  background-color: var(--primary);
  color: #ffffff;
}

.btn-clear {
  background-color: #6b7280;
  color: #ffffff;
}

#errorMessage {
  color: #b91c1c;
  margin-bottom: 12px;
  display: none;
}

.result-box {
  display: none;
  background-color: var(--bg-page);
  border-radius: 10px;
  padding: 18px;
  border: 1px solid var(--border);
}

.result-item {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  border-bottom: 1px dashed var(--border);
}

.result-item:last-child {
  border-bottom: none;
}
