/* Container for draggable elements */
#draggable-container {
    position: relative; /* Required for absolute positioning of drop indicator */
}

/* Drag handle styles */
.drag-handle {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    width: 20px;
    height: 40px;
    cursor: grab;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100;
    padding: 8px 4px;
}

.drag-handle:hover {
    background: rgba(244, 66, 54, 0.1);
    border-radius: 4px;
}

.drag-handle:active {
    cursor: grabbing;
}

/* Create vertical red lines */
.drag-handle::before {
    content: '';
    width: 3px;
    height: 20px;
    background: #f44236;
    border-radius: 1px;
    margin-right: 3px;
}

.drag-handle::after {
    content: '';
    width: 3px;
    height: 20px;
    background: #f44236;
    border-radius: 1px;
    margin-left: 3px;
}

.draggable-row {
    position: relative;
    transition: transform 0.2s ease, margin-top 0.2s ease;
    padding-right: 40px;
}

.draggable-row.dragging {
    opacity: 0.7;
    transform: scale(0.98);
    z-index: 1000;
}

/* Add spacing when drop indicator appears above this row */
.draggable-row.drop-target-spacing {
    margin-top: 20px !important; /* Extra space for the indicator */
}

/* Drop indicator that appears between rows */
.drop-indicator {
    position: absolute;
    left: 0;
    right: 40px; /* Account for drag handle space */
    height: 12px; /* Increased height for rectangle appearance */
    background: rgba(244, 66, 54, 0.15); /* More visible background */
    border: 1px dashed #f44236; /* Thinner border */
    border-radius: 8px;
    z-index: 999;
    display: none;
    margin: 0 15px; /* Add some side margins */
    pointer-events: none; /* Ensure it doesn't interfere with drag events */
    transition: opacity 0.2s ease;
}

.drop-indicator.show {
    display: block;
    opacity: 0;
    animation: dropIndicatorFadeIn 0.2s forwards, dropIndicatorPulse 1s infinite alternate 0.2s;
}

@keyframes dropIndicatorFadeIn {
    to {
        opacity: 1;
    }
}

@keyframes dropIndicatorPulse {
    from {
        background: rgba(244, 66, 54, 0.15);
        border-color: #f44236;
    }
    to {
        background: rgba(244, 66, 54, 0.25);
        border-color: #d32f2f;
    }
}

/* OLD Mobile adjustments 
@media (max-width: 768px) {
    .drag-handle {
        right: 3px;
        width: 20px;
        height: 35px;
        padding: 6px 3px;
    }
    
    .drag-handle::before,
    .drag-handle::after {
        width: 2px;
        height: 16px;
        margin-right: 2px;
        margin-left: 2px;
    }
    
    .draggable-row {
        padding-right: 20px;
    }
    
    .draggable-row.drop-target-spacing {
        margin-top: 18px !important;
    }
    
    .drop-indicator {
        right: 30px;
        margin: 0 10px;
        height: 10px;
    }
}

*/
/* Mobile adjustments */
@media (max-width: 768px) {
    .drag-handle {
        display: none !important;
    }
    
    .draggable-row {
        padding-right: 0;
    }
    
    .drop-indicator {
        display: none !important;
    }
}