/* static/css/filepond_custom.css */

/* Estilo base del contenedor de arrastre */
.drop-area {
  border: 2px dashed #0070C0;
  border-radius: 12px;
  padding: 40px;
  text-align: center;
  background-color: #f7f9fc;
  cursor: pointer;
  position: relative;
}

/* Oculta el input real */
.drop-area input[type="file"] {
  display: none;
}

/* Tarjeta de PDF */
.tarjeta-pdf {
  display: inline-block;
  width: 198px;
  height: 244px;
  margin: 10px;
  border: 1px solid #ccc;
  border-radius: 10px;
  background-color: #fff;
  overflow: hidden;
  position: relative;
  box-shadow: 0 0 5px rgba(0, 0, 0, 0.1);
}

.tarjeta-pdf canvas {
  width: 100%;
  height: 85%;
  object-fit: contain;
}

.tarjeta-pdf .acciones {
  position: absolute;
  bottom: 5px;
  width: 100%;
  text-align: center;
}

.tarjeta-pdf button {
  background-color: #0070C0;
  color: white;
  border: none;
  padding: 5px 10px;
  border-radius: 5px;
  cursor: pointer;
  font-size: 12px;
}

/* Contenedor de las tarjetas */
.contenedor-lista-pdfs {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 12px;
  margin-top: 20px;
}

/* Personaliza FilePond con tus colores */
.filepond--panel-root {
  border: 2px dashed #0070C0;
  border-radius: 12px;
  background-color: #f0f8ff;
}

.filepond--label-action {
  color: #00468B !important;
  font-weight: bold;
  font-size: 16px;
}

/* Íconos de eliminar */
.filepond--file-action-button {
  background-color: #C0003D !important;
}

.filepond--file-action-button:hover {
  background-color: #A21738 !important;
}
  .preview-grid {
    display: grid;
    grid-template-columns: repeat(5, 198px);
    gap: 20px;
    justify-content: center;
    margin: 20px auto;
    max-width: 1000px;
  }
  .drop-area {
    border: 2px dashed #0070C0;
    border-radius: 12px;
    background-color: #f0f8ff;
    padding: 30px;
    text-align: center;
    margin-top: 20px;
  }
  .drop-area.drag-over {
    background-color: #e0f0ff;
  }

.preview-item {
  background-color: #f2f2f2;
  padding: 15px;
  border-radius: 10px;
  min-width: 200px;
  text-align: center;
  font-weight: bold;
}

.pdf-card {
  width: 198px;
  position: relative;
  margin: 10px;
  text-align: center;
  background: white;
  border-radius: 8px;
  box-shadow: 0 0 5px rgba(0,0,0,0.1);
}

.pdf-card canvas {
  display: block;
  margin: auto;
  border-bottom: 1px solid #eee;
}

.pdf-action {
  position: absolute;
  top: 8px;
  width: 26px;
  height: 26px;
  border: none;
  border-radius: 50%;
  font-size: 14px;
  color: white;
  cursor: pointer;
}

.pdf-action.rotate {
  left: 8px;
  background: #d9534f;
}

.pdf-action.delete {
  right: 8px;
  background: #333;
}

.nombre-pdf {
  font-size: 12px;
  padding: 4px 8px;
  word-break: break-word;
}

