/* General Optimization */
#watermark-form div {
  margin: 10px;
}

#preview-selected-images img {
  border: 1px solid #ccc;
  border-radius: 4px;
  margin: 5px;
  max-width: 200px;
}

#watermark-preview-area {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-start;
  align-items: flex-start;
  padding: 10px;
  background: #f9f9f9;
  border: 1px dashed #ccc;
  min-height: 200px;
  max-width: 100%;
}

.preview-canvas {
  border: 1px solid #ccc;
  border-radius: 4px;
  background: #fff;
}

#color-palette {
  display: flex;
  gap: 1px;
}

.color-option {
  width: 4px;
  height: 4px;
  border: 2px solid transparent;
  cursor: pointer;
  margin: 0;
  transition: border 0.5s;
}

.color-option.selected {
  border: 2px dashed #f000ff;
  box-shadow: 0 0 10px #f000ff, 0 0 20px #ff00ff;
  background-color: rgba(240, 0, 255, 0.1);
  transform: scale(1.1);
  transition: all 0.3s ease-in-out;
}

.color-option.custom-color {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  background-color: transparent;
}

#custom-color-picker {
  margin-top: 10px;
}

/* Loading Indicator */
#loading-indicator {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 1000;
  text-align: center;
  background: rgba(255, 255, 255, 0.9);
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  font-family: Arial, sans-serif;
  font-size: 18px;
  font-weight: bold;
  color: #333;
}

#loading-text::after {
  content: "";
  display: inline-block;
  animation: dots 1.5s steps(3, end) infinite;
}

@keyframes dots {
  0% {
    content: "";
  }
  33% {
    content: ".";
  }
  66% {
    content: "..";
  }
  100% {
    content: "...";
  }
}

#loading-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.4);
  z-index: 999;
  display: none;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}
