.file-container {
  width: 100%;
  position: relative;
}

.file-container > input {
  display: none;
}

.filetype-area {
  background-color: #f8fafc;
  padding: 12px;
  border-radius: 0.5rem;
  border: 2px dashed #ccc;
  cursor: pointer;
  transition: all 0.3s ease;
  /* min-height: 60px; */
  height: 100px;
  /* max-height: 100px; */
  display: flex;
  flex-direction: row;
  overflow: hidden;
}

.filetype-area.dragover {
  background-color: #e5e7eb;
  border: 2px solid #ccc;
}

.filetype-message {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  padding: 12px;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  flex: 1;
  overflow: hidden;
}

.filetype-placeholder {
  color: #9ca3af;
  font-size: clamp(0.75rem, 2vw, 1rem);
  font-weight: 500;
}

.error-placeholder {
  display: none;
  color: oklch(70.4% 0.191 22.216);
  font-size: clamp(0.75rem, 2vw, 1rem);
  font-weight: 500;
}

.preview-container {
  position: relative;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 12px;
  min-height: 40px;
  max-height: 80px;
  width: 100%;
}

.preview-image {
  height: 100%;
  width: 50%;
  object-fit: contain;
  flex-shrink: 0;
  max-height: 100%;
  transition: width 0.2s;
}

.file-container:hover .preview-image {
  transition: width 0.35s;
  width: 100%;
}

.file-info {
  flex: 1;
  min-width: 0;
}

.file-name {
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: #374151;
  font-size: 0.875rem;
  max-width: 100%;
}