.pdf-thumbnail {
  position: relative;
  width: 100%;
  height: 200px;
  background: #f8f9fa;
  border-radius: 8px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pdf-thumbnail--loading {
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: loading 1.5s infinite;
}

.pdf-thumbnail__canvas {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.pdf-thumbnail__placeholder {
  text-align: center;
}

.pdf-icon {
  width: 80px;
  height: 100px;
  background: #e74c3c;
  position: relative;
  border-radius: 5px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: bold;
  font-family: Arial, sans-serif;
  margin: 0 auto;
}

.pdf-icon__text {
  font-size: 14px;
}

.pdf-icon__corner {
  position: absolute;
  top: 0;
  right: 0;
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 0 12px 12px 0;
  border-color: transparent #c0392b transparent transparent;
}

.pdf-thumbnail--error .pdf-icon {
  background: #95a5a6;
}

.pdf-thumbnail--error .pdf-icon__corner {
  border-color: transparent #7f8c8d transparent transparent;
}

@keyframes loading {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: -200% 0;
  }
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .pdf-thumbnail {
    height: 150px;
  }

  .pdf-icon {
    width: 60px;
    height: 80px;
  }
}
