@keyframes mbc-file-upload-spin {
  to {
    transform: rotate(360deg);
  }
}

.form-group.file .mbc-upload-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
  padding: 6px 10px;
  font-size: 12px;
  color: #6b7280;
  background: #f4f6f8;
  border: 1px solid #e5e7eb;
  border-radius: 999px;
  max-width: 100%;
}

.form-group.file .mbc-upload-status {
  word-break: break-word;
}

.form-group.file .mbc-upload-status:empty {
  display: none;
}

.form-group.file .mbc-upload-hint {
  display: block;
  margin-top: 6px;
  font-size: 12px;
  color: #9aa3af;
}

.form-group.file .choose-files {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 14px 16px;
  border-radius: 12px;
  border: 1px solid #e5e7eb;
  background: #fff;
  cursor: pointer;
  transition: border-color 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
}

.form-group.file.mbc-file-selected .choose-files {
  border-color: #10b981;
  background: #f0fdf4;
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.12);
}

.form-group.file.mbc-file-uploading .choose-files {
  opacity: 0.7;
}

.form-group.file .mbc-upload-preview {
  display: none;
  margin-top: 10px;
  max-width: 160px;
  width: 100%;
  height: auto;
  border-radius: 10px;
  border: 1px solid #e5e7eb;
  background: #fff;
  object-fit: cover;
}

.form-group.file .mbc-upload-preview.show {
  display: block;
}

.mbc-form-debug {
  margin-top: 14px;
  padding: 10px 12px;
  font-size: 11px;
  line-height: 1.4;
  color: #1f2937;
  background: #f9fafb;
  border: 1px dashed #e5e7eb;
  border-radius: 8px;
  white-space: pre-wrap;
  word-break: break-word;
}

.form-group.file.mbc-file-selected .mbc-upload-status::before {
  content: "✓";
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #10b981;
  color: #fff;
  font-size: 10px;
  line-height: 1;
}

.form-group.file.mbc-file-uploading .mbc-upload-status::before {
  content: "";
  width: 12px;
  height: 12px;
  border: 2px solid rgba(154, 163, 175, 0.35);
  border-top-color: rgba(154, 163, 175, 0.9);
  border-radius: 50%;
  animation: mbc-file-upload-spin 0.8s linear infinite;
  background: transparent;
  color: inherit;
}
