/* Pages Container */
.pages-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 1.5rem;
  margin: 2rem 0;
  display: none; /* Hidden until PDF loads */
}

.page-thumbnail {
  position: relative;
  border: 1px solid #ddd;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  transition: all 0.2s;
}

.page-thumbnail:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.page-canvas {
  width: 100%;
  display: block;
}

.page-number {
  position: absolute;
  top: 0.5rem;
  left: 0.5rem;
  background: rgba(0,0,0,0.7);
  color: white;
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  font-size: 0.8rem;
}

.remove-page-btn {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  background: #ff6b6b;
  color: white;
  border: none;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
}

.remove-page-btn:hover {
  background: #e74c3c;
  transform: scale(1.1);
}

/* PDF Preview */
#pdfPreview {
  margin-top: 1rem;
}

.file-preview {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: white;
  padding: 1rem;
  border-radius: 8px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.file-preview i {
  color: #e74c3c;
  font-size: 1.5rem;
}

/* Scroll to bottom button */
.scroll-btn {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--primary);
  color: white;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 10px rgba(0,0,0,0.2);
  transition: all 0.3s;
  z-index: 100;
}

.scroll-btn:hover {
  background: #3a5ae8;
  transform: translateY(-5px);
}

/* Responsive */
@media (max-width: 768px) {
  .pages-container {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  }
  
  .scroll-btn {
    bottom: 1rem;
    right: 1rem;
    width: 40px;
    height: 40px;
  }
}