/* ─── Page Wrapper — sirf PDF library page ke liye ─── */
.page-wrapper {
  font-family: 'Segoe UI', sans-serif;
  margin: 20px;
  color: #333;
}

h2.pdf-page-title {
  text-align: center;
  color: #2c3e50;
  margin-bottom: 20px;
}

/* ─── Search Box ─── */
#searchBox {
  width: 100%;
  padding: 12px;
  margin: 15px 0;
  border: 2px solid #3498db;
  border-radius: 8px;
  font-size: 16px;
  outline: none;
  transition: 0.3s;
  box-sizing: border-box;
}
#searchBox:focus {
  border-color: #9b59b6;
  box-shadow: 0 0 8px rgba(155, 89, 182, 0.5);
}

/* ─── PDF List ─── */
.pdf-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.pdf-item {
  padding: 14px;
  background: linear-gradient(90deg, #ffecd2, #fcb69f);
  border-radius: 8px;
  cursor: pointer;
  font-weight: bold;
  color: #2c3e50;
  transition: transform 0.2s, box-shadow 0.2s;
}
.pdf-item:hover {
  transform: scale(1.03);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  background: linear-gradient(90deg, #a1c4fd, #c2e9fb);
}

/* ─── Controls & Buttons ─── */
#controls {
  text-align: center;
  margin: 20px 0;
}
.pdf-btn {
  background: #3498db;
  color: white;
  border: none;
  padding: 10px 16px;
  margin: 0 6px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 14px;
  transition: 0.3s;
}
.pdf-btn:hover {
  background: #9b59b6;
}

/* ─── Home Button ─── */
#home {
  display: none;
  margin: 20px auto;
  background: #27ae60;
}
#home:hover {
  background: #2ecc71;
}

/* ─── PDF Viewer Container ─── */
#viewerContainer {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  margin-top: 20px;
  width: 100%;
  overflow-x: auto;
}
#viewerContainer canvas {
  max-width: 100%;
  height: auto;
  border: 1px solid #ccc;
  border-radius: 6px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

/* ─── Scroll to Top Button ─── */
#topBtn {
  position: fixed;
  bottom: 20px;
  right: 20px;
  display: none;
  background: #00bcd4;
  color: white;
  border: none;
  width: 45px;
  height: 45px;
  border-radius: 50%;
  font-size: 22px;
  cursor: pointer;
  z-index: 999;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}
#topBtn:hover {
  opacity: 0.8;
}

/* ─── Watermark — header ke neeche, sirf content area pe ─── */
.pdf-watermark {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) rotate(-30deg);
  font-size: 40px;
  color: rgba(0, 0, 0, 0.08);
  white-space: nowrap;
  z-index: 100;       /* header ke neeche — header ka z-index zyada hoga */
  pointer-events: none;
  user-select: none;
}

/* ─── Mobile Responsive ─── */
@media (max-width: 768px) {
  .page-wrapper {
    margin: 10px;
  }
  .pdf-item {
    font-size: 14px;
    padding: 10px;
  }
  .pdf-btn {
    padding: 8px 12px;
    font-size: 12px;
  }
  .pdf-watermark {
    font-size: 24px;
  }
}