/* 
 * Resize handle styles for XBurg UI
 */

/* Resize handle - made more visible */
.resize-handle {
    width: 8px;
    background-color: #ddd;
    cursor: col-resize;
    position: relative;
    z-index: 100;
    transition: all 0.2s;
    touch-action: none; /* Prevent default touch behaviors like scrolling */
}

/* Visual indicator in the middle of the handle */
.resize-handle::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    height: 40px;
    width: 4px;
    background-color: var(--xburg-purple);
    border-radius: 2px;
    opacity: 0.4;
    transition: opacity 0.2s;
}

/* Active states */
.resize-handle:hover,
.resize-handle.dragging {
    background-color: #e0e0e0;
}

.resize-handle:hover::after,
.resize-handle.dragging::after {
    opacity: 1;
}

/* Cursor during resize operation */
body.resizing {
    cursor: col-resize !important;
    user-select: none;
}

/* Make sure all elements inside don't interfere with the resize operation */
body.resizing * {
    pointer-events: none;
}

/* Override for the resize handle to ensure it still gets events */
body.resizing .resize-handle {
    pointer-events: auto;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .resize-handle {
        display: none; /* Hide resize handle on mobile - header chat button handles toggling */
    }
    
    /* Remove the mobile-specific styling since handle is now hidden */
}
