body {
  font-family: Arial, sans-serif;
  background: #f4f4f4;
  text-align: center;
  padding: 20px;
}

h1 {
  font-size: 2em;
  margin-bottom: 20px;
}

#upload-area {
  background: #fff;
  border: 2px dashed #aaa;
  padding: 30px;
  border-radius: 10px;
  margin: 0 auto 20px;
  max-width: 500px;
}

#drop-label {
  display: block;
  cursor: pointer;
}

#fileInput {
  display: none;
}

button {
  padding: 10px 20px;
  margin-top: 10px;
  font-size: 16px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  color: white;
}

button:disabled {
  background: #aaa;
  cursor: not-allowed;
}

#startBtn {
  background-color: #28a745; /* Verde */
}

#downloadBtn {
  background-color: #007bff; /* Albastru */
}


#results {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.result-pair {
  display: flex;
  justify-content: center;
  gap: 20px;
  align-items: center;
}

.result-pair img {
  max-width: 150px;
  border-radius: 8px;
  box-shadow: 0 0 6px rgba(0,0,0,0.2);
}

#preview-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 15px;
  gap: 10px;
}

.preview-item {
  position: relative;
  width: 100px;
  height: 100px;
  overflow: hidden;
  border: 1px solid #ccc;
  border-radius: 8px;
  background: white;
}

.preview-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.remove-btn {
  position: absolute;
  top: 2px;
  right: 4px;
  background: rgba(0, 0, 0, 0.5);
  color: white;
  border: none;
  border-radius: 50%;
  width: 20px;
  height: 20px;
  cursor: pointer;
  font-size: 14px;
  line-height: 18px;
}
