/* Live Preview Editing Styles */

/* Editable Fields */
[contenteditable="true"] {
  outline: 1px dashed transparent;
  transition: outline-color 0.2s;
  cursor: text;
}

[contenteditable="true"]:hover {
  outline: 1px dashed #3b82f6; /* Blue outline on hover */
}

[contenteditable="true"]:focus {
  outline: 2px solid #3b82f6; /* Stronger blue on focus */
  background-color: rgba(59, 130, 246, 0.05);
  border-radius: 2px;
}

/* Draggable Sections */
.resume-section {
  position: relative;
  transition: margin-bottom 0.1s; /* Smooth spacing adjustment */
}

.resume-section:hover::after {
  content: "⋮⋮"; /* Drag handle icon */
  position: absolute;
  top: 50%;
  left: -20px; /* Position to the left of the section */
  transform: translateY(-50%);
  font-size: 16px;
  color: #94a3b8;
  cursor: grab;
  opacity: 0.5;
}

.resume-section:hover::after:hover {
  color: #3b82f6;
  opacity: 1;
}

/* Gap Resize Handle */
.gap-handle {
  position: absolute;
  bottom: -15px; /* Position in the gap */
  left: 0;
  right: 0;
  height: 10px;
  background: transparent;
  cursor: ns-resize; /* North-South resize cursor */
  z-index: 10;
  display: none; /* Hidden by default */
}

.resume-section:hover .gap-handle {
  display: block; /* Show on hover */
}

.gap-handle::before {
  content: "";
  display: block;
  width: 100%;
  height: 1px;
  background: #e2e8f0;
  margin-top: 4px;
  opacity: 0;
  transition: opacity 0.2s;
}

.gap-handle:hover::before {
  opacity: 1;
  background: #3b82f6;
}

/* Sortable Ghost Class */
.sortable-ghost {
  opacity: 0.4;
  background-color: #f1f5f9;
}
