.container {
  padding: 20px;
}

.hidden {
  display: none !important;
}

.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.secondary {
  background-color: #f3f4f6;
  color: #374151;
}

#loadingState {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 200px;
}

input.form-item, textarea.form-item {
  width: 100%;
  margin: 8px 0;
  padding: 8px;
}

button {
  margin: 8px 0;
  padding: 8px 16px;
  cursor: pointer;
}

#imagePreview {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
  gap: 8px;
  margin-top: 8px;
}

.image-preview-item {
  position: relative;
  aspect-ratio: 1;
  border: 1px solid #ddd;
  border-radius: 4px;
  overflow: hidden;
}

.img-wrapper {
  width: 100%;
  height: 100%;
}

.image-preview-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.remove-image {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: rgba(255, 0, 0, 0.8);
  color: white;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  font-size: 16px;
  line-height: 1;
}

.remove-image:hover {
  background: rgba(255, 0, 0, 1);
}

.remove-image {
  position: absolute;
  top: 0;
  right: 0;
  background: red;
  color: white;
  border: none;
  padding: 2px 6px;
  cursor: pointer;
}