body { font-family: sans-serif; padding: 20px; }
canvas { border: 1px solid #ccc; }
#canvas-container { position: relative; display: inline-block; }

.field {
  position: absolute;
  background: rgba(255,255,200,0.6);
  padding: 2px 4px;
  border: 1px solid #888;
  pointer-events: none;
  z-index: 1;
}

/* Specific styling for date fields */
.field.date-field {
  background-color: #f0f8ff; /* Light blue background */
  font-weight: bold;
  padding: 4px 8px;
  border-radius: 3px;
  z-index: 5; /* Higher than regular fields but lower than input fields */
}

.signature-image {
  position: absolute;
  border: 1px dashed #444;
  z-index: 2;
}

#sig-pad {
  border: 1px solid #999;
  margin-top: 10px;
}

.field.input-field {
  pointer-events: auto;
  background: #fff8dc;
  width: 300px; /* Default width for input fields */
  z-index: 10; /* Ensure inputs are always on top */
}

.field.input-field.address-field {
  width: 600px !important; /* Force address fields to be wider */
  min-width: 600px !important;
  max-width: 600px !important;
}

.field.draggable {
  pointer-events: auto;
  cursor: move;
}

.pdf-page {
  position: relative;
  margin-bottom: 20px;
  border: 1px solid #ccc;
  box-shadow: 0 0 4px rgba(0,0,0,0.1);
}

#toolbar {
  margin-bottom: 10px;
}

#pdf-canvas {
  position: relative;
  z-index: 0;
}

#pdf-container {
  display: block;
  position: relative;
  margin-top: 50px; /* Add more space at the top */
}

/* Add spacing to make sure user-info doesn't interfere with form fields */
.user-info {
  margin-bottom: 30px;
}
