.jpg-to-pdf-wrapper {
  max-width: 960px;
  margin: 30px auto;
  padding: 20px;
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 12px;
  font-family: 'Segoe UI', sans-serif;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

/* File Upload Wrapper */
.upload-wrapper {
  display: flex;
  align-items: center;
  gap: 15px;
  margin: 20px 0;
}

/* Hide original file input */
.upload-wrapper input[type="file"] {
  display: none;
}

/* Custom Upload Button */
.styled-upload-btn {
  display: inline-block;
  padding: 12px 24px;
  font-size: 16px;
  background: linear-gradient(135deg, #0f2027, #203a43, #2c5364);
  color: white;
  border: none;
  border-radius: 30px;
  cursor: pointer;
  transition: 0.3s ease;
  font-weight: 500;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  margin: 10px 10px 10px 0;
}

.styled-upload-btn:hover {
  background: linear-gradient(135deg, #1e3c72, #2a5298);
}

/* Size Preset Buttons */
.size-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  margin: 20px 0;
}

.size-buttons button {
  padding: 10px 20px;
  border: none;
  font-size: 14px;
  border-radius: 8px;
  cursor: pointer;
  color: #fff;
  font-weight: 500;
  background: linear-gradient(135deg, #00b4db, #0083b0);
  transition: background 0.3s ease, transform 0.2s ease;
}

.size-buttons button:hover {
  background: linear-gradient(135deg, #0083b0, #00b4db);
  transform: scale(1.03);
}

/* Target Size Input */
.target-size-box {
  margin: 20px 0;
  display: flex;
  align-items: center;
  gap: 12px;
}

.target-size-box input {
  width: 100px;
  padding: 8px 10px;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 14px;
}

/* Tool Action Buttons */
.tool-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  margin: 25px 0 10px;
}

.action-btn {
  padding: 10px 20px;
  border: none;
  font-size: 14px;
  border-radius: 8px;
  cursor: pointer;
  color: #fff;
  font-weight: 500;
  background: linear-gradient(135deg, #FF512F, #DD2476);
  transition: background 0.3s ease, transform 0.2s ease;
}

.action-btn:hover {
  background: linear-gradient(135deg, #DD2476, #FF512F);
  transform: scale(1.03);
}

/* Add More Files Button */
.add-more-button {
  display: inline-block;
  font-size: 14px;
  padding: 10px 20px;
  color: #fff;
  font-weight: 500;
  border: none;
  border-radius: 8px;
  background: linear-gradient(135deg, #6a11cb, #2575fc);
  cursor: pointer;
  transition: background 0.3s ease, transform 0.2s ease;
  margin: 10px 0 20px;
}

.add-more-button:hover {
  background: linear-gradient(135deg, #2575fc, #6a11cb);
  transform: scale(1.03);
}

/* Preview Area */
.preview-area {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 20px;
}

.preview-area img {
  max-width: 160px;
  height: auto;
  border: 2px solid #ccc;
  border-radius: 10px;
  box-shadow: 2px 2px 6px rgba(0, 0, 0, 0.1);
}
.preview-image {
  max-width: 150px;
  margin: 10px;
  border: 1px solid #ccc;
  border-radius: 8px;
}
