/**
 * Table Persistence Plugin - Styles
 * Resize handle styling for column width adjustment
 */

.column-resize-handle-bar {
    position: absolute;
    top: 50%;
    height: 66.666667%;
    transform: translateY(-50%);
    width: 1rem;
    cursor: col-resize;
    right: -0.5rem;
    z-index: 10;
    border: none;
    background: transparent;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.group\/column-resize:hover .column-resize-handle-bar {
    opacity: 1;
}

.column-resize-handle-bar::before {
    content: "";
    display: block;
    width: 1px;
    height: 100%;
    background-color: rgb(209 213 219); /* gray-300 */
    transition: all 0.2s ease;
}

.column-resize-handle-bar:hover::before,
.column-resize-handle-bar.active::before {
    width: 2px;
    background-color: rgb(var(--primary-500));
}

/* Dark mode support */
.dark .column-resize-handle-bar::before {
    background-color: rgb(75 85 99); /* gray-600 */
}

.dark .column-resize-handle-bar:hover::before,
.dark .column-resize-handle-bar.active::before {
    background-color: rgb(var(--primary-400));
}

/* Prevent text selection during resize */
.column-resize-handle-bar.active ~ * {
    user-select: none;
}
