
/* Full-width container */
#pdf2jpg-wrap {
  width: 100%;
  max-width: none;
  margin: 0 auto;
  padding: 24px 20px;
  box-sizing: border-box;
  font-family: 'Segoe UI', Tahoma, sans-serif;
  background: #fff;
}

/* Headings and copy */
#pdf2jpg-wrap h2 { color: #1a3d7c; margin: 0 0 8px; }
#pdf2jpg-wrap .description { color: #333; margin: 0 0 14px; }

/* Dropzone: full width, input overlay for reliable clicks & drops */
#drop-area {
  position: relative;
  border: 2px dashed #1a3d7c;
  background: #f0f7ff;
  padding: 40px 16px;
  text-align: center;
  border-radius: 10px;
  transition: background 0.2s ease, border-color 0.2s ease;
  margin-bottom: 12px;
}
#drop-area.dragover { background-color: #d2e7ff; border-color: #0f2b59; }

/* Cover the entire drop-zone so clicks always open the file dialog */
#drop-area input[type=file] {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
  display: block;
}

/* file-name announcement */
#file-name { margin-top: 8px; color: #1a3d7c; font-weight: 600; }

/* Progress */
#uploadProgress {
  display: none;
  width: 100%;
  height: 18px;
  margin: 10px 0 12px;
}

/* Gallery */
.pdf-gallery {
  display: flex; flex-wrap: wrap; gap: 12px; margin: 16px 0;
}
.pdf-thumb { width: 150px; }
.pdf-thumb img {
  width: 100%; border-radius: 8px; border: 1px solid #d9dfe8; cursor: pointer;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}
.pdf-actions { display:flex; justify-content: space-between; font-size: 12px; margin-top: 4px; }

/* Lightbox */
#lightbox-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,0.85);
  display: flex; align-items: center; justify-content: center; z-index: 9999;
}
#lightbox-overlay img { max-width: 95vw; max-height: 95vh; border-radius: 8px; box-shadow: 0 0 20px #000; }

/* Buttons */
.button {
  background: #ffcc00; color: #1a3d7c; border: 0; border-radius: 6px;
  padding: 10px 16px; font-weight: 600; cursor: pointer;
}
.button:hover { background: #f4c000; }

/* Accordion */
.accordion-item { border: 1px solid #d8eafe; border-radius: 8px; margin: 10px 0; overflow: hidden; }
.accordion-header { background:#eaf2ff; padding: 12px 14px; cursor: pointer; font-weight: 600; color:#1a3d7c; }
.accordion-body { display:none; padding: 14px; background:#fff; }
.accordion-item.active .accordion-body { display:block; }
