/* Styles specific to the Image to PDF tool */

.drop-area {
  border: 2px dashed #4CAF50;
  border-radius: 8px;
  padding: 40px;
  text-align: center;
  background-color: #f7fbf7;
  margin-bottom: 20px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.drop-area:hover, .drop-area.active {
  background-color: #e8f5e9;
}

.drop-message {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.icon {
  font-size: 36px;
  color: #4CAF50;
  background-color: rgba(76, 175, 80, 0.1);
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  margin-bottom: 15px;
}

.drop-message p {
  color: #555;
  font-size: 16px;
  margin-bottom: 5px;
}

.supported-formats {
  color: #777;
  font-size: 12px;
  margin-top: 5px;
}

.images-container {
  margin: 20px 0;
}

.image-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 15px;
  margin: 20px 0;
  max-height: 400px;
  overflow-y: auto;
  padding: 10px;
  border: 1px solid #eee;
  border-radius: 8px;
}

.image-item {
  position: relative;
  border: 1px solid #ddd;
  border-radius: 8px;
  overflow: hidden;
  background-color: #f9f9f9;
  transition: all 0.2s ease;
}

.image-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.image-preview {
  width: 100%;
  height: 150px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #f5f5f5;
}

.image-preview img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.image-info {
  padding: 10px;
  font-size: 12px;
  color: #666;
}

.image-name {
  font-weight: bold;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 3px;
}

.image-size {
  font-size: 11px;
  color: #777;
}

.image-actions {
  position: absolute;
  top: 5px;
  right: 5px;
  display: flex;
  gap: 5px;
}

.image-actions button {
  background-color: rgba(255, 255, 255, 0.8);
  border: none;
  border-radius: 50%;
  width: 24px;
  height: 24px;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #555;
  transition: all 0.2s ease;
}

.image-actions button:hover {
  background-color: rgba(255, 255, 255, 1);
  transform: scale(1.1);
}

.image-actions .remove-btn {
  color: #f44336;
}

.image-actions .move-up-btn,
.image-actions .move-down-btn {
  color: #2196F3;
}

.page-options {
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 15px;
  margin-bottom: 20px;
  background-color: #f9f9f9;
}

.page-options h3 {
  font-size: 16px;
  color: #333;
  margin-bottom: 15px;
}

.option-row {
  display: flex;
  gap: 20px;
  margin-bottom: 15px;
}

.option-group {
  flex: 1;
}

.option-group label {
  display: block;
  margin-bottom: 5px;
  font-weight: bold;
  color: #333;
  font-size: 14px;
}

select, input[type="number"] {
  width: 100%;
  padding: 8px 10px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 14px;
  background-color: white;
}

input[type="number"] {
  max-width: 100px;
}

.actions-container {
  display: flex;
  gap: 10px;
  margin-top: 20px;
}

.progress-container {
  margin: 20px 0;
  text-align: center;
}

.progress-bar {
  width: 100%;
  height: 10px;
  background-color: #eee;
  border-radius: 5px;
  margin: 20px 0;
  overflow: hidden;
}

.progress {
  height: 100%;
  background-color: #4CAF50;
  width: 0%;
  transition: width 0.3s ease;
}

.preview-container {
  width: 100%;
  height: 400px;
  border: 1px solid #ddd;
  border-radius: 4px;
  margin: 20px 0;
  overflow: hidden;
}

.preview-container iframe {
  width: 100%;
  height: 100%;
  border: none;
}

.result-info {
  background-color: #e8f5e9;
  border-left: 4px solid #4caf50;
  padding: 15px;
  border-radius: 4px;
  margin-bottom: 20px;
}

.result-info p {
  color: #2e7d32;
}

@media (max-width: 650px) {
  .drop-area {
    padding: 20px;
  }
  
  .image-list {
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  }
  
  .option-row {
    flex-direction: column;
    gap: 10px;
  }
  
  .actions-container {
    flex-direction: column;
  }
  
  .primary-btn, .secondary-btn {
    width: 100%;
  }
}