/* VPDF Viewer Styles */

body { 
  margin: 0; 
  padding: 0; 
  font-family: sans-serif; 
  height: 100vh; 
  display: flex; 
  flex-direction: column; 
}

.toolbar { 
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  padding: 8px 16px; 
  background-color: #f8f9fa; 
  border-bottom: 1px solid #e9ecef; 
  display: flex; 
  align-items: center; 
  gap: 12px; 
  flex-wrap: wrap; 
  font-size: 14px; 
  z-index: 1000;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.control-group { 
  display: flex; 
  align-items: center; 
  gap: 6px; 
}

.control-group-right {
  margin-left: auto;
}

.separator { 
  width: 1px; 
  height: 24px; 
  background-color: #dee2e6; 
}

.btn { 
  padding: 4px 8px; 
  background-color: #ffffff; 
  border: 1px solid #dee2e6; 
  border-radius: 4px; 
  cursor: pointer; 
  font-size: 14px; 
  color: #495057; 
}

.btn:hover { 
  background-color: #f8f9fa; 
}

.input { 
  padding: 6px 10px; 
  border-radius: 4px; 
  border: 1px solid #dee2e6; 
  font-size: 14px; 
  outline: none; 
}

#pdfCanvas { 
  margin-top: 60px;
  flex: 1; 
  width: 100%; 
  background-color: #ffffff;
  overflow: auto; 
  padding: 10px; 
  height: calc(100vh - 60px);
}

.canvas-container { 
  display: flex; 
  flex-direction: column; 
  align-items: center; 
}

canvas { 
  margin-bottom: 10px; 
  border: 1px solid #000; 
}

.textLayer {
  position: absolute;
  left: 0;
  top: 0;
  right: 0;
  bottom: 0;
  overflow: visible;
  opacity: 1;
  line-height: 1.0;
  user-select: text;
  pointer-events: auto;
  z-index: 10;
}

.textLayer > span {
  color: transparent;
  position: absolute;
  white-space: pre;
  cursor: text;
  user-select: text;
  pointer-events: auto;
  transform-origin: 0% 0%;
  display: inline-block;
}

.textLayer ::selection {
  background: rgba(0, 0, 255, 0.3);
}

.textLayer span::selection {
  background: rgba(0, 123, 255, 0.4);
}

.linkLayer {
  position: absolute;
  left: 0;
  top: 0;
  right: 0;
  bottom: 0;
  overflow: hidden;
  pointer-events: auto;
  z-index: 15;
}

.linkLayer a {
  display: block;
  border: 1px solid transparent;
  text-decoration: none;
  transition: background-color 0.2s ease;
}

.linkLayer a:hover {
  border: 1px solid rgba(0, 123, 255, 0.5);
}

/* Page input specific styling */
#pageInput {
  width: 50px; 
  padding: 2px 4px; 
  border: 1px solid #dee2e6; 
  border-radius: 3px; 
  text-align: center; 
  font-size: 14px; 
  outline: none;
}