.pdf-area {
    flex: 1;
    overflow: auto;
    display: flex;
    justify-content: center;
    padding: 20px;
    background: var(--bg-secondary);
    position: relative;
}

.pdf-canvas-wrapper {
    position: relative;
    box-shadow: var(--shadow-lg);
    background: white;
    flex-shrink: 0;
}

#pdf-canvas {
    display: block;
}

.notes-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 10;
}

.notes-overlay > * {
    pointer-events: auto;
}

.pdf-area.note-mode {
    cursor: crosshair;
}

.pdf-area.note-mode .text-layer {
    pointer-events: none;
}

.text-layer {
    position: absolute;
    top: 0;
    left: 0;
    overflow: hidden;
    opacity: 0.25;
    line-height: 1;
}

.text-layer > span {
    position: absolute;
    white-space: pre;
    color: transparent;
    cursor: text;
}

.text-layer ::selection {
    background: rgba(0, 100, 200, 0.3);
}
