
/* Title */
.pdf-image-converter-page h1 {
  font-size: 2rem;
  margin-bottom: 1.5rem;
  text-align: center;
}
/* Upload Panel */
#pdfInput {
  display: none;
}
#convertBtn {
  padding: 0.6rem 1.2rem;
  background-color: #4caf50;
  border: none;
  border-radius: 4px;
  color: white;
  font-weight: bold;
  cursor: pointer;
  transition: background 0.2s;
}
#convertBtn:hover {
  background-color: #45a045;
}
/* Preview Area */
.preview-section h2 {
  font-size: 1.4rem;
  margin-bottom: 1rem;
}
.preview-container canvas,
.preview-container img {
  width: 100%;
  border: 1px solid #333;
  border-radius: 4px;
  background: #111;
}
/* Download Panel */
#downloadAllBtn {
  padding: 0.6rem 1.2rem;
  background-color: #2196f3;
  border: none;
  border-radius: 4px;
  color: white;
  font-weight: bold;
  cursor: pointer;
  transition: background 0.2s;
}
#downloadAllBtn:disabled {
  background-color: #555;
  cursor: not-allowed;
}
#downloadAllBtn:hover:not(:disabled) {
  background-color: #1e88e5;
}
.preview-wrapper:hover .preview-image {
  transform: scale(1.05);
  z-index: 3;
}

#dropZone {
  border: 2px dashed #555;
  padding: 1rem;
  border-radius: 6px;
  text-align: center;
  transition: border-color 0.3s, background-color 0.3s;
}
#dropZone.dragover {
  border-color: #4caf50;
  background-color: #2b2b2b;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

#dpiValue, #jpegQualityValue {
  font-weight: bold;
  color: #fff;
  margin-left: 0.4rem;
}

#toggleSelectAll {
  background-color: #666;
  color: white;
  padding: 0.4rem 1rem;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 0.85rem;
  transition: background 0.2s;
}
#toggleSelectAll:hover {
  background-color: #888;
}








/* =============================
   PDF to Image Converter CSS
   ============================= */

.pdf-image-converter-page {
  max-width: 960px;
  margin: auto;
  padding: 2rem;
}

/* Upload Panel */
.upload-panel {
  border: 2px dashed #666;
  padding: 1.5rem;
  text-align: center;
  border-radius: 8px;
  margin-bottom: 1.5rem;
  background-color: #1e1e1e;
  position: relative;
}
.upload-panel input[type="file"] {
  display: none;
}
.upload-label {
  display: inline-block;
  padding: 0.6rem 1.2rem;
  background: #007acc;
  color: white;
  border-radius: 4px;
  cursor: pointer;
  font-weight: bold;
}
.file-name {
  display: block;
  margin-top: 0.8rem;
  font-size: 0.9rem;
  color: #bbb;
}

/* Options Panel */
.conversion-options {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 10px;
  margin-bottom: 2rem;
}
.option-group {
  background: #232323;
  padding: 1px;
  border-radius: 6px;
}
.option-group label {
  display: block;
  margin-bottom: 0.5rem;
  color: #ccc;
  font-size: 0.9rem;
}
.option-group input,
.option-group select {
  width: 100%;
  padding: 0.4rem;
  border: 1px solid #444;
  background: #222;
  color: #fff;
  border-radius: 4px;
}
.option-group input[type="range"] {
  width: 100%;
}

/* ZIP Controls */
.zip-controls {
  display: flex;
  gap: 1rem;
  justify-content: flex-end;
  margin-bottom: 1.5rem;
}
.zip-controls button {
  padding: 0.5rem 1rem;
  background: #333;
  color: #eee;
  border: 1px solid #555;
  border-radius: 4px;
  cursor: pointer;
}
.zip-controls button:hover {
  background: #444;
}

/* Preview Section */
.preview-section {
  margin-bottom: 2rem;
}
.preview-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
}
.preview-wrapper {
  background: #1c1c1c;
  padding: 0.8rem;
  border-radius: 6px;
  position: relative;
  text-align: center;
}
.preview-image {
  width: 100%;
  border-radius: 4px;
  margin-bottom: 0.5rem;
  transition: transform 0.3s ease;
  cursor: zoom-in;
}
.preview-overlay {
  font-size: 0.85rem;
  color: #ccc;
  display: block;
  margin-bottom: 0.4rem;
}
.preview-dimensions {
  font-size: 0.8rem;
  color: #888;
  margin-bottom: 0.5rem;
}
.preview-download {
  background: #0066cc;
  color: white;
  padding: 0.4rem 0.8rem;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 0.9rem;
}
.preview-checkbox {
  display: block;
  font-size: 0.85rem;
  color: #aaa;
  margin-top: 0.4rem;
  user-select: none;
}

/* Download Panel */
.download-panel {
  margin-top: 2rem;
  text-align: center;
}
.download-panel button {
  background: #007acc;
  color: white;
  padding: 0.6rem 1.4rem;
  font-size: 1rem;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  margin-bottom: 0.8rem;
}
.status-text {
  display: block;
  color: #aaa;
  font-size: 0.9rem;
}
.spinner {
  display: inline-block;
  width: 16px;
  height: 16px;
  border: 2px solid #999;
  border-top: 2px solid transparent;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin-right: 0.4rem;
}
@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Modal */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0,0,0,0.8);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 999;
}
.modal-content {
  max-width: 90vw;
  max-height: 90vh;
  border: 4px solid #fff;
  border-radius: 8px;
}
.modal-close {
  position: absolute;
  top: 20px;
  right: 30px;
  font-size: 2rem;
  color: white;
  cursor: pointer;
}

/* How to Use */
.tool-section.how-to-use {
  background: #1e1e1e;
  border: 1px solid #333;
  border-radius: 8px;
  padding: 1.8rem 2rem;
  margin-top: 2.5rem;
  color: #d0d0d0;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.4);
}
.tool-section.how-to-use h2 {
  font-size: 1.4rem;
  margin-bottom: 1.2rem;
  color: #fff;
  border-bottom: 1px solid #333;
  padding-bottom: 0.5rem;
}
.tool-section.how-to-use ul {
  padding-left: 1.5rem;
  list-style-type: disc;
}
.tool-section.how-to-use li {
  margin-bottom: 0.7rem;
  font-size: 1rem;
  line-height: 1.5;
}
.tool-section.how-to-use li strong {
  color: #fff;
}
