/* ==========================================================================
   Shared Resize Handles -- Panel + Column
   Used by: AdminChatAssistant, AiAssistant, BackupHistory,
            FileSyncLogs, ProcessLogs, CatalogTranslations
   ========================================================================== */

/* ---------- Panel resize handle (side-panel drag) ---------- */

.is-resize-handle {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 8px;
    cursor: ew-resize;
    background: transparent;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
}

.is-resize-handle::before {
    content: '';
    position: absolute;
    left: 3px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: transparent;
    transition: background-color 0.15s;
}

.is-resize-handle::after {
    content: '\25C2\25B8';
    position: relative;
    z-index: 1;
    font-size: 10px;
    letter-spacing: -2px;
    color: #fff;
    background: #e81c0e;
    border-radius: 3px;
    padding: 4px 2px;
    line-height: 1;
    opacity: 0;
    transition: opacity 0.15s;
    pointer-events: none;
}

.is-resize-handle:hover::before,
.is-resize-handle.active::before {
    background: #e81c0e;
}

.is-resize-handle:hover::after,
.is-resize-handle.active::after {
    opacity: 1;
}

/* ---------- Column resize handle (table header drag) ---------- */

.col-resize-handle {
    position: absolute;
    right: -3px;
    top: 0;
    bottom: 0;
    width: 7px;
    cursor: col-resize;
    z-index: 5;
    display: flex;
    align-items: center;
    justify-content: center;
}

.col-resize-handle::before {
    content: '';
    position: absolute;
    left: 3px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: transparent;
    transition: background-color 0.15s;
}

.col-resize-handle::after {
    content: '\25C2\25B8';
    font-size: 8px;
    letter-spacing: -2px;
    color: #fff;
    background: #e81c0e;
    border-radius: 2px;
    padding: 2px 1px;
    line-height: 1;
    opacity: 0;
    transition: opacity 0.15s;
    pointer-events: none;
    position: relative;
    z-index: 1;
}

.col-resize-handle:hover::before,
.col-resize-handle.active::before {
    background: #e81c0e;
}

.col-resize-handle:hover::after,
.col-resize-handle.active::after {
    opacity: 1;
}

/* ---------- Global cursor lock during drag ---------- */

body.is-resizing {
    cursor: ew-resize !important;
    user-select: none !important;
}

body.is-resizing * {
    cursor: ew-resize !important;
}

body.is-col-resizing {
    cursor: col-resize !important;
    user-select: none !important;
}

body.is-col-resizing * {
    cursor: col-resize !important;
}
