/* ============ PDF MODAL ============ */
.pdf-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 47, 108, 0.85);
  backdrop-filter: blur(5px);
  z-index: 999999;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.pdf-modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.pdf-modal-container {
  background: #fff;
  width: 90%;
  max-width: 1000px;
  height: 85vh;
  border-radius: 15px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
  transform: translateY(20px);
  transition: transform 0.3s ease;
}

.pdf-modal-overlay.active .pdf-modal-container {
  transform: translateY(0);
}

.pdf-modal-header {
  padding: 1rem 1.5rem;
  background: linear-gradient(135deg, #002f6c 0%, #004299 100%);
  color: white;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.pdf-modal-title {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.pdf-modal-close {
  background: none;
  border: none;
  color: white;
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
  transition: color 0.2s;
  padding: 0;
}

.pdf-modal-close:hover {
  color: #f59e0b;
}

.pdf-modal-body {
  flex: 1;
  overflow-y: auto;
  padding: 1.5rem;
  background: #f1f5f9;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}

.pdf-modal-body canvas {
  max-width: 100%;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  background: white;
  margin-bottom: 1rem;
}

.pdf-loader {
  font-weight: 600;
  color: #002f6c;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
}
