/* Container for the PDF */
.native-pdf-wrap {
    position: relative;
    width: 100%;
    height: 800px; /* Adjust height as needed */
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

/* The actual PDF iframe */
.native-pdf {
    width: 100%;
    height: 100%;
    border: none;
}

/* The Protection Layer: 
   This invisible div sits on top of the PDF to block 
   right-clicks and direct interaction with the PDF's own buttons.
*/
.pdf-protection-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10;
    background: transparent;
    user-select: none;
    -webkit-user-select: none;
}

/* Disable Printing via Keyboard (Ctrl+P) for this page */
@media print {
    body { display: none !important; }
}
/* Expired PDF card styling */
.nn-pdf-card.expired {
    opacity: 0.85;
    border: 1.5px solid #f5c6cb;
    background: #fff8f8;
}

.nn-pdf-status.nn-expired {
    color: #c0392b;
    font-weight: 700;
}

.nn-pdf-btn-renew {
    background: linear-gradient(135deg, #e53935 0%, #c62828 100%) !important;
}

.nn-pdf-modal {
  display: none !important;
}
.nn-pdf-modal.active {
  display: flex !important;
  align-items: center;
  justify-content: center;
  position: fixed;
  top: 0; left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(15, 23, 42, 0.85);
  z-index: 999999;
}
.nn-pdf-modal-inner {
  position: relative;
  width: 92vw;
  height: 92vh;
  background: #fff;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}
#nn-pdf-modal-close {
  position: fixed;
  top: 20px;
  right: 24px;
  z-index: 1000000;
  width: 44px;
  height: 44px;
  font-size: 24px;
  line-height: 1;
  background: #fff;
  color: #2C3E50;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(0,0,0,0.3);
}
#nn-pdf-modal-frame {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}

/* ── Mobile improvements ─────────────────────────────────────────────── */
@media (max-width: 768px) {

  /* Full-screen modal on phones – use every pixel */
  .nn-pdf-modal-inner {
    width: 100vw;
    height: 100vh;
    border-radius: 0;
  }

  /* Larger, easier-to-tap close button */
  #nn-pdf-modal-close {
    top: 10px;
    right: 12px;
    width: 40px;
    height: 40px;
    font-size: 22px;
  }

  /* Prevent the page body from shifting under the fixed close button */
  .nn-pdf-modal.active {
    padding: 0;
  }
}
