/* Simple PDF Viewer Styles */
.pdf-viewer-container {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Content wrapper */
.pdf-viewer-content-wrapper {
  position: relative;
  flex: 1;
  min-height: 0;
  margin-bottom: 20px;
  margin-top: 20px;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Loading styles */
.pdf-viewer-loading {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background-color: rgba(0, 0, 0, 0.7);
  color: white;
  z-index: 10;
}

.pdf-viewer-spinner {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 4px solid rgba(255, 255, 255, 0.3);
  border-top-color: white;
  animation: pdf-viewer-spin 1s linear infinite;
  margin-bottom: 10px;
}

@keyframes pdf-viewer-spin {
  to { transform: rotate(360deg); }
}

.pdf-viewer-loading-text {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
  font-size: 14px;
}

.pdf-viewer-error {
  color: #ff6b6b;
  text-align: center;
  padding: 20px;
}

/* Controls positioned at the bottom */
.pdf-viewer-controls-bottom {
  width: 100%;
  padding: 10px 0;
  background-color: rgba(0, 0, 0, 0.05);
  border-top: 1px solid rgba(0, 0, 0, 0.1);
  display: flex;
  justify-content: center;
  align-items: center;
}

.pdf-viewer-nav-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
}

.pdf-viewer-btn {
  background-color: rgba(0, 0, 0, 0.7);
  color: white;
  border: none;
  border-radius: 4px;
  padding: 8px 16px;
  font-size: 14px;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  transition: background-color 0.2s, transform 0.2s;
}

.pdf-viewer-btn:hover {
  background-color: rgba(0, 0, 0, 0.9);
  transform: scale(1.05);
}

.pdf-viewer-btn:focus {
  outline: none;
  box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.3);
}

/* Page indicator */
.pdf-viewer-page-info {
  background-color: rgba(0, 0, 0, 0.7);
  color: white;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
  font-size: 14px;
  padding: 8px 16px;
  border-radius: 4px;
  white-space: nowrap;
}

/* Canvas */
.pdf-viewer-canvas {
  display: block;
  background-color: white;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
  max-height: 100%;
  max-width: 100%;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .pdf-viewer-nav-wrapper {
    gap: 10px;
  }
  
  .pdf-viewer-btn {
    font-size: 12px;
    padding: 6px 12px;
  }
  
  .pdf-viewer-page-info {
    font-size: 12px;
    padding: 6px 12px;
  }
}

@media (max-width: 480px) {
  .pdf-viewer-nav-wrapper {
    flex-direction: column;
    gap: 8px;
  }
}

/* Flipbook effect styles */
@keyframes page-flip-right {
  0% { transform: rotateY(0deg); }
  100% { transform: rotateY(-180deg); }
}

@keyframes page-flip-left {
  0% { transform: rotateY(180deg); }
  100% { transform: rotateY(0deg); }
}

.pdf-viewer-page-flip {
  animation: page-flip-right 0.5s ease-in-out;
  transform-origin: left center;
  transform-style: preserve-3d;
}

.pdf-viewer-page-flip-reverse {
  animation: page-flip-left 0.5s ease-in-out;
  transform-origin: left center;
  transform-style: preserve-3d;
}