.resource-actions {
    display: flex;
    gap: 6px;
    margin-top: 10px;
    flex-wrap: wrap;
  }
  
  .btn-publish {
    background-color: #6db1ed;
    border-color: #a8c5df;
    color: white;
  }
  
  .btn-delete {
    background-color: #e74c3c;
    border-color: #e74c3c;
    color: white;
  }
  
  .resource-card-buttons {
    display: flex;
    /* justify-content: space-between; */
    gap: 5px;
    margin-top: 12px;
  }
  
  .edit-file-info {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 500;
    color: #444;
    background-color: #f2f2f2;
    padding: 10px 12px;
    border-radius: 6px;
    margin-bottom: 20px;
  }
  
  .file-icon {
    color: #0072c9;
    font-size: 18px;
  }
  
  .file-name {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

.add-button-wrapper {
  text-align: right;
  padding: 20px;
}

.accordion-container {
  width: 100%;
  margin: 0 auto;
  margin-top: 8px;
}

.accordion-body {
  background-color: rgb(206, 220, 233);
  padding: 0;
}

/* Root wrapper */
.pdfv-root {
  display: grid;
  grid-template-rows: auto 1fr;
  height: 100%;
  background: linear-gradient(180deg, rgba(9, 14, 24, 0.9), rgba(7, 11, 19, 0.9));
}

/* Top toolbar */
.pdfv-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 14px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.14);
  backdrop-filter: blur(8px);
}

/* Left-side nav controls */
.pdfv-controls {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

/* Buttons (prev/next + download) */
.pdfv-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 36px;
  padding: 0 12px;
  border: 1px solid rgba(148, 163, 184, 0.25);
  border-radius: 10px;
  background: rgba(17, 24, 39, 0.55);
  color: #e5e7eb;
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
  transition: transform 0.06s ease, border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.pdfv-btn:hover:not(:disabled) {
  background: rgba(31, 41, 55, 0.65);
  border-color: rgba(148, 163, 184, 0.45);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.25);
}

.pdfv-btn:active:not(:disabled) {
  transform: translateY(1px);
}

.pdfv-btn:disabled,
.pdfv-btn.is-disabled {
  cursor: not-allowed;
  opacity: 0.5;
}

/* Download button variant */
.pdfv-btn-download {
  background: linear-gradient(180deg, rgba(34, 197, 94, 0.18), rgba(22, 163, 74, 0.18));
  border-color: rgba(22, 163, 74, 0.35);
}

.pdfv-btn-download:hover:not(.is-disabled) {
  background: rgba(31, 41, 55, 0.65);
  border-color: rgba(148, 163, 184, 0.45);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.25);
}

.pdfv-btn-text {
  font-size: 0.9rem;
}

/* Right side actions */
.pdfv-actions {
  display: inline-flex;
  align-items: center;
}

/* Page counter */
.pdfv-counter {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  border-radius: 10px;
  border: 1px dashed rgba(148, 163, 184, 0.25);
  color: #cbd5e1;
  font-weight: 600;
  letter-spacing: 0.3px;
  user-select: none;
}

.pdfv-counter-current {
  font-variant-numeric: tabular-nums;
  font-size: 0.95rem;
}

.pdfv-counter-sep {
  opacity: 0.7;
}

.pdfv-counter-total {
  font-variant-numeric: tabular-nums;
  font-size: 0.95rem;
  opacity: 0.85;
}

/* Canvas area */
.pdfv-canvas {
  position: relative;
  overflow: auto;
  height: 100%;
  padding: 18px;
  display: grid;
  place-items: center;
}

/* Spinner box */
.pdfv-spinner {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
}

/* Page itself (add subtle chrome + center) */
.pdfv-page {
  box-shadow:
    0 8px 28px rgba(0, 0, 0, 0.35),
    0 2px 8px rgba(0, 0, 0, 0.2);
  border-radius: 12px;
  overflow: hidden;
}

/* Make PDF page responsive on smaller widths */
@media (max-width: 1024px) {
  .pdfv-canvas .react-pdf__Page {
    width: 100% !important;
    display: grid;
    place-items: center;
  }
  .pdfv-canvas .react-pdf__Page canvas {
    width: 100% !important;
    height: auto !important;
  }
}

/* Wrap to constrain aspect and center inside the pdfv-canvas */
.pdfv-video-wrap {
  width: min(1200px, 100%);
  aspect-ratio: 16 / 9;
  display: grid;
  place-items: center;
}

/* Chrome around the ReactPlayer (mirrors .pdfv-page feel) */
.pdfv-video-frame {
  width: 100% !important;
  height: 100% !important;
  border-radius: 12px;
  overflow: hidden;
  background: rgba(2, 6, 23, 0.5);
  border: 1px solid rgba(148, 163, 184, 0.18);
  box-shadow:
    0 8px 28px rgba(0, 0, 0, 0.35),
    0 2px 8px rgba(0, 0, 0, 0.2);
}

/* Image viewer stage (centered like the PDF page area) */
.imgv-stage {
  position: relative;
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  padding: 18px;
}

/* Responsive, polished image styling to match pdfv-page vibe */
.imgv-image {
  max-width: min(100%, 1100px);
  max-height: 82vh;
  height: auto;
  border-radius: 12px;
  box-shadow:
    0 8px 28px rgba(0, 0, 0, 0.35),
    0 2px 8px rgba(0, 0, 0, 0.2);
  user-select: none;
  -webkit-user-drag: none;
}

/* Optional: visible active tool state */
.pdfv-btn.is-active {
  box-shadow: 0 0 0 2px rgba(96, 165, 250, 0.35) inset;
  border-color: rgba(96, 165, 250, 0.65);
}

/* Ensure overlay sits on top of react-pdf canvas and is interactive */
.react-pdf__Page {
  position: relative;
}
.ann-overlay {
  z-index: 2;
}