:host {
  display: block;
}

.upload-container {
  border: 2px dashed #ccc;
  border-radius: 8px;
  padding: 30px;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
  background-color: #f9f9f9;
  margin-bottom: 20px;
}

.upload-container:hover {
  border-color: #667;
  background-color: #f5f5f5;
}

.dragging {
  border-color: #4a5568;
  background-color: #edf2f7;
}

.file-input {
  display: none;
}

.upload-icon {
  display: flex;
  justify-content: center;
  margin-bottom: 10px;
}

.upload-icon svg {
  width: 40px;
  height: 40px;
  fill: #5a67d8;
}

.upload-text {
  color: #4a5568;
}

.upload-text p {
  margin: 5px 0;
}

.upload-hint {
  font-size: 0.875rem;
  color: #718096;
}

.preview-container {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 15px;
}

.preview-item {
  position: relative;
  width: 100px;
  height: 100px;
  overflow: hidden;
  border-radius: 4px;
  border: 1px solid #e2e8f0;
}

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

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

.remove-button:hover {
  background-color: rgba(0, 0, 0, 0.7);
}

.upload-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: bold;
  font-size: 14px;
}
.preview-item {
  position: relative; /* Ensure overlay positions correctly */
}
