/* CSS for PDF to Image modal */
#pdfToImageModal .modal-content {
  max-width: 700px;
  padding: 30px;
}

#pdfToImageModal h2 {
  margin-bottom: 20px;
  color: #4361ee;
}

#pdfToImageInput {
  margin-bottom: 15px;
  width: 100%;
  padding: 10px;
  border: 1px dashed #ccc;
  border-radius: 4px;
  background-color: #f9f9f9;
}

#pdfPreview {
  border: 1px solid #ddd;
  margin-top: 20px;
  width: 100%;
  min-height: 400px;
  background-color: white;
  overflow-y: auto;
}

#downloadPdfImages {
  background-color: #4361ee;
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

#downloadPdfImages:hover {
  background-color: #3651d3;
}

#downloadPdfImages:before {
  content: "\f019";
  font-family: "Font Awesome 5 Free";
  font-weight: 900;
}

#pdfToImageStatus {
  padding: 10px;
  border-radius: 4px;
  margin-bottom: 15px;
}

#imageQualitySelector {
  margin: 15px 0;
  width: 100%;
  padding: 8px;
  border-radius: 4px;
  border: 1px solid #ddd;
}

#pageRangeInput {
  margin: 15px 0;
  width: 100%;
  padding: 8px;
  border-radius: 4px;
  border: 1px solid #ddd;
}

/* Image thumbnails container */
#pdfPageThumbnails {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 15px;
}

.page-thumbnail {
  border: 1px solid #ddd;
  padding: 5px;
  border-radius: 4px;
  width: calc(33.333% - 10px);
  position: relative;
}

.page-thumbnail img {
  width: 100%;
  height: auto;
  border-radius: 2px;
}

.page-number {
  position: absolute;
  bottom: 5px;
  right: 5px;
  background-color: rgba(0,0,0,0.6);
  color: white;
  padding: 2px 6px;
  border-radius: 3px;
  font-size: 12px;
}

.loading-indicator {
  font-size: 18px;
  color: #4361ee;
}

/* File upload styling */
.file-upload-box {
  border: 2px dashed #ccc;
  padding: 30px;
  text-align: center;
  border-radius: 8px;
  margin-bottom: 20px;
  background-color: #f9f9f9;
  transition: all 0.3s;
}

.file-upload-box:hover {
  border-color: #4361ee;
  background-color: #f0f5ff;
}

.file-upload-icon {
  font-size: 48px;
  color: #4361ee;
  margin-bottom: 15px;
}
