/* PDF Combiner Modal Styles */
/* Scoped to #pdfCombinerModal to avoid conflicts */

#pdfCombinerModal {
  z-index: 10050 !important;
}

#pdfCombinerModal.show {
  z-index: 10050 !important;
  display: block !important;
}

body:has(#pdfCombinerModal.show) .modal-backdrop {
  z-index: 10049 !important;
}

#pdfCombinerModal .modal-dialog {
  z-index: 10051 !important;
  max-width: 640px !important;
  margin: 80px auto 20px auto !important; /* Same place as New Customer */
  pointer-events: auto !important;
}

#pdfCombinerModal .modal-content {
  z-index: 10051 !important;
  background: #ffffff !important;
  border-radius: 16px !important;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25) !important;
  border: none !important;
  pointer-events: auto !important;
}

#pdfCombinerModal .modal-header {
  background: #e5e7eb !important;
  color: #374151 !important;
  padding: 10px 16px !important;
  border-bottom: 1px solid #d1d5db !important;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

#pdfCombinerModal .modal-header .header-content {
  display: flex;
  align-items: center;
  gap: 10px;
}

#pdfCombinerModal .modal-header .header-icon {
  font-size: 1.25rem;
  color: #667eea;
}

#pdfCombinerModal .modal-header .title-main {
  display: block;
  font-weight: 600;
}

#pdfCombinerModal .modal-header .title-subtitle {
  display: block;
  font-size: 0.85rem;
  opacity: 0.8;
}

#pdfCombinerModal .modal-header .close {
  opacity: 0.8;
}

#pdfCombinerModal .modal-body {
  padding: 20px !important;
  max-height: 70vh;
  overflow-y: auto;
}

#pdfCombinerModal .pdf-combiner-container {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* Drop zone - from reference */
#pdfCombinerModal .pdf-combiner-drop-zone {
  border: 2px dashed #007bff;
  padding: 30px;
  text-align: center;
  cursor: pointer;
  background-color: #f4f4f4;
  border-radius: 10px;
  transition: background-color 0.2s;
}

#pdfCombinerModal .pdf-combiner-drop-zone:hover {
  background-color: #f8f8f8;
}

/* Preview container */
#pdfCombinerModal .pdf-combiner-preview-container {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  min-height: 80px;
}

#pdfCombinerModal .pdf-combiner-preview-container canvas {
  margin: 0;
  border: 1px solid #ddd;
  border-radius: 5px;
  background-color: #fff;
  cursor: move;
}

/* Combine button - from reference */
#pdfCombinerModal .pdf-combiner-combine-btn {
  background-color: #FFBF23;
  color: black;
  padding: 15px 30px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-size: 18px;
  font-weight: bold;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
  transition: background-color 0.3s, transform 0.2s;
}

#pdfCombinerModal .pdf-combiner-combine-btn:hover,
#pdfCombinerModal .pdf-combiner-combine-btn:focus {
  background-color: #e6a817;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

#pdfCombinerModal .pdf-combiner-combine-btn:active {
  transform: translateY(1px);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

/* Options row */
#pdfCombinerModal .pdf-combiner-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

#pdfCombinerModal .pdf-combiner-options {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

#pdfCombinerModal .pdf-combiner-checkbox-label {
  display: flex;
  align-items: center;
  margin: 0;
  cursor: pointer;
}

#pdfCombinerModal .pdf-combiner-checkbox-label .checkbox-label {
  margin-left: 8px;
  font-size: 14px;
}
