.wfc-converter-box {
  max-width: 520px;
  margin: 20px auto;
  padding: 24px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
  font-family: inherit;
}

.wfc-converter-box h3 {
  margin-top: 0;
  margin-bottom: 8px;
}

.wfc-upload-area {
  margin: 16px 0;
}

.wfc-converter-box input[type="file"] {
  display: block;
  width: 100%;
  padding: 10px;
  border: 1px dashed #cbd5e1;
  border-radius: 6px;
  background-color: #f8fafc;
}

#wfc-submit-btn {
  width: 100%;
  padding: 10px 16px;
  background-color: #2563eb;
  color: #fff;
  border: none;
  border-radius: 6px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
}

#wfc-submit-btn:hover {
  background-color: #1d4ed8;
}

#wfc-submit-btn:disabled {
  background-color: #94a3b8;
  cursor: not-allowed;
}

.wfc-feedback {
  margin-top: 16px;
  padding: 12px;
  border-radius: 6px;
  font-size: 14px;
}

.wfc-feedback.success {
  background-color: #ecfdf5;
  color: #065f46;
  border: 1px solid #a7f3d0;
}

.wfc-feedback.error {
  background-color: #fef2f2;
  color: #991b1b;
  border: 1px solid #fecaca;
}

.wfc-dl-link {
  display: inline-block;
  margin-left: 8px;
  color: #2563eb;
  text-decoration: underline;
  font-weight: 600;
}

/* Compact thumbnail strip */
.wfc-preview-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 12px 0;
  padding: 8px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
}

.wfc-preview-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 52px;
}

/* Fixed mini box */
.wfc-thumb-wrapper {
  width: 48px;
  height: 48px;
  border-radius: 4px;
  overflow: hidden;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

/* Ensure the image fills the square uniformly */
.wfc-thumb-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Mini badge for DOCX files */
.wfc-doc-badge {
  background: #2563eb;
  color: #ffffff;
  font-weight: 600;
  font-size: 10px;
  letter-spacing: 0.5px;
}

/* Truncated label under the thumbnail */
.wfc-file-name {
  margin-top: 4px;
  font-size: 10px;
  color: #64748b;
  max-width: 48px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.2;
}
