/* ================================
   PDF EDITOR – FULLSCREEN LAYOUT
   ================================ */

/* Full editor height (fits between header + footer) */
.editor-container {
    height: calc(100vh - 180px); /* adjust if header/footer different height */
    min-height: 650px;
    display: flex;
    overflow: hidden;
    border-radius: 16px;
}

/* Sidebar – pages list */
.pdf-sidebar {
    width: 260px;
    min-width: 260px;
    background: rgba(15, 23, 42, 0.92);
    border-right: 1px solid #1e293b;
    overflow-y: auto;
    padding-bottom: 20px;
}

/* Thumbnails spacing */
#thumbList {
    overflow-y: auto;
    padding: 10px;
}

/* Main editor workspace */
.pdf-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

/* Toolbar sticks to top */
.pdf-toolbar {
    border-bottom: 1px solid #1e293b;
    background: rgba(2, 6, 23, 0.92);
    padding: 8px 12px;
    display: flex;
    gap: 8px;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 20;
}

/* Canvas wrapper scrolls */
.pdf-canvas-wrapper {
    flex: 1;
    overflow: auto;
    background: #020617;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding: 20px;
}

/* Canvases */
#pdfCanvas,
#drawCanvas {
    display: block;
}

/* Tool buttons */
.tool-btn {
    padding: 6px 14px;
    border-radius: 999px;
    border: 1px solid #334155;
    background: #0f172a;
    color: white;
    font-size: 13px;
    cursor: pointer;
}

.tool-btn.active {
    border-color: rgba(14, 165, 233, 0.7);
}

/* Bottom export bar */
.pdf-bottom-bar {
    border-top: 1px solid #1e293b;
    background: rgba(2, 6, 23, 0.92);
    padding: 10px 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* ================================
   SEJDA-STYLE FULL WIDTH EDITOR
   ================================ */

/* Full-width editor only AFTER load */
.editor-full {
  width: 100vw;
  max-width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  border-radius: 0;
}

/* Bigger, cleaner canvas like Sejda */
.editor-full #pdfCanvas,
.editor-full #drawCanvas {
  max-width: none;
}

/* Center page with space around it */
.editor-full .pdf-canvas-wrapper {
  padding: 32px 0;
  background: #020617;
}

/* Page shadow (Sejda feel) */
.editor-full .pdf-page-shell {
  background: #fff;
  box-shadow: 0 20px 50px rgba(0,0,0,0.45);
  padding: 12px;
}

